Great! :D
Type: Posts; User: BlackOps
Great! :D
gcc -o test.exe -c test.c
and then i call my program as: test
:)
no no... it doesnt print this sentence!!
cursor begins random blinking in the whole screen!
i tried to compile it with TinyC compiler! and it compiled very good! and program was running...
I just discover that this gcc compiler is doing strange things... i did something with enum constructor...and i found that programs begin doing strange things after compiling with gcc, i thought i...
Cooloorful, i appreciate ur attempts to help but i feel that u are in wrong direction.. LoadBmp and SaveText functions work good... problem is in something else...
i was just using stdio and stdlib. :)
i was aay few days... well... that kind of thing doesnt happen when i compile with tcc (Tiny C compiler)... so... any ideas (not please about the other code...it works fine)?
oh one more thing i discovered... when i removed fprinf statements from my code, the other printf statements worked ok...strange. Cooloorful i think i should also post a code of standard C library...
well...i was using Tiny C compiler, now i have installed Mingw with gcc 3.4.5
i have some program where i process images...and print some info.. program compiled fine...but it did not print...
Cooloorful, cuz its not what i need :)
i know about accessing the elements... i was just talking about a case where...for example:
char letter[14][12];
#define LT "Some constant which is has 14*12 elements"
now i have to fill...
hmm...by the way, i am working now on some image processing system..and there i am going to output strings in the image memory... well in other words before i tried to make things work like that:
...
i got the point..
so this is the safest method.. this way i just add two elements to the char array..which already contains 6 elements... So, the point is... its better to know how many elements...
Ok, could this be a solution to the problem?
char *str1 = "Foxbat";
char *str2;
strcpy(str2, "Fulcrum");
printf("str1 = %s\tstr2 = %s\n", str1, str2);
Take a look at this piece of code:
int main (int argc, char *argv[])
{
char *str1 = "Foxbat";
char *str2 = "Fulcrum";
i did it i know.. but it doesnt help
I decided to install this stuff, and i opened their page where they said how to do that, i downloaded the automated installer... it was fine... then during install it gave me this error:
File...
or maybe u could do something like this:
#define MACRO_SUCCESS 1
#define MACRO_FAILURE 0
#define check_error2(error) int flag; \
switch (error) \
{ \
Oh and here is the other one:
register int i,x;
scanf("%d",&i);
x=++i + ++i + ++i;
or for example this one:
int a=5 ,b,c=7;
printf("%d %d %d");
i thought output will be 7 garbage 5, and that is what my Tiny C compiler gave.
But the answer of question...
consider the following question on C programming:
void call(int,int,int);
void main(){
int a=10;
ah..yeah i know its wrong... i mean Stack/LIFO... true...queues are FIFO yeah! ;)
just was experimenting.. here is the code:
#include <stdlib.h>
#include <stdio.h>
#define snapd(arg) printf(#arg " = %d\n", arg);
#define snapf(arg) printf(#arg " = %f\n", arg);
well thank you everyone for good discussion, so it looks to me that for a lot of experimenting and development tcc would be ok... but when i have to create final version of a program which will be...
Have anyone worked with it and felt that it is really much faster than gcc?