<?
#include <string>
#include <iostream>

using namespace std;

int main()
{
    
int celfar;
    
char *test;

        
test 'q';
        while (!
strcmp(test,"y"))
    {
        
cout << "Please enter the temperature in degrees celcius: ";
        
cin >> cel;
        
far cel*9/5+32;
        
cout << "The temperature " << cel << " in fahrenheit is " << far << ".\n";
        
cout << "Exit? (enter y to exit, any other character to continue): ";
        
cin >> test;
    }    
//end while

    
return 0;
}
?>
A program I wrote (pg. 2) - TranceAddict Forums - Chill Out Room
return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

Pages: 1 [2] 3 4 
A program I wrote (pg. 2)
View this Thread in Original format
ierxium
I have all the source codes for these porgrams. Can't find the floppies!

If user inputs something, example is N, to a quesion like: "Do you wish to continue? Y/N:" The program should end. I think you can do this with a "while" or "if" loop. Damn floppies!
ierxium
quote:
Originally posted by Nou

my compiler is all messed up and dying every other compile... :p but this works fine...


Good job sir.
itsTrueSonic
quote:
Originally posted by Nou
PHP:





umm.. i don't know about PHP, but are you supposed to include the "string" header to call "strcmp" ??? :conf:
Eric Siefer
if you like C++, you'll love visual C++ or visual basic, alot neater to look at and user friendly.
3xx3r7
Java eats C++ for breakfast. :p
verndogs
quote:
Originally posted by 3xx3r7
Java eats C++ for breakfast. :p


C# owns all

but I love java
Ken_Allen
hmm...good work

I only know a little bit of javascript & html :rolleyes:
digitalbreach
cout<<" I hate programming!!"; // my 2 cents
Tranceporter99
quote:
Originally posted by verndogs
C# owns all


hell yeah, C++ is too many memory leaks, plus C# can handle web
DjSaline
I felt so awesome the first time i created a program. just don't get frustrated when you start breaking the 20-line instruction mark and see errors. always use comments, ALWAYS. Every time i jump ship to another software project, we alike to introduce ourselves by stories of 500-line programs with errors due to typos and logical errors. UGH!

Trancedewd
I have to learn c++ as part of my major at uni, and i really fookin hate programming :whip:

Anyway, this is as far as ive got with it:

Awesome Program :wtf:
Sunsnail
it wouldn't open :conf:
CLICK TO RETURN TO TOP OF PAGE
Pages: 1 [2] 3 4 
Privacy Statement