Search:

Type: Posts; User: tammo21

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    944

    may have figured it out...?

    not sure though. I have a premade test program my teacher made, and I'm trying to run it with bcc32.exe.........

    I keep getting these errors...



    Borland C++ 5.5.1 for Win32 Copyright (c)...
  2. Replies
    2
    Views
    944

    quick question on compiling

    borland builder 5.5. I have a question on compiling. I have all the source written out in a .cpp file. I am wondering, what's the best way to compile and run the program? Should I compile and run...
  3. Replies
    3
    Views
    910

    The only real difference I can see is the "," in...

    The only real difference I can see is the "," in between the %f signals, which leads me to believe that they're fudging it up, since my program now works. Sheesh, it's always the little things.
    '...
  4. Replies
    3
    Views
    910

    Reading info from a file...

    I need some help. Either I'm wrong, or the compiler is broken. I got this program:


    #include <stdio.h>
    #include <stdlib.h>
    main()
    {
    FILE *fp;
    char death[] = "bob.txt";
    float l1=0,...
  5. Replies
    2
    Views
    825

    You know, a part of me knew that, I just didn't...

    You know, a part of me knew that, I just didn't realize it. Thanks for your help.
  6. Replies
    2
    Views
    825

    question on strings...

    Ok, I'm doing this assignment, and I have to have a string variable with 5 names in it. Ok, so naturally I think of a 5 dimention array, like this:

    names[5][20]

    Or something. Ok so he says we...
  7. Replies
    4
    Views
    987

    Oy, I never thought of return values. Thanks. ...

    Oy, I never thought of return values. Thanks.

    So scanf is bad eh? They say to use fgets, but isn't that for strings? IE formatted get string?
  8. Replies
    3
    Views
    942

    But I thought that C could determine the...

    But I thought that C could determine the difference between a function and a variable. Does that mean that I can't have a function with the same name as a variable anywhere in the program?
  9. Replies
    3
    Views
    942

    Function issues

    So I guess you can't be redundant in your function and variable names? I'm getting an error that says "Call of non-function in function main." Here's a sample code I wrote just to test the name. I...
  10. Replies
    4
    Views
    987

    Making sure the right thing is entered...

    I got a question. What's the best way you all would think of to ensure that the correct data type is entered in a program? Like if you do "scanf" for an int, how do you make sure that an int is...
  11. Replies
    18
    Views
    2,663

    I've been using the turbo c compiler for DOS so...

    I've been using the turbo c compiler for DOS so far... It looks to be version 2.01.... oy from 1988!! sheesh
  12. Hey it worked!!! You guys are the bomb...

    Hey it worked!!! You guys are the bomb diggity!!!

    Wooyah
  13. Yeah I figured not to use new as a variable when...

    Yeah I figured not to use new as a variable when I was writing mine, but this one was written by the book I'm reading. heh

    So when using structures as data types, you have to tell the compiler...
  14. Oy my head hurts. More confusion in this, any help?

    Here's a code I'm reading from a tutorial, and I'm trying to make my own program while learning from this. I try to compile this, and I get errors:

    #include <stdio.h>
    #include <stdlib.h>
    ...
  15. Replies
    7
    Views
    1,013

    not career wise or a website, just what language...

    not career wise or a website, just what language is next to learn after I learn C++? There's gotta be a specific order that they all fall into so that you don't start learning one that requires you...
  16. Thread: typecasting?

    by tammo21
    Replies
    6
    Views
    1,732

    But malloc doesn't return void does it? I guess...

    But malloc doesn't return void does it? I guess I can live with it just being the writer's own style, but I still don't understand what the * was doing next to the cast. Why not just go like this:
    ...
  17. Thread: typecasting?

    by tammo21
    Replies
    6
    Views
    1,732

    If malloc only returns one type of data, can you...

    If malloc only returns one type of data, can you think of any reason why the writer of that program would typecast malloc?
  18. Thread: typecasting?

    by tammo21
    Replies
    6
    Views
    1,732

    typecasting?

    Sheesh I'm just full of questions.

    I got a question about typecasting in one particular instance. I know that normally you'd typecast like this:

    (type)command

    Right? Well, they use a...
  19. Replies
    7
    Views
    1,013

    Windows Compiling?

    How would you compile C or C++ code to run within Windows and not DOS? I mean, how does Windows handle things like stdin and stdout? Anyone know where I could get info on where to begin with...
  20. Replies
    8
    Views
    1,919

    Oy, I guess I can understand that. So...

    Oy, I guess I can understand that. So essentially new->next is the same as (*new).next, since new is a pointer, right?

    So does -> have any other applications? What's the definition of that...
  21. Replies
    8
    Views
    1,919

    Oy, question on linked lists

    First of all, does anyone have a link to a page that offers a tutorial on C linked lists? I have one here, but I can't seem to understand it very well.


    Ok now for my question. I see that in...
Results 1 to 21 of 21