Hi, this is Chris, and I was hoping that you guys could supply me with the code (yah, I know that you guys don't do homework, but this is an exception? :D) for making a simple "Hello World" program? Even one that asks answers of the user (for example, "Whats your name?" then, with cin I use it later? I can do this, but my book is totally out-dated, so I can't use it on the C++ program I have now (Dev-C++)).
In advance, thanks guys.:@
MadsenAim3r
0
Newbie Poster
Recommended Answers
Jump to Post>I was hoping that you guys could supply me with the code
We can, but that doesn't mean we will.>I know that you guys don't do homework, but this is an exception?
Nope.>I can do this, but my book is totally out-dated
Get a new one. …
Jump to Post>
#include <iostream.h>
Change this to#include <iostream> using namespace std;
>
int name;
Oh, so I suppose that nowadays names consist purely of numbers? If you actually do want to store some letters, try usingstring
instead, but you might have to include …
All 6 Replies
John A
1,896
Vampirical Lurker
Team Colleague
MadsenAim3r
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
MadsenAim3r
0
Newbie Poster
MadsenAim3r
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.