Search:

Type: Posts; User: twm

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Quick question

    by twm
    Replies
    2
    Views
    919

    >Without displaying "Press any key to continue"...

    >Without displaying "Press any key to continue" and waiting to be closed manually.
    Don't run it from your IDE. Some GUI front-ends to compilers like Visual C++ do that if you run the program from...
  2. Thread: Visual C++ Help!!

    by twm
    Replies
    7
    Views
    1,162

    What did I tell you before? Functions inside...

    What did I tell you before? Functions inside functions are illegal.
  3. Thread: Visual C++ Help!!

    by twm
    Replies
    7
    Views
    1,162

    Can you post some code? The error looks like...

    Can you post some code? The error looks like you're trying to nest functions (which is illegal in C/C++).
  4. Thread: if c++ went away

    by twm
    Replies
    23
    Views
    2,336

    >that you can backup with sufficient argument...

    >that you can backup with sufficient argument
    Sufficient argument like "My CS instructor has a really great saying"? ;)
  5. Thread: Turned it down

    by twm
    Replies
    14
    Views
    3,060

    >Must be nuts eh? No way, if you don't think...

    >Must be nuts eh?
    No way, if you don't think you're ready then you shouldn't leave. :)
  6. Thread: array

    by twm
    Replies
    5
    Views
    1,000

    >Hey twm - chill on the sig man....

    >Hey twm - chill on the sig man.
    Joke...funny...laugh. :D
  7. Thread: array

    by twm
    Replies
    5
    Views
    1,000

    >How can I put a range of numbers in an array...

    >How can I put a range of numbers in an array without typing in all the numbers. Like 0-24,25-49,50-74,75-100
    You don't. Try either building a vector at runtime or using paired numbers for the...
  8. Replies
    19
    Views
    4,378

    >Any ideas.. this is kind of hard to explain....

    >Any ideas.. this is kind of hard to explain.
    Source code, something we can compile. Just give me a quick program like I posted so I can test it.
  9. Replies
    4
    Views
    1,831

    >Is this a new format? Why would it work ok in my...

    >Is this a new format? Why would it work ok in my old compiler?
    Your old compiler probably doesn't know that modern C++ doesn't allow implicit int.
  10. Replies
    19
    Views
    4,378

    >Isn't ls ls what I want? Not exactly. Try this...

    >Isn't ls ls what I want?
    Not exactly. Try this and see if fork does something to your variable, the following works perfectly for me:


    Fri Oct 31 4:12:58pm
    sangut: ~/misc
    > <c.c less...
  11. Thread: decimal ?

    by twm
    Replies
    3
    Views
    1,329

    I believe you need to set the format flags to...

    I believe you need to set the format flags to floating-point, something like this IIRC:


    cout.setf(ios_base::fixed, ios_base::floatfield);
  12. Replies
    4
    Views
    1,831

    >CDACSIVSession::CommandSetup(char *pszResponse,...

    >CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
    Should be:


    int CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
  13. Replies
    3
    Views
    1,047

    cout

    cout<<'\n';

    This moves the cursor to the start of the next line. That's the best I can do without seeing your code.
  14. Replies
    19
    Views
    4,378

    >I didn't know that was an issue with forks. It...

    >I didn't know that was an issue with forks.
    It isn't, but you're most likely not using execlp correctly. The first argument is the program to run, the second argument is the arguments to pass to...
  15. Thread: Boo!

    by twm
    Replies
    17
    Views
    4,209

    >I'm going to my first REAL party. The kind with...

    >I'm going to my first REAL party.
    The kind with booze and X rated content where you get laid sometime before sunrise? :D If you do it right you'll understand why I like Halloween so much. ;)
  16. Thread: Who Learns How?

    by twm
    Replies
    47
    Views
    8,253

    >Third, they're professors, not professional...

    >Third, they're professors, not professional coders, so they don't have to know the fine points of a language
    You mean fine points like 'void main' and 'fflush(stdin)'? I don't know about you, but...
  17. Thread: Who Learns How?

    by twm
    Replies
    47
    Views
    8,253

    >How can you even say that?! Some of my...

    >How can you even say that?! Some of my professors are simply brilliant
    Note that I said most, not all. Yea, there are some amazing teachers out there, but the majority know less than many of this...
  18. Thread: Read line by line.

    by twm
    Replies
    9
    Views
    1,728

    >How can I do a similar function that instead of...

    >How can I do a similar function that instead of taking a FILE variable uses the variable already defined?
    Sounds like you want sscanf if the defined variable you're talking about is EntScript...
  19. Replies
    2
    Views
    14,394

    Ctrl-C is usually SIGINT, so all you need to...

    Ctrl-C is usually SIGINT, so all you need to ignore it. :)


    struct sigaction sac;

    if (sigaction(SIGINT, NULL, &sac) == -1)
    perror("Couldn't get old handler");
    else {
    ...
  20. Replies
    3
    Views
    2,016

    You can't return arrays, only pointers to char...

    You can't return arrays, only pointers to char and pointers to arrays. So your code would look like this:


    char *getstr() {
    return "I work";
    }

    int main {
    char *str;
  21. Replies
    17
    Views
    4,361

    How about minikui? :D:p

    How about minikui? :D:p
  22. Thread: Maps with ints[]

    by twm
    Replies
    4
    Views
    1,635

    You can't use the assignment operator with arrays...

    You can't use the assignment operator with arrays except initialization, why not use a vector instead of an array?
  23. Thread: Who Learns How?

    by twm
    Replies
    47
    Views
    8,253

    >I feel I may be missing quite a bit by not...

    >I feel I may be missing quite a bit by not having the voice of experience to help me through, any other ideas on this?
    Sorry, missed this part. Most teachers are stupid anyway, so you're not...
  24. Replies
    3
    Views
    952

    >could somebody give me a little background on...

    >could somebody give me a little background on what a graphics library is?
    Allegro, TK, OpenGL, DirectX...basically anything that lets you work with pixels instead of characters. From what I've...
  25. Thread: Who Learns How?

    by twm
    Replies
    47
    Views
    8,253

    Self taught by reading souce code and faking my...

    Self taught by reading souce code and faking my way through things until I actually knew what to do. :D
Results 1 to 25 of 233
Page 1 of 10 1 2 3 4