| View previous topic :: View next topic |
| Author |
Message |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Thu Aug 21, 2008 6:49 pm Post subject: |
|
|
| Shigure wrote: | | ok thanks, but now I'm stuck again, I'm doing one of those Hello world things and I don't know what kind of project to open up..... which should I use? |
W/e your compiler has for a console application. |
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Thu Aug 21, 2008 7:02 pm Post subject: |
|
|
| ummm.... Visual studios C++... This is what the entire topic is about. And what decompiler should I use? I don't have one... Its a Hello World program, the kind that they use here |
|
| Back to top |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Thu Aug 21, 2008 7:07 pm Post subject: |
|
|
VB is so retarded. Programming with VB is like having someone spoonfeed you everything. For example, there are wrappers for almost every Win32 API. Like, you can get a process ID with a function that takes 1 argument.
VB doesn't teach you all the "under the hood" stuff involved with doing something. It just gives you pre-made routines. So, when you move on to C++, you are screwed because you're so used to the conveniences of VB. |
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Thu Aug 21, 2008 7:16 pm Post subject: |
|
|
| when did I start talking about VB? I'm using Visual Studios C++ |
|
| Back to top |
|
 |
igoticecream Grandmaster Cheater Supreme
Reputation: 0
Joined: 23 Apr 2006 Posts: 1807 Location: 0x00400000
|
Posted: Thu Aug 21, 2008 8:40 pm Post subject: |
|
|
open visual studio (i got 2005)
new -> project ->select win32 app. -> ok -> next -> console app. -> end
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
int _tmain(int argc, _TCHAR* argv[])
{
printf("Hello world");
getch();
return 0;
}
done _________________
+~ |
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Thu Aug 21, 2008 8:53 pm Post subject: |
|
|
How do you compile a program with Visual Studios 2008 express edition? The program code I'm using is this
| Code: | #include <iostream>
using namespace std;
int main()
{
cout <<"Hello unworthy humans";
return 0;
} |
I don't know how to compile, the file is called Sample.cpp , I used notepad, and I am trying to compile using VS08C++Express
Last edited by lucid on Fri Aug 22, 2008 5:26 am; edited 1 time in total |
|
| Back to top |
|
 |
中国& Cheater
Reputation: 0
Joined: 21 Aug 2008 Posts: 34
|
Posted: Thu Aug 21, 2008 8:58 pm Post subject: lol |
|
|
study binary,hex,octal/math classes
gear up your logic
@shigure
u took that offa cpluspluw dot com(sorry cant post urls yet) didnt u
=P
i personally like to use the std:: command
=] |
|
| Back to top |
|
 |
igoticecream Grandmaster Cheater Supreme
Reputation: 0
Joined: 23 Apr 2006 Posts: 1807 Location: 0x00400000
|
Posted: Thu Aug 21, 2008 9:19 pm Post subject: |
|
|
press F7 or the green triangle _________________
+~ |
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Fri Aug 22, 2008 5:28 am Post subject: |
|
|
| Code: | #include <iostream>
using namespace std;
int main()
{
cout <<"Hello unworthy humans";
return 0;
} |
For some reason when I try to use the code above, it says there is an error. Does anyone see something wrong with this code? If not does anyone else have trouble using it? |
|
| Back to top |
|
 |
igoticecream Grandmaster Cheater Supreme
Reputation: 0
Joined: 23 Apr 2006 Posts: 1807 Location: 0x00400000
|
Posted: Fri Aug 22, 2008 12:45 pm Post subject: |
|
|
StdAfx.h error?
#include "StdAfx.h" _________________
+~ |
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Fri Aug 22, 2008 3:30 pm Post subject: |
|
|
So it should be like this?
| Code: | #include <StdAfx.h>
using namespace std;
int main()
{
cout <<"Hello unworthy humans";
return 0;
} |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Aug 22, 2008 5:02 pm Post subject: |
|
|
| Shigure wrote: | | Code: | #include <iostream>
using namespace std;
int main()
{
cout <<"Hello unworthy humans";
return 0;
} |
For some reason when I try to use the code above, it says there is an error. Does anyone see something wrong with this code? If not does anyone else have trouble using it? |
YES LET'S NOT POST THE ERROR AND LEAVE EVERYONE GUESSING.
and no, you need <iostream> |
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Fri Aug 22, 2008 5:16 pm Post subject: |
|
|
lol cout is bad practice looks very ugly might as well get used to printf() and its convertion symbols. _________________
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Fri Aug 22, 2008 5:38 pm Post subject: |
|
|
if cout is bad practice then printf is also. Its better to use sprintf/WriteConsole for win32. _________________
|
|
| Back to top |
|
 |
lucid Master Cheater
Reputation: 0
Joined: 23 Jan 2008 Posts: 424
|
Posted: Fri Aug 22, 2008 10:16 pm Post subject: |
|
|
| You don't have to be an ass just ask. Every time I try to compile it by pressing F7 then it says there were build problems. Nothing else. Just stick in my code to Visual Studios 2008 you will see what I mean. |
|
| Back to top |
|
 |
|