|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
your first C++ assignment
C++ compiler
Above is a link to a C++ compiler so that if your interested in learning a bit about C++ ill be posting short codes and tricks and tips here .... this is a very popular and powerfull PC language quite a few languages as well as software is developed with some sort of C syntax below is the first bit of code to try ... // DBL forward slashes are programers notes here you can put // anything you want,your name,what the program does //and the compiler will not read anything behind the slashes //into your code. you may also program note with // a */ /* anything in between //slash astrick is a programmers note as well. */TRY TO USE THE CODE BELOW/* #include< iostream > //use no spaces using namespace std; int main () { cout<<"\nthis is our first C++ program."; cout<<"\nit works!!!"; cout<<endl; //endl is a carriage return command return 0; } your output after you compile should be this VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV this is our first C++ program. it works!!! any questions.....post em up
__________________
=====Retired sig team member===== Last edited by BOne; 11-04-2004 at 09:55 AM. |
#2
|
||
|
Grrr. I am a slacker. I took a class in C++ but it went way too slow. Is it better to start in VB or C++?
__________________
|
#3
|
||
|
depends.
VB up until version 6.0 is nice to begin with, although IMO it's not a "proper" programmiang language. but VB.NET is quite different, and way better structured, but still as easy. C++ is not good for beginners, since it's very....unforgiving. i'd recommend Java instead, from there it's not too hard to go over to C++ |
#4
|
||
|
Well I know the basics...if, while, for ect I am not very good with objects and such. I need to get better at arrays and stuff. I don't know how to interact with other programs and such...
__________________
|
#5
|
|||
|
Quote:
__________________
=====Retired sig team member===== |
#6
|
|||
|
Re: your first C++ assignment
Quote:
I know this post is, a little dated, but, they arent many threads to bring this thread up above. Not sure where you learned your C++ Bone lol, but my code differs a bit from yours. Hit me up on MSN @ dce_evolution@hotmail.com Need some help with DevC++ Compiler.. but I just went ahead and operated with using number variables in C++ : // operating with variables # <iostream.h> int main {} { // declaring variables: int a, b; int result; // process: a = 5; b = 2; a = a + 1; result = a - b; // print out the result: cout << result; // terminate the program: return 0; } |
#7
|
|||
|
Quote:
that code was actually an assignment in class.. our first..get our feet wet so to speak...lol...
__________________
=====Retired sig team member===== |
#8
|
||
|
Hey Im wanting to start a career in Computer Programming (making video games), so maybe I can learn a lil before I start college (Im only in 10th grade LOL)
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
University Assignment | Stoint | Sigs and Graphics | 10 | 05-02-2005 03:59 PM |