Search:

Type: Posts; User: Enahs

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    3,483

    I use this all the time: bool...

    I use this all the time:



    bool is_int(double value)
    {
    if ( (value / static_cast<int>(value)) == 1) return true;
    else return false;

    }
  2. Replies
    2
    Views
    904

    Well I'll be, it does. Doh! Thanks

    Well I'll be, it does. Doh! Thanks
  3. Replies
    2
    Views
    904

    Dragging file onto program

    Ok, to simplify it lets go with a toy example.

    Say I created a program that changes every individual ‘i’ in a txt file to “I”.
    But instead of running the program and selecting the file, I want...
  4. What OS? Linux/Unix :...

    What OS?

    Linux/Unix : http://www.jb.man.ac.uk/~slowe/cpp/lastmod.html
  5. Replies
    2
    Views
    980

    Is free (and really good) cheap enough?...

    Is free (and really good) cheap enough?
    http://www.bloodshed.net/devcpp.html
  6. Replies
    8
    Views
    1,628

    In my version I went and bought Maple 10 because...

    In my version I went and bought Maple 10 because I use it everyday, for things way more advanced than basic algebra calculations, though it does those beautifully :)
    http://www.maplesoft.com/
  7. Replies
    2
    Views
    881

    Besides #including them you have to add them to...

    Besides #including them you have to add them to the project.
    Project menu/Add To Project/Files
  8. Thread: ....help...

    by Enahs
    Replies
    6
    Views
    957

    Nobody here is going to help you make malicious...

    Nobody here is going to help you make malicious software.
    If you are going to try and harm people, steal information, ect figure it out your own self.

    Again I refer everybody to this:...
  9. Thread: ....help...

    by Enahs
    Replies
    6
    Views
    957

    NO!...

    NO!
    http://cboard.cprogramming.com/showthread.php?t=73635
  10. int digits[10]; double rates[6]; But make...

    int digits[10];
    double rates[6];


    But make sure you know 10 and 6 is how many, not the size.
    And that start indexing at 0.
    So you have digits[0] through digits[9].
  11. Replies
    14
    Views
    3,593

    Use the string for the names, that way you do not...

    Use the string for the names, that way you do not need name[x][x], just name[x].
    And each name is in name[0],name[1], ect.
    As for the int and double, keep the int and double arrays, but they only...
  12. Replies
    14
    Views
    3,593

    No, it does not. It creates 400 int variables....

    No, it does not. It creates 400 int variables. Each can be as big or as little as they want. Only char array's [#] say how many specific characters it holds. You just want the int...
  13. Replies
    14
    Views
    3,593

    Yes, sorta. There are various ways. You can...

    Yes, sorta.

    There are various ways.
    You can use pointers to have a dynamic array (for user declared size of arrya).
    It would be very concise with classes/structs but since you said they are...
  14. Replies
    14
    Views
    3,593

    You do not need an unknown number of variables....

    You do not need an unknown number of variables. You know exactly how many you have.
    The name, the quantity and the price, Plus the total quantity and the total price.

    Every loop around just dump...
  15. Replies
    9
    Views
    1,034

    http://www.grammarbook.com/punctuation/periods.asp

    http://www.grammarbook.com/punctuation/periods.asp
  16. Replies
    10
    Views
    1,045

    You probably have an return character in the...

    You probably have an return character in the buffer (from when you previously hit enter on your cin), so when it goes to cin.get() it has an enter in it.


    Use:



    cin.ignore();
    cin.get();
  17. Replies
    1
    Views
    1,072

    (acos(-1) * user_input) /180; Converts it to...

    (acos(-1) * user_input) /180;

    Converts it to radians.

    acos(-1) = arccos(-1) = Pi


    Though, in your code you use no trig functions so why does it matter.
    Also though, just because a number...
  18. Replies
    10
    Views
    1,045

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?a...

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1043803465&id=1043284385
    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042856625&id=1043284385
  19. Replies
    10
    Views
    1,045

    Worked for me. You must include the "return...

    Worked for me.

    You must include the "return 0;" and the closing "}".

    Also,
    Instead of this:


    #include <iostream.h>
    #include <iomanip.h>
  20. Replies
    6
    Views
    998

    To use the string type you must also...

    To use the string type you must also [code[#include <string>[/code]
  21. Replies
    6
    Views
    998

    To modify sly's code...very easy. string...

    To modify sly's code...very easy.


    string go;
    cin >> go;

    ShellExecute(NULL, "open", go.c_str(),NULL, NULL, SW_SHOWNORMAL);
    return 0;
  22. Replies
    5
    Views
    1,101

    cout

    cout << system("command");
    Is valid. So is any ostream. You can connect to a temporary file, dump everything from the system() command into the temp file then read and parse the file for data.
  23. Thread: Simple program

    by Enahs
    Replies
    9
    Views
    1,002

    Ding ding ding Yes you do. You have a...

    Ding ding ding



    Yes you do.
    You have a character, one single character.

    If it is NOT ‘y’ the loop will continue OR if it is not ‘n’ the loop will continue.
    Please tell me how it is...
  24. Thread: Simple program

    by Enahs
    Replies
    9
    Views
    1,002

    That is fine, and you can do it without the...

    That is fine, and you can do it without the return statements. That just ends your program, it will hardly be useful to only figure out control statements that works by ending the program….

    Think...
  25. Thread: Getline fucntion

    by Enahs
    Replies
    3
    Views
    857

    http://www.dinkumware.com/vc_fixes.html

    http://www.dinkumware.com/vc_fixes.html
Results 1 to 25 of 284
Page 1 of 12 1 2 3 4