I need a simple favor?

Posts 114 of 14 · Page 1 of 1
I need a simple favor?
I got a c++ programing book and it gave me a compiler and it wasn't and .exe it was some files I don't know hoe to install? Can someone teamview me and help I t has a Read-Me but i swear its in WTF Language.
#include <iostream>
using namespace std;

int main() {
count << "Hello Alizee Forum users!";
return0;
}


thats my code and I used Notepad ++ I just need to compile it I wanna get Visual C++ epress but after 30 day its goes away and Im not downloading 9 rars from my favorite crack site ....And torrents suck anyone got a all in one free download pm?
#include <stdafx.h>
#include <iosteam>
using namespace std ;

int main() {
cout << "Hello Alizee Forum Users I hope you are doing fine this day?";
return 0;
}
Why is this not working in Microsoft visual c++ forget my other posts????

I get this error!

>------ Build started: Project: First, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>AssemblyInfo.cpp
1>First.cpp
1>.\First.cpp(1) : warning C4627: '#include <stdafx>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\First.cpp(2) : warning C4627: '#include <iosteam>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\First.cpp(9) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Generating Code...
1>Build log was saved at "file://c:\Users\Administrator\Desktop\First\First\Debug\B uildLog.htm"
1>First - 1 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Quote Originally Posted by IceGuru View Post
Why is this not working in Microsoft visual c++ forget my other posts????

I get this error!
Wow that's quite a cryptic error, and i don't see any problems, or what the error is talking about. Either way when using visual studio, unless you make an empty project visual studio forces it's precompiled header unto you (stdafx.h) so i you want to get rid of that, an empty project is the way to go. It might even help with your errors too.
Quote Originally Posted by zeco
Wow that's quite a cryptic error, and i don't see any problems, or what the error is talking about. Either way when using visual studio, unless you make an empty project visual studio forces it's precompiled header unto you (stdafx.h) so i you want to get rid of that an empty project is the way to go. It might even help with your errors too.
I agree. I'm not sure why its not compiling, but since you don't technically need #include <stdafx.h> I would take it out because it seems to be causing a lot of problems. And it is <iostream> NOT <iosteam>

Also if I were you I would download Bloodshed Dev-C++ its a lot more nub friendly. If you've ever programmed Java its sorta like the "BlueJay" of C++. You won't get nearly as many errors and the controls are very simple. That is what I am using now and I recomend it to everyone just starting out.
Quote Originally Posted by why06 View Post
I agree. I'm not sure why its not compiling, but since you don't technically need #include <stdafx.h> I would take it out because it seems to be causing a lot of problems. And it is <iostream> NOT <iosteam>

Also if I were you I would download Bloodshed Dev-C++ its a lot more nub friendly. If you've ever programmed Java its sorta like the "BlueJay" of C++. You won't get nearly as many errors and the controls are very simple. That is what I am using now and I recomend it to everyone just starting out.
Oh wow, i missed the fact that he forgot an r >_<. good job picking that up. And good job to the OP. Hope you continue to delve into the wonders of programming.
Ok I did this-

#include <iostream>
using namespace std ;

int main() {
cout << "Hello Alizee Forum Users I hope you are doing fine this day?";
return 0;
}
Got this-

1>------ Build started: Project: First, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>First.cpp
1>.\First.cpp(1) : warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\First.cpp(8) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>AssemblyInfo.cpp
1>Generating Code...
1>Build log was saved at "file://c:\Users\Administrator\Desktop\First\First\Debug\B uildLog.htm"
1>First - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I got it to work >.> idk lol I re typed and presto it worked
Why06 I'll try later if I have more problems with this thx ^^
where did the .exe go ? I want to send to my forum friends
Ok found exe but now it shuts down after like 2 sec?
WOOOO OK IT WORKS
First%20program.zipattachment deleted · 4 downloads before removal
THX ^^ im now using That bloodshed
Glad you got everything to work Ice. Goodluck with learning C++. Also if your book is not for beginning C++ programmers I would take it back and get something for beginners.
Posts 114 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?