Problems with C++
-
- Posts: 226
- Joined: Thu Sep 23, 2004 10:06 pm
- Location: Lost in the 404 errors...
- Contact:
-
- Posts: 226
- Joined: Thu Sep 23, 2004 10:06 pm
- Location: Lost in the 404 errors...
- Contact:
-
- Posts: 226
- Joined: Thu Sep 23, 2004 10:06 pm
- Location: Lost in the 404 errors...
- Contact:
-
- Posts: 226
- Joined: Thu Sep 23, 2004 10:06 pm
- Location: Lost in the 404 errors...
- Contact:
-
- The wolfire forum member with no title.
- Posts: 749
- Joined: Fri Jan 30, 2004 9:40 pm
You mean this hello world example?DudetheCreator wrote:I didn't learn much C. Only how to say Hello World then they said "Right, now were going to teach you beginner to advanced C++"
#ident ''@(#) Hello World - my first program''
#include <stdio.h>
char *format* = ''%s'',
*hello = ''Hello World. . .\n'';
Main()
{
printf ( format, hello ) ;
}
ok. That book is CRAP! meant for windows...
[edit] here is a website thatshould be much better then the book you use:
http://www.cplusplus.com/doc/tutorial/ [/edit]
here's your first tutorial, written in C, because it is generally more stable.
heres the C++ version:
[edit] here is a website thatshould be much better then the book you use:
http://www.cplusplus.com/doc/tutorial/ [/edit]
here's your first tutorial, written in C, because it is generally more stable.
Code: Select all
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello, World!\n");
return 0;
}
heres the C++ version:
Code: Select all
#include <iostream.h>
int main()
{
std::cout<<"Hello, World!\n";
return 0;
}
-
- Posts: 226
- Joined: Thu Sep 23, 2004 10:06 pm
- Location: Lost in the 404 errors...
- Contact: