|
bluetoo
|
 |
« on: October 31, 2007, 03:37:01 PM » |
|
We have posted five new C++ programming video tutorials on the XoaX.net website. They are short and easy to watch and will help you master C++ and programming quickly. You can view them on our C++ video tutorial page. Here's an outline of our videos so far: Lesson 1: How to set up a console application using Visual Studio .NET 2003. Lesson 2: Basic input and output. Lesson 3: Variables and constants. Lesson 4: Basic data types. Lesson 5: Logical operators. Good luck coding!
|
|
|
|
« Last Edit: November 18, 2008, 09:44:13 AM by Jenna Hall »
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #1 on: April 19, 2008, 12:19:12 AM » |
|
We have just posted a new version of C++ Console Lesson 1 using Visual C++ 2008: http://xoax.net/comp/cpp/console/Lesson1.phpSo, we now have both Visual C++ 2003 and 2008 versions available. We have made 2008 the default video, but you can still see the 2003 version by selecting the second video in the player at any time.
|
|
|
|
|
Logged
|
|
|
|
mustang102
Newbie

Posts: 1
|
 |
« Reply #2 on: August 18, 2008, 08:44:11 PM » |
|
i put in this code like it says
#include <iostream>
int main() { std:cout << "Hello World!" << std::endl; return EXIT_SUCCESS; }
and it doesnt work... plz help
|
|
|
|
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #3 on: August 18, 2008, 09:54:52 PM » |
|
The problem is the line after main. There should be two colons after std.
It should look like this:
std::cout << "Hello World!" << std::endl;
|
|
|
|
« Last Edit: August 18, 2008, 10:19:29 PM by Michael Hall »
|
Logged
|
|
|
|
Shiyin
Newbie

Posts: 6
|
 |
« Reply #4 on: August 29, 2008, 01:26:20 AM » |
|
Hi, thank you very much for the "Hello World" tutorial video on YouTube, which led me here. I think I've followed it exactly, but it doesn't work. The following message is given in the window at the bottom of my screen:
Linking... Embedding manifest... Project : error PRJ0003 : Error spawning 'cmd.exe'. Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Project1\Console Lesson One\Console Lesson One\Debug\BuildLog.htm" Console Lesson One - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
the program was entered as follows:
#include <iostream>
int main() { std::cout << "Hello World!" << std::endl; return EXIT_SUCCESS; }
I have previously followed the intructions of other similar/same programs, from books and another YouTube video tutorial (by someone else, not as sufficiently detailed & clear as yours), and nothing works - other error messages appear. Please help.
|
|
|
|
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #5 on: August 29, 2008, 11:35:08 AM » |
|
It's definitely not a problem with your code. It looks like there are some issues with paths. I found this link with the solution below at MSDN. Let me know if this works. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=172610&SiteID=1In the Options go into Projects and Solutions -> VC++ Directories page and place this rows:
$(SystemRoot)\System32 $(SystemRoot) $(SystemRoot)\System32\wbem
|
|
|
|
|
Logged
|
|
|
|
Shiyin
Newbie

Posts: 6
|
 |
« Reply #6 on: August 29, 2008, 03:58:02 PM » |
|
Thank you! It worked. I think I must have messed up the paths myself when trying unsuccessfully to set up other compilers. I was much pleased to see the especially appropriate message display as the program finally ran, as I can now really begin learning to program. This forum's especially valuable for those like me trying to do so alone. Thanks again.
|
|
|
|
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #7 on: August 29, 2008, 09:49:48 PM » |
|
You're welcome! I'm glad that I could help. Let me know if you have any other problems.
|
|
|
|
|
Logged
|
|
|
|
rn1rnl
Newbie

Posts: 3
|
 |
« Reply #8 on: September 06, 2008, 08:54:38 PM » |
|
hey wen i put in this code #include <iostream>
int main() { std::cout << "Hello World!" << std::endl; return EXIT_SUCCESS; }
it says unable to start program, the system can't find the path specified. what am i doing wrong?
|
|
|
|
« Last Edit: September 07, 2008, 10:10:18 AM by Michael Hall »
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #9 on: September 06, 2008, 09:00:35 PM » |
|
I think you might have added the file "main.cpp" using File->New->File instead of Project->Add New Item and using the dialog box as we showed in the video.
|
|
|
|
|
Logged
|
|
|
|
rn1rnl
Newbie

Posts: 3
|
 |
« Reply #10 on: September 06, 2008, 09:03:56 PM » |
|
no i did it right. I dont think the coding is rite or something
|
|
|
|
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #11 on: September 06, 2008, 09:06:21 PM » |
|
The code is correct. You can try downloading the project. The compiler is telling you that it cannot find the file. What is the exact error (number) that you get?
|
|
|
|
« Last Edit: September 06, 2008, 09:08:39 PM by Michael Hall »
|
Logged
|
|
|
|
rn1rnl
Newbie

Posts: 3
|
 |
« Reply #12 on: September 06, 2008, 09:10:26 PM » |
|
Unable to start program. 'C:/users/paler/documents/visual studio 2008/projects/ConsoleLesson1/Debug/ConsoleLesson1.exe
the system cannot find the path specified.
sorry im only a soph in high school and im trying to learn this stuff
|
|
|
|
|
Logged
|
|
|
|
|
Michael Hall
|
 |
« Reply #13 on: September 06, 2008, 09:20:19 PM » |
|
It looks like something was misplaced or a path is wrong.
Check your directory for the executable. Is there an .exe file? C:/users/paler/documents/visual studio 2008/projects/ConsoleLesson1/Debug/ConsoleLesson1.exe
What is that path of your project? Is this it? C:/users/paler/documents/visual studio 2008/projects/ConsoleLesson1
Also, try downloading and using our project. Let me know if that works.
|
|
|
|
« Last Edit: September 06, 2008, 09:22:46 PM by Michael Hall »
|
Logged
|
|
|
|
|