//flex table opened by JP

Click to See Complete Forum and Search --> : Programming II help


Aznmask
10-04-2002, 08:30 PM
Help on C++.!! i'm taking Programming 2 right now.. and i'm new to the stuff of C++ czu my programming 1 only teach me those QBasic. Right now we are learn C++ on chapter 2 "control Structure"

any help is appreciate!!! !

Aznmask
10-06-2002, 09:34 PM
here is a problem to find the average.. anyone know how to do it?


Enter the gallons used (-1 to end): 12.8
Enter the miles driven: 287
The miles/gallons for this tank was 22.421875

Gobi
10-18-2002, 09:01 AM
Hmmm....basic matematics?
287 / 12.8 ? = 22.421875

I havent written c++ code for almost 5 years, but
way back in my memory it would be something like:


#include <somefiles.h> // Cant remember.


void main()
{
int gallons;
int miles;
int answer;

cout << "\nInsert total number of gallons used of gasoline: ";
cin >> gallons;
cout << "\nInsert the number of miles driven: ";
cin >> miles;

answer= miles / gallons;

cout << "\n\nThe awerage use of gasoline is " answer " gallons pr mile\n";
getch();

}//end void main.

Well, hope it will help.

Later
Gobi.

Aznmask
10-18-2002, 06:43 PM
I need some link taht teach u those C++ stuff.. plz help me!!! SysOpt Community plz reply me ASAP other wise i fail.

ALso i need a GOOD C++ that complile & run and debug and tell u the error!! My quincy97 C+ not work well with Win2k or ME unless i install win95 or win98 which i have to go over many procedure..

Gobi
10-21-2002, 03:32 AM
Hi there.

Hmmm...it sounds like you dont have any schoolbooks
to read through, thats right? The example you asked
for is one of the most basic 'get-to-know-how-to-prog.'
trainingpractice. Nothing comes easy in this world, and least
of all programming. You have to read, and spend a LOT of
hours in front of the computer, typing the same code
over and over again, until you realise why there is a ;
and not a :, and that the do while, if else, etc all makes
sense like butter on bread. There is no shortcut to learn
how to make programs in C++.

Well, you asked for some pages where you could find
help for C++ programming, and i did a quick search on the
http://www.alltheweb.com page for "c++ tutorial", and
below is some of the links. (Got 34000 replies).
Good luck.:t

http://www.intap.net/~drw/cpp/
http://www.cs.uregina.ca/dept/manuals/C++/tutorial.html
http://www.cs.wustl.edu/~schmidt/C++/
http://www.sysprog.net/cplus.html
http://tutorials.boxsource.net/categories/4/
http://www.edm2.com/0507/introcpp1.html
http://www.scis.nova.edu/~leonardl/main.html


Later
Gobi.

Aznmask
10-24-2002, 10:17 PM
Gobi thx for your site..

But the problem is My C++ software Quincy97 not work on my XP or Win2k, Me. Too bad i dont have 98.

Problem with XP on quincy is .. can't even complile..
WIn2k same here..
Win me same..

gfunkmartin
10-30-2002, 08:31 AM
for a compiler for Win2K/XP, you might try this one:

Bloodshed Dev-C++ 5

for more info go to www.bloodshed.net

Jason