What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C++ Tutorials and Beginner Stuff

Pages: (2): « First [ 1 ] 2 » Last »
C++ Tutorials and Beginner Stuff
Author: Message:
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. C++ Tutorials and Beginner Stuff
I needa learn C++ for my degree (yes i know its a long way off but i want the knowledge for when i start:P)
what i wanna know is, are there any good sites giving totally newb tutorials and maybe source code?!
08-09-2005 02:42 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: C++ Tutorials and Beginner Stuff
http://www.cplusplus.com/doc/tutorial/ is good
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
08-09-2005 02:48 PM
Profile E-Mail PM Web Find Quote Report
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. RE: C++ Tutorials and Beginner Stuff
thanks. btw im using Microsoft Visual C++ but i dont how to "run" the code. When usings Visual Basic you could just press run and voila, but how do you do it in Visual C++?
08-09-2005 02:55 PM
Profile E-Mail PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
RE: C++ Tutorials and Beginner Stuff
Click Build in the Build menu. Then click Execute "fileName" from the build menu.

Also you want to check out this book I am useing. Teach yourself Visual C++ 6 in 21 days. It's quite a nice book.

Teach Yourself Visual C++ 6 in 21 days

This post was edited on 08-09-2005 at 03:01 PM by DJeX.
[Image: top.gif]
08-09-2005 02:57 PM
Profile PM Web Find Quote Report
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. RE: C++ Tutorials and Beginner Stuff
its not working. i get an error:

"Cannot execute program"

and i copied the code from the tutorial site:

// my first program in C++

#include <iostream.h>

int main ()
{
  cout << "Hello World!";
  return 0;
}

Your link gave me a 404 :P

This post was edited on 08-09-2005 at 03:03 PM by Reaper.
08-09-2005 03:00 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: C++ Tutorials and Beginner Stuff
Try opening the project folder and running the projectname.exe file manually.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-09-2005 03:02 PM
Profile PM Web Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
RE: C++ Tutorials and Beginner Stuff
Try this

code:
#include "stdafx.h"

int main(int argc, char* argv[])
{
    printf("Hello World!\n");
    return 0;
}
[Image: top.gif]
08-09-2005 03:05 PM
Profile PM Web Find Quote Report
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. RE: C++ Tutorials and Beginner Stuff
um the odd thing is, there is no .exe file in the project folder :|
i click Build exe and i get the Windows Astrisk beep lol
if i click Execute Test1.exe is asks me if i want to create, i press yes then it gives me the error i mentioned above

[Edit] nope that code doesnt work either DJeX

This post was edited on 08-09-2005 at 03:07 PM by Reaper.
08-09-2005 03:05 PM
Profile E-Mail PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
RE: C++ Tutorials and Beginner Stuff
Thats because your code has errors, it will not make the exe with errors. Try my code.

This post was edited on 08-09-2005 at 03:08 PM by DJeX.
[Image: top.gif]
08-09-2005 03:08 PM
Profile PM Web Find Quote Report
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. RE: C++ Tutorials and Beginner Stuff
but i copied the code exactly from the tutorial!
08-09-2005 03:11 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On