Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.23 seconds; generated 31 minute(s) ago.

  1. Which compiler are you using?

    Which compiler are you using?
  2. Replies
    4
    Views
    101

    Try compiling with some warnings. $ gcc...

    Try compiling with some warnings.


    $ gcc -Wall main.c
    main.c:2:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
    void main()
    ^
    main.c: In function ‘main’:
    main.c:6:16: warning:...
  3. Replies
    1
    Views
    88

    > display(choice); C doesn't do pass by...

    > display(choice);
    C doesn't do pass by reference.

    > void display(int choice)
    You have a return choice at the end.
    This won't even compile without a warning.



    int display(void){
  4. Replies
    6
    Views
    381

    Well I found BenSmith's alter ego posts: buffer...

    Well I found BenSmith's alter ego posts:
    buffer overflow
    Vulnerability in c functions
    The pastebin.com link to actual source code has long since expired.
    On the off-chance that the image...
  5. > Linux kernel wants to using Rust. References!

    > Linux kernel wants to using Rust.
    References!
  6. Replies
    10
    Views
    280

    Can you declare an array? Can you print a...

    Can you declare an array?

    Can you print a prompt?

    Can you input an integer?

    In short, show us how far you can get by yourself.
  7. Are you back again? Is Rust-Lang a replacement...

    Are you back again?
    Is Rust-Lang a replacement for C or C++?
  8. Replies
    1
    Views
    160

    You start with some research. Shortest path...

    You start with some research.
    Shortest path problem - Wikipedia

    Then you decide on a data structure to represent " The adjacency list for the graph."
  9. Replies
    3
    Views
    167

    for(i=2 ; i

    for(i=2 ; i <= low /2 ; ++i ){
    if(low % i==0) //!! what happened to these braces?
    isPrime=0;
    break;
    }
  10. Making strings constant was something added way...

    Making strings constant was something added way back in C90.
    Back then, there was still a lot of code which didn't use const properly, so you didn't get a warning.

    So as a special case, you don't...
  11. Replies
    5
    Views
    217

    You need to return the new value of the counter.

    You need to return the new value of the counter.
  12. Thread: Array help

    by Salem
    Replies
    5
    Views
    340

    On the assumption that @jazzamate just posted in...

    On the assumption that @jazzamate just posted in the wrong forum, a C answer.

    A bit of advice.
    If you have arrays, you should be looking at loops (not copy/pasting specific subscripts).
    ...
  13. Replies
    1
    Views
    413

    Linux is an operating system, not a language. ...

    Linux is an operating system, not a language.

    If you just stick to the standard libraries of C and C++, then there is no difference at all between writing a Windows program and writing a Linux...
  14. Replies
    3
    Views
    226

    >...

    > numberOfWordsInDict(array[MAXWORDS][MAXLENGTH]);
    You don't specify the size of the array when you call the function.

    It's only
    numberOfWordsInDict(array);
  15. Replies
    6
    Views
    381

    Look along the top ribbon. New Posts Private...

    Look along the top ribbon.

    New Posts
    Private Messages
    C and C++ FAQ
    Community
    Forum Actions
    Quick Links
  16. Replies
    6
    Views
    381

    You have a limited grace period of a few hours to...

    You have a limited grace period of a few hours to edit.

    But since you have only one post, what did you have in mind.

    If you have an old account, and you want to remove some specific thing from...
  17. Replies
    14
    Views
    573

    Not sure what compiler you're using, or where...

    Not sure what compiler you're using, or where "invalid operands to binary + (have 'float' and 'float *')|" came from.

    But the code you posted compiles and runs.


    $ gcc -Wall main.c
    main.c: In...
  18. Also here -> Use a linked list queue to simulate...

    Also here -> Use a linked list queue to simulate cust - C++ Forum
  19. Replies
    2
    Views
    204

    I deleted all your other posts, hijacking other...

    I deleted all your other posts, hijacking other threads.

    "I cannot solve the problem with this output since I already tried many times"
    So post one of your better attempts, and then we'll help...
  20. Replies
    2
    Views
    237

    It's just min and max of all the coordinates. ...

    It's just min and max of all the coordinates.

    bb.left = min of all the x coordinates
    etc.
  21. Replies
    14
    Views
    573

    Spending hours on google trying to find 5 minute...

    Spending hours on google trying to find 5 minute videos of watching someone type (badly) isn't going to substitute for the physical act of actually trying to write code yourself.

    Start small,...
  22. Replies
    14
    Views
    573

    You already seem to be able to describe in words...

    You already seem to be able to describe in words what needs to happen.

    So given a loop like
    for ( day = 0 ; day < number_of_days ; day++ )

    and an array like
    int hours_worked_each_day[30];
    ...
  23. > Enable GingerCannot connect to Ginger Check...

    > Enable GingerCannot connect to Ginger Check your internet connection
    Please turn this crap off.

    > fptr = fopen(ptr,"w");
    1. You only need to do this once.
    2. You need close the file for...
  24. Replies
    14
    Views
    573

    So you've posted this twice - in C# and C forums....

    So you've posted this twice - in C# and C forums.
    Which do you want to keep?
  25. Thread: mac compiler

    by Salem
    Replies
    3
    Views
    463

    Where can I download old versions of Xcode? -...

    Where can I download old versions of Xcode? - Stack Overflow
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4