Search:

Type: Posts; User: Vber

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    956

    ...

    I can actually see a problem in your code:
    checkout in your ReadLine function, you're using LastChar without having any data there, it's actually undefined.

    try something like:
    LastChar = ' ';...
  2. Thread: Char to Binary

    by Vber
    Replies
    4
    Views
    1,476

    You can use a recursive function to do that,...

    You can use a recursive function to do that, though it's very easy to convert it to an iterative version... here's an example:


    void Bin( unsigned int n )
    {
    if( !n )
    return;
    Bin(...
  3. Replies
    14
    Views
    4,114

    ..

    Hello :)
    First of all, it doesn't really help us you posting only part of your code, as you saw in the previous reply, he got lost in your code because the line jumping.

    About you fopen( ), I...
  4. Replies
    4
    Views
    1,305

    you mean, you have in a string "sin(pi*x)" and...

    you mean, you have in a string "sin(pi*x)" and you want to call it directly by the string? I don't think it's possible. But, if you have pi and x defined in your code, just call it, but not from a...
  5. Thread: C = C++?

    by Vber
    Replies
    1
    Views
    802

    C++ is a superset of C, this means that C++...

    C++ is a superset of C, this means that C++ contains all what C contains, and some other things. Now, what you can write in C, of course it is possible to do with C++ (some say that what you in C++,...
  6. Replies
    8
    Views
    1,029

    Ohh now its perfectly clear... and ygfperson, ok...

    Ohh now its perfectly clear...
    and ygfperson, ok it's old but not like this :)
  7. Replies
    8
    Views
    1,029

    >And yes, this would be old style C, because the...

    >And yes, this would be old style C, because the book is old... Copyright 1998.

    No way ;) 1998 and still use old-fashion function declaration? what is the name of the book?
  8. Thread: file search app

    by Vber
    Replies
    1
    Views
    1,133

    I think in the FAQ, there is an example, search...

    I think in the FAQ, there is an example, search it.
  9. Replies
    2
    Views
    1,039

    Gcc and a good editor is fine... but an organized...

    Gcc and a good editor is fine... but an organized IDE is better if you're going to deal with huge projects. What you can do with C? everything, it's a general purpose language, the language itself,...
  10. Replies
    6
    Views
    1,694

    Use code tags, also few problems: >>void...

    Use code tags, also few problems:

    >>void sh(char *);
    >>void sh(char *cmd)

    First you defined, now you didn't write the function, do something like this, first declare the function, then write...
  11. Replies
    2
    Views
    1,779

    I don't understand the main idea of the program,...

    I don't understand the main idea of the program, unleast we develop an AI type of program that know to create correct and meaningful sentences, the program will be very small and I think we'll have...
  12. Thread: sockets problem

    by Vber
    Replies
    4
    Views
    1,552

    >You can only declare variables at the beginning...

    >You can only declare variables at the beginning of a block.
    I can declare them outside a function as well, without any block, the global variables, can't I? :confused:
  13. Replies
    21
    Views
    2,138

    Something like the Centrino?

    Something like the Centrino?
  14. Replies
    10
    Views
    5,194

    /* Aren't you a little biased, though? POSIX is...

    /* Aren't you a little biased, though? POSIX is right above your avatar? */

    Far away from this, you look in the Linux board FAQ, a little bit about POSIX.

    /* And why do so many people use gcc...
  15. Thread: LAN Party 2003

    by Vber
    Replies
    25
    Views
    2,796

    1) Currently I'm not living in USA, but I'm going...

    1) Currently I'm not living in USA, but I'm going to travel 45 days in July and August. I'll be in NY and North Carolina.

    2) Nothing so far.

    3) I wouldn't mind if is a small fee.

    4) I wont...
  16. Thread: software licences

    by Vber
    Replies
    3
    Views
    1,189

    Did you read about the GPL (General Public...

    Did you read about the GPL (General Public License) ? If not try reading from The GNU Site .

    You can read about LGPL (Lesser General Public License) too, it's very interesting, read it here
  17. Replies
    9
    Views
    1,646

    Read the GCC documentation, it's very easy. One...

    Read the GCC documentation, it's very easy. One way to compile a file is: gcc file.c -o file

    Of course you can use some parameters witch might be needed to your program, see the documentation.
  18. Replies
    10
    Views
    5,194

    But I can use in C++ printf, can't I? But still...

    But I can use in C++ printf, can't I?
    But still what can be done easier in C than in C++, it's up-to-you, somepeople,they're more familiar with C, then their job of course will be easier and faster,...
  19. Thread: Link list library

    by Vber
    Replies
    4
    Views
    1,775

    One thing, you don't check either you...

    One thing, you don't check either you successfully allocated memmory, it's always good to check...


    char *str = malloc(5);
    if(str != NULL)
    //use the memmory
  20. I don't think anyone told you but ...

    I don't think anyone told you but
    >>while(!feof(fp))
    is a big no-no, you should try looking at the FAQ to see "why".
  21. Replies
    4
    Views
    1,164

    Iterate trough it and clear it by yourself, btw,...

    Iterate trough it and clear it by yourself, btw, what you mean "clear", delete the current data there is in this array? Also pick up in mind that we're talking about a huge array, doing this...
  22. Thread: sizeof struct

    by Vber
    Replies
    9
    Views
    2,702

    well, it's really machine dependent... but in...

    well, it's really machine dependent... but in your case if it's 2, and you're still receiving 8, strange.
  23. Thread: sizeof struct

    by Vber
    Replies
    9
    Views
    2,702

    and what you expect to print? sizeof returns you...

    and what you expect to print? sizeof returns you the size of this struct, not how many elements you have on it. So 8 is perfect, look:



    struct customer {
    short number; // ...
  24. Replies
    8
    Views
    5,229

    You can search some projects in...

    You can search some projects in planet-source-code or you can try to read "Beej Network Guide" and try to build one by yourself.
  25. Thread: sizeof struct

    by Vber
    Replies
    9
    Views
    2,702

    sizeof(struct customer); or typedef and you...

    sizeof(struct customer);
    or typedef and you could use just customer.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4