![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 2
Rep Power: 0
![]() |
got a program i'm making help me
classBall;
classBat; classBat=hit classBall; classBall=Vspeed(10) Hspeed(20); include (ostream); include (iostream); add (classBall); add (classBat); } // this is for the balls vertical speed // i hope this works include (classBall); include (classBat); if (Vspeed(-5) noAir; if (Vspeed(+5) yesAir; } i'm i going the way of doing this plz complie it for me can't find a c++ complier that is free low on cash trying to see if program works right what do i need to fix trying to sell it. :banana: |
|
|
|
|
|
#2 |
|
Newbie
Join Date: May 2006
Posts: 2
Rep Power: 0
![]() |
ha ha dancing bannana
|
|
|
|
|
|
#3 |
|
Professional Programmer
|
You know, I may just be having an off day today, but that sure doesn't look like C++ to me... That or you are up to your ears in syntax errors, for example
include (iostream) Please read the thread aptly named "How to post a question" and read the forums FAQ, as well.
__________________
The world's first athletic computer geek! The home of PrProgramsStudios How not to post a question: <-- Please don't reply |
|
|
|
|
|
#4 | |
|
Professional Programmer
|
You have absolutly no idea what you're doing. Do you think people just learned the language for the fun of it, or do you just think you're so smart you already know everything you need to know in order to get right into programming? Please excuse me while I go throw up now.
By the way, you said you were trying to sell this program? Realisticly, you now owe me $53.44(Canadian) for looking at this code. I'll expect the money in my hands before monday.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Feb 2006
Location: UK
Posts: 36
Rep Power: 0
![]() |
He's only 15 give the kid a break... or maybe a book on C++ haha.. :/
Try learning at least some syntax (The rules governing the formation of statements). Were you really thinking of selling it? Nice idea.. just try to make something people _might_ want to buy first :p |
|
|
|
|
|
#6 |
|
Programmer
|
LOL, ur tyring to sell thsi program???
and is this even a c++ program? since when are includes in the middle and whats include(ostream)? and wheres the main()? |
|
|
|
|
|
#7 |
|
Newbie
|
I agree. Start with the syntax first. Then move on to writing some basic stuff, to get the hang of it. Check out the tutorials section of this forum, there is some good stuff there.
__________________
Use the best: Linux for servers, Mac for graphics, Windows for Solitaire. |
|
|
|
|
|
#8 | |
|
Professional Programmer
|
Start with this.
#include <iostream>
int main()
{
std::cout << "Hello World!";
return 0;
}This is what your program should look like if you break it down, but your trying to close blocks of code that don't even exist, attempting to use functions that don't exist, etc. get a compiler, find a tutorial, and LEARN.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Don't even start with that.. Use indenting too, i.e. tabs/spaces/whitespace.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#10 | |
|
Professional Programmer
|
My mistake. Just threw it together on the forums but I should have used space still.
Let's make your first assignment fixing that code I posted above..
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|