i can use an int as the first field, there are four different combinations so i can use the first two bits, if the bit is 0 then the optional field is not there, if its 1 then it is. so 01 means the...
Type: Posts; User: Cicero
i can use an int as the first field, there are four different combinations so i can use the first two bits, if the bit is 0 then the optional field is not there, if its 1 then it is. so 01 means the...
thats a good idea, but since i want to challenge myself making it easy isnt what i want.
at first i was gonna have hobby in double quotes, but i decided not to because that would make everything way too easy. so theres no way?
i tried to come up with an execise that would challenge me and it worked out too good. what i came up with is to parse some input, but i made it hard to do right. the input is a string with a bunch...
i wanna compete. put me on the contestant list too
your right. i fixed it though
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
char*str;
int i=0;
like this
float(random)(float one,float two)
{
float f=(float)rand()/RAND_MAX*(two-one);
return f;
}
like this
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
char*str;
int i=0;
like this
#include <stdio.h>
int main()
{
FILE*fp=fopen("input.txt","r+");
float data[100];
char test;
int i;
thats ugly, use a function designed for flushing scanf instead
#define FLUSH fflush(stdin)
the compiler will assume whatever function you dont include a header for is extern and search the standard headers then headers in the directory your working from for the matching function
int...
strike two? and whats the difference between int and void? they both work fine
that works great, thanks
what header is that in? i cant find it
there isn't a simpler way? i was hoping to not double the size of the program just for that little thing.
how can i get this program to not move around like it does? i want it to stay in one spot so it looks like the little thing is spinning.
#include <stdio.h>
void main()
{
long...