Search:

Type: Posts; User: Cicero

Search: Search took 0.01 seconds.

  1. Thread: Parsing input

    by Cicero
    Replies
    11
    Views
    1,112

    i can use an int as the first field, there are...

    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...
  2. Thread: Parsing input

    by Cicero
    Replies
    11
    Views
    1,112

    thats a good idea, but since i want to challenge...

    thats a good idea, but since i want to challenge myself making it easy isnt what i want.
  3. Thread: Parsing input

    by Cicero
    Replies
    11
    Views
    1,112

    at first i was gonna have hobby in double quotes,...

    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?
  4. Thread: Parsing input

    by Cicero
    Replies
    11
    Views
    1,112

    Parsing input

    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...
  5. Replies
    70
    Views
    12,492

    i wanna compete. put me on the contestant list too

    i wanna compete. put me on the contestant list too
  6. Replies
    13
    Views
    2,155

    your right. i fixed it though #include ...

    your right. i fixed it though


    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    int main()
    {
    char*str;
    int i=0;
  7. Thread: random?

    by Cicero
    Replies
    1
    Views
    853

    like this float(random)(float one,float two)...

    like this


    float(random)(float one,float two)
    {
    float f=(float)rand()/RAND_MAX*(two-one);
    return f;
    }
  8. Replies
    13
    Views
    2,155

    like this #include #include ...

    like this


    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    int main()
    {
    char*str;
    int i=0;
  9. Replies
    2
    Views
    4,102

    like this #include int main()...

    like this


    #include <stdio.h>
    int main()
    {
    FILE*fp=fopen("input.txt","r+");
    float data[100];
    char test;
    int i;
  10. Replies
    9
    Views
    2,971

    thats ugly, use a function designed for flushing...

    thats ugly, use a function designed for flushing scanf instead


    #define FLUSH fflush(stdin)
  11. Thread: Basic C menu

    by Cicero
    Replies
    17
    Views
    53,201

    the compiler will assume whatever function you...

    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...
  12. Thread: stay in place

    by Cicero
    Replies
    7
    Views
    1,606

    strike two? and whats the difference between 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
  13. Thread: stay in place

    by Cicero
    Replies
    7
    Views
    1,606

    there isn't a simpler way? i was hoping to not...

    there isn't a simpler way? i was hoping to not double the size of the program just for that little thing.
  14. Thread: stay in place

    by Cicero
    Replies
    7
    Views
    1,606

    stay in place

    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...
Results 1 to 14 of 14