# Missing ascii

## Recommended Posts

Sorry to keep asking such nOOb ?s, but the reason I asked the previous ascii question was because I needed ( what I at least believe to be )an ascii character. The one I was trying to get was not on the ascii list. It is used in this basic "Hello world" text. std::cout<< "Hello World" <<std::end It would be used right after end, before the ; . It is like a „§ only the little side-part would be at the top ( I don't think the site is recognizing this one correctly. If not, it is ALT+180 ). Hmmm, is this supposed to be in the IDE? Thanks! P.S.- Sorry to ask this again, but I asked it at the very bottom of my last post, after I said thanks and all, I thought no one would see it. Thanks again! EDIT: NO, the site is not reading it correctly. You can hit ALT+180 to see what i mean. Thanks!

##### Share on other sites
Hmm I think you already know the ascii code... 180 [grin]

Here if it makes you feel better [http://www.asciitable.com/]

##### Share on other sites
Sorry I don't think I got your question right is this what you want to do?
  char str[256];  sprintf(str,"Hello world%c\n",(char)180);  cout<<str;

##### Share on other sites
Hmmm, that is a different way then the book says. That way is probably better, but I still want to try the way the book says. The ascii looks like 180, but the side-bar is at the top of the vertical line, poiting left.Let me actually put in the whole code.

//Game Over
//A first C++ program

#include

int main()
{
std::cout << "Hellow World" < return 0;
}

NOTE: Substitute the "?" for the ascii I need. It won't work wuthout it I've found. Thanks!! =)

##### Share on other sites
Umm, you actually want std::endl; I don't think you can even use weird ascii characters like that in an identifier, which std::endl is. It just so happens that the font used in the book writes the letter l like that, probably to help distinguish it from other things.

BTW, just to make sure, it's the letter 'L' in lowercase (since lowercase L often looks like the number one...)

-Auron

##### Share on other sites
Ahhhh, ok! Your right! I was wondering, and it's just that the code is in another font than the text of the book. Thanks!

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
628381
• Total Posts
2982360

• 10
• 9
• 15
• 24
• 11