| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Brand new programmer in need of basic help
Sup...Ive been hearing a lot about this C++ and have finally decided to try it. Turns out its a lot harder then I expected. Ive gotten a few books about it but they didnt give me a good idea of how to do anything. The only thing Ive been doing is copying what the examples are and most of the time it comes up with errors when im compiling it. anyways judging from your forums some of you might be able to help me and I hope maybe teach me a little about this C++ because it would probably be easier with someone who knows what their doing then a book and I no it will be very time consuming but if not I thank you anyways.
-E|2IC- |
|
#2
|
||||
|
||||
|
What exactly is your question?
![]()
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 280
![]() |
|
#3
|
|||
|
|||
|
If someone that knows how to use C++ could teach me at least a little about it if not more so I could start programming on my own. One problem is I dont know what I want to make with it but i think partly because I dont know what it can do or how.
|
|
#4
|
|||
|
|||
|
outstream aka what you want to show up on the screen
Code:
#include<iostream> //tells the compiler to look up definitions in the c++ library to use input output
using namespace std; // tells the compiler to recognize spaces between code
int main() //driver function (will learn more about functions later)
{
cout<<"Hello World"<<endl; // cout tells the compiler what to show up on the screen
//<<endl means begin a new line
// semi colons are needed after each statement
return 0; // funtions declared int need to return an integer value(again will learn more about function later
}
well thats a simple program try out and familiarize outputting to the screen and i'll see what more i can explain. |
|
#5
|
|||
|
|||
|
Do u have like a instant messenger or somehting so we dont have to keep posting? if not then this is fine. but ne ways i tried ur script and i got it to work after like a hour though.haha.
|
|
#6
|
|||
|
|||
|
I did your script exactly how it is but it didnt stay up so i couldnt see it.. but i found out that if u put
int main(char* pszArgs[]) then before return 0 put system ("Pause") then have the return 0 it will stay open and say press any key to continue... But im probably telling you stuff you already know. haha. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Brand new programmer in need of basic help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|