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)...
Type: Posts; User: tammo21
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)...
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...
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.
'...
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,...
You know, a part of me knew that, I just didn't realize it. Thanks for your help.
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...
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?
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?
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...
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...
I've been using the turbo c compiler for DOS so far... It looks to be version 2.01.... oy from 1988!! sheesh
Hey it worked!!! You guys are the bomb diggity!!!
Wooyah
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...
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>
...
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...
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:
...
If malloc only returns one type of data, can you think of any reason why the writer of that program would typecast malloc?
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...
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...
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...
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...