<?
#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 (page 2) - TranceAddict Forums

Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > A program I wrote
Pages (4): « 1 [2] 3 4 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
sensorium
Supreme tranceaddict



Registered: Jun 2004
Location:

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!


___________________

Old Post Dec-29-2004 10:42  United States
Click Here to See the Profile for sensorium Click here to Send sensorium a Private Message Add sensorium to your buddy list Report this Post Reply w/Quote Edit/Delete Message
sensorium
Supreme tranceaddict



Registered: Jun 2004
Location:

quote:
Originally posted by Nou

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


Good job sir.


___________________

Old Post Dec-29-2004 11:13  United States
Click Here to See the Profile for sensorium Click here to Send sensorium a Private Message Add sensorium to your buddy list Report this Post Reply w/Quote Edit/Delete Message
itsTrueSonic
NullPointerException



Registered: Aug 2003
Location:

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" ???

Old Post Dec-29-2004 15:52  Afghanistan
Click Here to See the Profile for itsTrueSonic Click here to Send itsTrueSonic a Private Message Add itsTrueSonic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Eric Siefer
Supreme tranceaddict



Registered: May 2004
Location: Dallas, TX: TX TA #45

if you like C++, you'll love visual C++ or visual basic, alot neater to look at and user friendly.

Old Post Dec-29-2004 16:59  United States
Click Here to See the Profile for Eric Siefer Click here to Send Eric Siefer a Private Message Visit Eric Siefer's homepage! Add Eric Siefer to your buddy list Report this Post Reply w/Quote Edit/Delete Message
3xx3r7
Speedy J addict



Registered: Jan 2004
Location: with your mom

Java eats C++ for breakfast.


___________________
Blip, blip, blip...

Old Post Dec-29-2004 18:00  Ukraine
Click Here to See the Profile for 3xx3r7 Click here to Send 3xx3r7 a Private Message Visit 3xx3r7's homepage! Add 3xx3r7 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
verndogs
GET THE TANK!



Registered: Jan 2004
Location: Sports Discussion Forum - NYC

quote:
Originally posted by 3xx3r7
Java eats C++ for breakfast.


C# owns all

but I love java


___________________

quote:
[11:58] Bas //: fuck he's hot

Old Post Dec-29-2004 18:40  Philippines
Click Here to See the Profile for verndogs Click here to Send verndogs a Private Message Add verndogs to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Ken_Allen
Administrator



Registered: Jul 2004
Location: Albany NY

hmm...good work

I only know a little bit of javascript & html

Old Post Dec-29-2004 19:09  United States
Click Here to See the Profile for Ken_Allen Click here to Send Ken_Allen a Private Message Visit Ken_Allen's homepage! Add Ken_Allen to your buddy list Report this Post Reply w/Quote Edit/Delete Message
digitalbreach
the sky is falling



Registered: Oct 2002
Location: TX TA #3 5p4c3 C!ty

cout<<" I hate programming!!"; // my 2 cents


___________________

You ain't no daisy, no daisy at all

Old Post Dec-29-2004 20:06  United States
Click Here to See the Profile for digitalbreach Click here to Send digitalbreach a Private Message Add digitalbreach to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Tranceporter99
Supreme tranceaddict



Registered: Jan 2004
Location:

quote:
Originally posted by verndogs
C# owns all


hell yeah, C++ is too many memory leaks, plus C# can handle web shit


___________________


Old Post Dec-29-2004 21:00  United States
Click Here to See the Profile for Tranceporter99 Click here to Send Tranceporter99 a Private Message Add Tranceporter99 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DjSaline
Guest



Registered: Not Yet
Location:

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!

Old Post Dec-29-2004 21:31 
Add  to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Quantized
Supreme tranceaddict



Registered: Jun 2003
Location: Scotland

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

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

Awesome Program

Old Post Dec-29-2004 22:25  United Kingdom
Click Here to See the Profile for Quantized Click here to Send Quantized a Private Message Add Quantized to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Sunsnail
Global Moderator



Registered: Sep 2004
Location:

it wouldn't open

Old Post Dec-29-2004 23:35 
Click Here to See the Profile for Sunsnail Click here to Send Sunsnail a Private Message Add Sunsnail to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > A program I wrote
Post New Thread    Post A Reply

Pages (4): « 1 [2] 3 4 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackA Mysterious Tune From 2007 [2011] [0]

Click here to listen to the sample!Pause playbackTomcraft - "The Lord (Darkness)" [2004]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 08:50.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!