+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Check out my prog

  1. #1
    manzoor's Avatar
    manzoor is offline x10 Lieutenant manzoor is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    the Internet
    Posts
    430

    Check out my prog

    yO

    I have made a console based program
    which converts Temperatures

    Haven't coded for almost 3 months so was just checking how much have I forgotten :drool:

    here's the link
    http://mihd.net/7etqyz
    download and comment please
    I will port it to GUI when I'll learn Windows programming


    Any C/C++ programmers here in X10hosting ?


    If you find my posts helpful then please add my Reputation by click on this button at the top right of this post

    /* No Comment */

    while ( ! ( succeed = try () )); ------> Try Again ;)

    www.webhostingyes.com


  2. #2
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Check out my prog

    What's so hard about that?

    Code:
    #include <iostream>
     
    using namespace std;
     
    int main()
    {
      // enter the temperature in Celsius
      int celsius;
      cout << "Enter the temperature in Celsius: ";
      cin >> celsius;
     
      int fahrenheit;
      fahrenheit = 180* celsius/100 + 32;
     
    
      cout << "Fahrenheit value is: " << fahrenheit << endl;
     
    
      char ch;
      while ( cin.get ( ch ) && ch != '\n' )
    	;
     
    
      cout << "Press Enter to continue...";
      cin.get();
    }
    I didn't look at your code, btw

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  3. #3
    Killa619 is offline x10Hosting Member Killa619 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    43

    Re: Check out my prog

    lol a tempreture converter out of all things. how clever

  4. #4
    mattura's Avatar
    mattura is offline x10 Elder mattura is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    563

    Re: Check out my prog

    me senses a hint of sarcasm lol
    PS Slothie, isn't it f=8c/5 + 32? You have 9c/5
    ----
    Life is a game. The conception is terrible but the graphics are amazing!
    matt.elementfx.com

  5. #5
    QueenHawkeye's Avatar
    QueenHawkeye is offline x10 Lieutenant QueenHawkeye is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    New Jersey
    Posts
    289

    Re: Check out my prog

    My calculator can do that for me. No need to download anything.
    Do not add me on MSN unless I know you.
    I will deny all requests.

    Need free cash?
    Join up now!

  6. #6
    bigmanbfa2's Avatar
    bigmanbfa2 is offline x10Hosting Member bigmanbfa2 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    67

    Re: Check out my prog

    I'm pretty sure it's 9c/5 + 32. actually, im 100% sure.

    Also, I used to make tons of those console things back in HS.

    I code in C/C++/C#. also know quite a bit of ASM. If you need some GUI stuff with C/C++, I recommend looking into the FLTK wrapper. FLTK stands for Fast Light Tool Kit, it helps a bunch when making GUI's for C/C++ programs without having to go directly through the Win32 API.

    also, I agree, this is not a very challenging program, I haven't looked at your code either, but it took me less than a min to whip this one up.

    Code:
    #include <stdio.h>
    
    int main()
    {
      int celcius, fahrenheit;
      
      printf("Enter a celcius value: ");
      scanf("%i", &celcius);
      
      fahrenheit = ((9 * celcius)/5) + 32;
      
      printf("Fahrenheit = %i\n", fahrenheit);
      
      system("PAUSE");	
      return 0;
    }
    Last edited by bigmanbfa2; 11-27-2007 at 11:18 PM.

  7. #7
    warlordste's Avatar
    warlordste is offline x10 Elder warlordste is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Wigan
    Posts
    653

    Re: Check out my prog

    i lernt that ages ago in year 11 of high school not very imoressive but meh we have to start somewhere
    "It's time to prove to your friends that you're worth a damn. Sometimes that means dying, sometimes it means killing a whole lot of people."- sin city "You either die a hero or you live long enough to see yourself become the villain" - TDK



  8. #8
    QuwenQ is offline x10 Elder QuwenQ is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    977

    Re: Check out my prog

    Yeah, except there are hundred of free ones online.

  9. #9
    shaunak's Avatar
    shaunak is offline x10 Lieutenant shaunak is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    3rd rock from the sun
    Posts
    317

    Re: Check out my prog

    And with MS Visual studio C#, you can make a nice graphical one in bout 15 mins!

    Down with the console!
    Last edited by shaunak; 11-30-2007 at 09:07 AM.
    Cheers,
    Shaunak

  10. #10
    Sharky's Avatar
    Sharky is offline Admiral Awesome Sharky will become famous soon enough
    Join Date
    Oct 2007
    Location
    Outside the USA
    Posts
    3,306

    Re: Check out my prog

    Using 8/5 is for converting between MPH and KM/h. Or just miles to km for that matter.

    F = (C*1.+32, and 9/5 = 1.8.
    The physics is theoretical but the fun is real.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Request for Record Check
    By roger in forum Free Hosting
    Replies: 1
    Last Post: 11-15-2007, 01:20 PM
  2. Check Ads?
    By knoxoqe in forum Free Hosting
    Replies: 1
    Last Post: 12-11-2005, 07:05 PM
  3. Pls Admins Check If My Ip Is Blocked
    By taxloss in forum Free Hosting
    Replies: 0
    Last Post: 09-20-2005, 01:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers