Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 17th, 2006, 1:04 PM   #1
killerapp332
Newbie
 
Join Date: May 2006
Posts: 2
Rep Power: 0 killerapp332 is on a distinguished road
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:
killerapp332 is offline   Reply With Quote
Old May 17th, 2006, 1:06 PM   #2
killerapp332
Newbie
 
Join Date: May 2006
Posts: 2
Rep Power: 0 killerapp332 is on a distinguished road
ha ha dancing bannana
killerapp332 is offline   Reply With Quote
Old May 17th, 2006, 1:11 PM   #3
Prm753
Professional Programmer
 
Prm753's Avatar
 
Join Date: Oct 2005
Location: United States
Posts: 447
Rep Power: 4 Prm753 is on a distinguished road
Send a message via AIM to Prm753 Send a message via MSN to Prm753
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)
is not how you #include the iostream library. Please re-state your question, and make sure that you are coding in C++. Be sure and use [*code] tags (without the *) when you post again. A good free C++ compiler is Dev-C++, which can be found at http://www.bloodshed.net

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
Prm753 is offline   Reply With Quote
Old May 17th, 2006, 1:39 PM   #4
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old May 17th, 2006, 4:15 PM   #5
.TD
Programmer
 
.TD's Avatar
 
Join Date: Feb 2006
Location: UK
Posts: 36
Rep Power: 0 .TD is on a distinguished road
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
__________________
Go away before I replace you with a very small shell script.
--
Get FireFox!
.TD is offline   Reply With Quote
Old May 17th, 2006, 4:30 PM   #6
hervens48
Programmer
 
Join Date: Apr 2006
Location: Montreal, Canada
Posts: 95
Rep Power: 3 hervens48 is on a distinguished road
Send a message via AIM to hervens48 Send a message via MSN to hervens48
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()?
hervens48 is offline   Reply With Quote
Old May 17th, 2006, 4:35 PM   #7
gumbyman31
Newbie
 
Join Date: May 2006
Location: Inside
Posts: 14
Rep Power: 0 gumbyman31 is on a distinguished road
Send a message via AIM to gumbyman31
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.
gumbyman31 is offline   Reply With Quote
Old May 17th, 2006, 4:46 PM   #8
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old May 17th, 2006, 6:12 PM   #9
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Old May 17th, 2006, 7:30 PM   #10
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC