Search:

Type: Posts; User: serruya

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,255

    Quzah is showing you that you need to declare the...

    Quzah is showing you that you need to declare the function before you use it... I guess you're trying to use 'extract_op_patterns' before even you declared it.
  2. Replies
    10
    Views
    1,467

    the d++ should be after the checking! not...

    the d++ should be after the checking! not before...


    #include <stdio.h>
    #include <string.h>
    #include <ctype.h>

    typedef struct{
    long id;
    float quota;
  3. Replies
    10
    Views
    1,467

    > for(i=0; i

    > for(i=0; i<10; i++)
    printf("%s", dealers.name);
    you want to print the same name always? maybe dealers[i].name?

    >>Dealer *d .... dealer++;
    you know the problem? what the hell...
  4. Replies
    10
    Views
    1,467

    >init_dealers(&dealers); remove the '&' And...

    >init_dealers(&dealers);
    remove the '&'

    And strcmp just return 0 when the strings are the same... so change to if(!strcmp...) or if(strcmp(.....) == 0)
  5. Thread: C struct

    by serruya
    Replies
    4
    Views
    1,295

    struct person { int age; char *name;...

    struct person {
    int age;
    char *name;
    };

    .....
    struct person me;
    me.age = 16;
    me.name = "serruya"; //use strcpy of course :P
  6. Replies
    15
    Views
    3,449

    sorry the question wasn't in the FAQ.

    sorry the question wasn't in the FAQ.
  7. Replies
    15
    Views
    3,449

    iostream or iostream.h?

    I see a lot of people talking about the differences between:
    #include <iostream>
    and
    #include <iostream.h>

    What are the differents and whats the correct choice and why?
    Thanks! :)
  8. Replies
    12
    Views
    3,023

    I'm using College Linux, ohh you really tried in...

    I'm using College Linux, ohh you really tried in Debian and it didn't work? damn, no more system("pause")'s.
  9. Replies
    12
    Views
    3,023

    yes I tried before: [serruya@programming...

    yes I tried before:


    [serruya@programming Desktop]$ uname -a
    Linux programming 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
    [serruya@programming Desktop]$ cat file.c
    #include...
  10. Replies
    12
    Views
    3,023

    yes, pause is platform specific, but for me as I...

    yes, pause is platform specific, but for me as I told it always work, it works with linux, dos and windows.
  11. Replies
    12
    Views
    3,023

    Of course don't forget to include the 'stdlib.h'...

    Of course don't forget to include the 'stdlib.h' header file :)


    #include <stdio.h>
    #include <stdlib.h>

    int main(void)
    {
    printf("%15s","right\n");
    printf("%-15s","left\n");
  12. Replies
    12
    Views
    3,023

    >>scanf("%s",&me); That's not pretty efficient...

    >>scanf("%s",&me);
    That's not pretty efficient too :) If you still want to use this, remove the '&' operator, you dont need it here. Also, for getting strings (%s) use the fgets() function, but this...
  13. Replies
    5
    Views
    1,215

    I guess you're working with windows, so Dev-C++...

    I guess you're working with windows, so Dev-C++ is a good option, if you're working with Linux, KDevelop is a great option, here a screenshot
  14. Replies
    1
    Views
    1,397

    >strstr( line, "

    >strstr( line, "<a href" ); maybe?
    Sometimes '<a href' can contain "blank" links, like:


    <a href="#" onClick="javascript:void test('lala')"></a>

    It is a poor using of the <A> element, in this...
  15. Replies
    12
    Views
    3,023

    Yes hooligan, this happens a lot, you have some...

    Yes hooligan, this happens a lot, you have some options, at the main( ) function, before the 'return 0' statement, use one of the following statements:


    getchar();
    system("pause");


    You have...
  16. Replies
    12
    Views
    3,023

    Hooligan, don't worry, most books uses void...

    Hooligan, don't worry, most books uses void main(void), luckly compilers are getting smarter and starting to tell people that the correct is int main(), so from now, just use int main() :)
  17. Malloc cast he mean like this: ...

    Malloc cast he mean like this:


    (int**)malloc(nrows * sizeof(int *));


    Remove the (int**) it's not needed, compile your code with '.c' extension (as C) and you wont need to cast.
  18. Replies
    8
    Views
    8,202

    Noobie, can you try system("CLS"); and tell me if...

    Noobie, can you try system("CLS"); and tell me if it works? Maybe it'll work for you.
  19. Replies
    12
    Views
    3,023

    change your code to: #include ...

    change your code to:


    #include <stdio.h>

    int main(void)
    {
    printf("Hello world\n");
    return 0;;
    }
  20. Replies
    1
    Views
    4,027

    You could try this two basic functions: ...

    You could try this two basic functions:


    #include <stdio.h>
    #include <string.h>

    void getuser(char *email, char *out)
    {
    int i;
  21. Replies
    22
    Views
    2,264

    Your code looks like C++, you're using cout......

    Your code looks like C++, you're using cout... hmm and don't forget you're in a C board, and not C++ board.
  22. Replies
    8
    Views
    8,202

    I don't understand really your message, you say...

    I don't understand really your message, you say you run a program in console, then this program prints some line in the console, then you call another program witch contains clrscr(); but it doesn't...
  23. Replies
    22
    Views
    2,264

    Hah good luck with your program :)

    Hah good luck with your program :)
  24. Replies
    22
    Views
    2,264

    I really don't understand what you want...

    I really don't understand what you want completely, but I get an figure now, please try the bottom program, and tell me what you want to do:


    #include <stdio.h>

    int main(void)
    {
    int...
  25. Replies
    22
    Views
    2,264

    No, I told you... [1][1] is one element, [0][1]...

    No, I told you... [1][1] is one element, [0][1] is another. Draw this in your mind as an matrix:


    [0][0] [0][1] [0][2]
    [1][0] [1][1] [1][2]
    [2][0] [2][1] [2][2]
    ...
Results 1 to 25 of 32
Page 1 of 2 1 2