Search:

Type: Posts; User: Unee0x

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,377

    Random Number Generator

    I am trying to generate 10 random numbers from 0-9, which goes well but I'd like them to each be unique, meaning for each one to only be used once.




    #include <stdio.h>
    #include <stdlib.h>...
  2. Replies
    2
    Views
    991

    Thank you, It worked perfectly once I added two...

    Thank you,
    It worked perfectly once I added two curly braces around the if statement.



    0001 #include <stdio.h>
    0002 void Dec(int n)
    0003 {
    0004 if(n > 0)
    0005 {
  3. Replies
    2
    Views
    991

    Positive Binary output function

    I have written a function that takes in a positive decimal and returns its Binary equivalent; however, the output always adds an additional zero to the binary.
    what could I do to get rid of it?
    If...
  4. Replies
    2
    Views
    936

    Understanding The Use of Return

    I am struggling to grasp a firm grip on How and when it is necessary to use return when creating your own functions in C..
    I saw this piece code Yesterday:



    #include <stdio.h>
    unsigned int...
  5. Replies
    7
    Views
    1,116

    Help with a C struct

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


    I am trying to copy 64 Points into an array called Sq and print out one point at Sq[2][5], and it compiles but at runtime I get a segmentation fault 11...
  6. Replies
    4
    Views
    1,106

    First , Thank You. Do you mean like this: ...

    First , Thank You.
    Do you mean like this:


    #include <stdio.h>
    int main()
    {


    int x,y;
  7. Replies
    4
    Views
    1,106

    Help with a 2D Array in C

    I have been working on a 8x8 Array for a day or two, and this what I have


    #include <stdio.h>
    int main()
    {


    int x,y;
  8. Thread: Help.

    by Unee0x
    Replies
    6
    Views
    1,405

    Thanks

    Ok , I've got it.
    Thank you again....
    It just makes so much sense to add A & B after program knows A & B...
    (How about that...?)
    Thanks again...
  9. Thread: Help.

    by Unee0x
    Replies
    6
    Views
    1,405

    Thanks laserlight, but if you can , please...

    Thanks laserlight, but if you can , please explain what you mean.
  10. Thread: Help.

    by Unee0x
    Replies
    6
    Views
    1,405

    Help.

    I have drafted this code below, for some reason int C is returned as the address instead of sum of two ints. If anybody can help, I would be very grateful..




    #include <stdio.h>
    int main()
    {
  11. Replies
    2
    Views
    991

    Hey Anduril, First and foremost, sorry about...

    Hey Anduril,

    First and foremost, sorry about the Bold text in my post:I wrote it on my Ipad during lunch at work..

    Thank you so much for every bit of advice you gave me and like you said, it...
  12. Replies
    2
    Views
    991

    Looking for Direction

    Hey guys,

    I'm new to c programming and so far I've completed some basics(all beginner stuff) such as variables,arrays,pointers and struts.However, I'm looking for any advice to gaining a strong...
Results 1 to 12 of 12