Search:

Type: Posts; User: blackswan

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,218

    wouldnt that be a 00001020 on big endian?...

    wouldnt that be a 00001020 on big endian? :confused: The rest is like Lurking Cat said :cool:
  2. Thread: what is c#

    by blackswan
    Replies
    18
    Views
    2,794

    If I hate Java, will I hate C# too?

    If I hate Java, will I hate C# too?
  3. Replies
    5
    Views
    1,459

    thanks man! Great help! :D i would give you...

    thanks man! Great help! :D i would give you points, but this forum doesn't have that feature :D
  4. Replies
    5
    Views
    1,459

    Using fgets like you said now works. I will now...

    Using fgets like you said now works. I will now do the buffer overflow an line checks and look on sorting using qsort.
  5. Replies
    5
    Views
    1,459

    To explain: #1: Well, I had an intention to...

    To explain:

    #1: Well, I had an intention to fix the buffer overflow and number of lines check...but I just need something that works for a start..I was aware of the fact you pointed to me.
    ...
  6. Replies
    5
    Views
    1,459

    Sorting lines

    Im trying to write a program that reads a txt file and copy's all the lines in an array of strings and then sorts the strings by the length and then outputs the array of sorted strings...It compiles...
  7. Replies
    23
    Views
    6,858

    int fib(int n) { if(n

    int fib(int n) {

    if(n<=1)
    return n;

    else return fib(n-2)+fib(n-1);

    }

    A little recursion to spice things up. :p
  8. Replies
    10
    Views
    1,935

    add this before the last brace: return 0;

    add this before the last brace:


    return 0;
  9. Replies
    5
    Views
    1,065

    Thank's zook. That cleared my head:)

    Thank's zook. That cleared my head:)
  10. Replies
    5
    Views
    1,065

    Oh, yes I forgot. I was in a hurry... Okey, I...

    Oh, yes I forgot. I was in a hurry... Okey, I know I can have strings like this:
    char *array[]={"one", "two"....};

    But I want to make an array of strings which wont be initialized at first. And...
  11. Replies
    5
    Views
    1,065

    Array of strings

    Let's say I wanna read a strings from a file and store them into a string array.

    char array [] [80];
  12. Replies
    8
    Views
    1,705

    #include #include #define...

    #include<stdio.h>
    #include<stdlib.h>
    #define STACK_SIZ 10
    long int stack[STACK_SIZ];
    int top=0;

    void push(long int n);
    void pop(long int n);

    void print_stack(void);
  13. Replies
    8
    Views
    1,214

    The char *str is null terminated too, but...see...

    The char *str is null terminated too, but...see cwr's post above.

    Thanks guys for clearing that to me! :)
  14. Replies
    8
    Views
    1,214

    Aaaaaaaaaa...thanks man! :) I was using a char...

    Aaaaaaaaaa...thanks man! :) I was using a char *str instead of char str[].... :D
  15. Replies
    8
    Views
    1,214

    I still get the segmentation fault :confused: ...

    I still get the segmentation fault :confused: :confused:
  16. Replies
    8
    Views
    1,214

    Pointers problem

    I have a simple question. Let's say I want to change all the spaces in a given string with a '+' character. I have to do this with pointers.




    void change(char *ps){
    ...
  17. Replies
    7
    Views
    1,140

    ouch..havent seen the code properly before. I...

    ouch..havent seen the code properly before. I didn't see that factory is a pointer to your struct. Yes. Like the man before me said, pass the address of the variable. See how push and pop are...
  18. Replies
    7
    Views
    1,140

    lool :) Dude, you are on hardcore programming...

    lool :) Dude, you are on hardcore programming grounds. There are no objects like in higher languages here :)
  19. Thread: pthreads

    by blackswan
    Replies
    2
    Views
    1,908

    THere are times when I ask myself: "Why the...

    THere are times when I ask myself: "Why the ........ is C built that way??!!!"
    IM kidding... :p

    Thanks for explaining...so the thing in braces is just telling the function what type the...
  20. Thread: pthreads

    by blackswan
    Replies
    2
    Views
    1,908

    pthreads

    I have a question about the pthread_create function.
    A normal use of that function would be something like this.


    int itr =pthread_create(&my_thread,NULL, void *(*start_routine)(void*),...
  21. Replies
    7
    Views
    1,140

    what's "factory" ? Try using arraystack.top...

    what's "factory" ? Try using arraystack.top instead of factory.top.. :confused:
  22. Replies
    12
    Views
    1,520

    make your own database tool like sql in C.

    make your own database tool like sql in C.
  23. Thread: I need Info

    by blackswan
    Replies
    7
    Views
    1,972

    Or maybe there is hope here...

    Or maybe there is hope here
    and here

    Thanks for helping!
  24. Thread: I need Info

    by blackswan
    Replies
    7
    Views
    1,972

    First Ill try this multithreading in Linux...

    First Ill try this multithreading in Linux environment. But all I get searching google is some man pages. I want a tut. Or a book. I got B.W.Kerringan an Denis Ritche book-The C programing language...
  25. Thread: what is c#

    by blackswan
    Replies
    18
    Views
    2,794

    MadGuy, don't discourage people to learn C++. ...

    MadGuy, don't discourage people to learn C++. The code that you showed for window making in C++ can easily used as a template in another header. Like you import stuff in C# and Java. Open those...
Results 1 to 25 of 68
Page 1 of 3 1 2 3