Search:

Type: Posts; User: suzumebachi

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,726

    huzzah it works! thanks guys... int main()...

    huzzah it works! thanks guys...


    int main()
    {
    int length;
    char capital;
    char text[]="this is some text";
    char space[]=" ";
    char *result=NULL;
  2. Replies
    7
    Views
    1,726

    ahh.. i was using string.h :)

    ahh.. i was using string.h :)
  3. Replies
    7
    Views
    1,726

    e:\dev\textfile\textfile.cpp(36) : error C2679:...

    e:\dev\textfile\textfile.cpp(36) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class...
  4. Replies
    7
    Views
    1,726

    Dropping the first character of a string

    How would you drop or ignore the first character of a string? For example, you have a string that says "Spaghetti" and you just want "paghetti".
  5. Replies
    4
    Views
    911

    whoa. flush; worked like a charm. thanks a bunch...

    whoa. flush; worked like a charm. thanks a bunch guys.
  6. Replies
    1
    Views
    1,431

    www.cppreference.com has a pretty good list of...

    www.cppreference.com has a pretty good list of standard library functions, if that's what you mean.
  7. Replies
    4
    Views
    911

    Delayed Functions?

    #include <stdlib.h>
    #include <time.h>
    #include <iostream.h>
    #include <string.h>
    #include "Console.h"

    namespace con = JadedHoboConsole;

    inline void drawline(int length)
    {
  8. Replies
    22
    Views
    3,048

    ok... so it's a portability issue. but what...

    ok... so it's a portability issue. but what about the goto?
  9. Replies
    15
    Views
    9,416

    ok, it's working now. the code's still kinda...

    ok, it's working now. the code's still kinda messy though.

    here's what I have now:


    // Health Fair
    // Created by Ty Guenley
    // 02-09-05

    #include <iostream.h>
  10. Replies
    22
    Views
    3,048

    o.O ??????

    o.O ??????
  11. Replies
    22
    Views
    3,048

    I don't understand why everyone hates goto so...

    I don't understand why everyone hates goto so much (maybe it's because I'm used to QBasic and batch files?). And I also don't understand what's wrong with void main() for a simple program. :o

    As...
  12. Replies
    15
    Views
    9,416

    ok i think it actually is calling the weight()...

    ok i think it actually is calling the weight() function, it's just clearing so fast i can't see it (it never pauses for input or anything, so it flashes for a millisecond and returns to the menu).
    ...
  13. Replies
    15
    Views
    9,416

    I think if and else if is going to work better...

    I think if and else if is going to work better than switch in the menu because after the function returns, it's moving straight to the next case for some reason.

    Edit: Tried that, and it doesn't...
  14. Replies
    15
    Views
    9,416

    wait, i discovered what was causing return not to...

    wait, i discovered what was causing return not to work. i removed the break after the call to bmi() in main(). but now it's going straight to weight().

    working on it...
  15. Replies
    15
    Views
    9,416

    When I change to : ...

    When I change <iostream.h> to <iostream>:

    --------------------Configuration: healthfair - Win32 Debug--------------------
    Compiling...
    healthfair.cpp
    c:\cs151\healthfair\healthfair.cpp(35) :...
  16. Replies
    22
    Views
    3,048

    1. You didn't include iostream. Fatal error. 2....

    1. You didn't include iostream. Fatal error.
    2. You defined main() as an integer and didn't return a value.
    3. You had invalid escape sequences. (n\)
    4. You had invalid operators. (=>)
    5. You...
  17. Replies
    15
    Views
    9,416

    well, it apparently doesn't matter whether I call...

    well, it apparently doesn't matter whether I call it main() or not, I get the same error anyways. :/

    thanks for the reply though. :)
  18. Replies
    15
    Views
    9,416

    Recalling Functions?

    First off, I'd just like to point out that I'm quite new to C++. Anyways, I'm trying to make an inline function return to the main function if a switch case is met. The compiler error is as...
Results 1 to 18 of 18