Nice Book to Learn + Need Help ;P - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Programming with C++ (https://www.supportforums.net/forumdisplay.php?fid=20) +---- Thread: Nice Book to Learn + Need Help ;P (/showthread.php?tid=24839) Pages:
1
2
|
RE: Nice Book to Learn + Need Help ;P - ///ViNcE - 01-28-2012 Maybe not having the IDE makes it harder XD I know exactly what int fail = 10; is. Maybe it's just the factor of the add-on of the char, I guess I can say I don't understand chars at all. RE: Nice Book to Learn + Need Help ;P - AceInfinity - 01-28-2012 (01-28-2012, 03:23 PM)Pacman-Nemtap Wrote: Maybe it's just the factor of the add-on of the char, I guess I can say I don't understand chars at all. that's what I don't understand, they work the same as any other variable. Code: int x = 10; Code: char x = 'a'; RE: Nice Book to Learn + Need Help ;P - ///ViNcE - 01-28-2012 Maybe it's the factor that both string & char are basically the same thing. RE: Nice Book to Learn + Need Help ;P - AceInfinity - 01-28-2012 (01-28-2012, 03:31 PM)Pacman-Nemtap Wrote: Maybe it's the factor that both string & char are basically the same thing. NO... Not even close. Char can only hold a char value, unless you have a char string, and string can hold a string value, which can also consist of only one char value, but it's not identified as a char, it's still identified as a string. |