Can I not do it with C?
Type: Posts; User: Noobwaker
Can I not do it with C?
So I want to make an application/program with a bunch of text area things that the user can paste text into, and press some buttons and have the program process the text and spit out some new text in...
Okay, cool. Thanks.
...or at least I think that's what it's about.
Is there any difference during execution between
obj->thing
and
(*obj).thing
?
Oops...
Thanks
This line fails:
#include "windows.h"
#include "stdio.h"
#include "time.h"
#include "math.h"
#include "string.h"
typedef struct UNIT{
void **p;
int pS;
I'm trying to learn how to do dynamic allocation stuff, so I'm trying to make a program that uses this. I don't get any errors when I compile, and none of the malloc checks print anything, but...
Many thanks
I'm not compiling with any C++ stuff.
But... I don't think that answered my question. If it did, then I didn't understand it.
Then is there another way to do dynamic memory allocation?
I wanted to use it for a malloced pointer.
So, how do I do something like cast a void to an int?
So does anyone know why the compiler would freeze?
Oh, thanks. I had no idea.
Well, now it doesn't give me any errors, but it doesn't compile either. It just kinda sits there, as if the compiler had an infinite loop in it. Or does VC just take...
Ok, thanks.
All the header errors are gone. Now it just doesn't like my source code.
errors:
oRly.c
oRly.c(154) : error C2143: syntax error : missing ';' before 'type'
oRly.c(174) : error...
Oh... thanks.
Ok, I think I fixed the windows.h problem, but now I'm having other problems with the gl header. I'm getting a bunch of these errors:
gl\gl.h(1151) : error C2054: expected '('...
I tried to compile a source file that I already had, but I got several errors pertaining to my include files...
>cl /c wussemblem.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version...
Oh yea, oops. hehe...
I don't know what you meant about me missing a header file, or calling mis-matched conversion strings, but I took your other 3 pieces of advice, and changing "r" and "w" to "rb" and "wb" made it...
The first file is really small, around 100 bytes, and all the rest are 0 bytes.
#include "windows.h"
#include "stdio.h"
#include "string.h"
void main(){
FILE *fl1, *fl2;
char Fn[255],...
I tried to make a program that takes a file and turns it into a bunch of smaller files, but the output files are always empty... can someone tell me where I'm messing up?
#include "windows.h"...