Search:

Type: Posts; User: pinkpenguin

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    868

    file opening

    i am writing a program that has the user input a file and then the file goes through two functions. I am having trouble opening the file. here is the code.



    printf("Enter the file to...
  2. Thread: text file

    by pinkpenguin
    Replies
    1
    Views
    1,040

    text file

    Hi,
    I am writing a program that asks the user to input a file name and the program then reads what is in the file and sends that information to another function. I am a little confused on how to...
  3. Replies
    4
    Views
    1,363

    character string problem

    Hi,
    I need to write a program that has the user input a command such as ADD (adds two numbers), SUB(subtracts two numbers), DIV( divides), MUL(multiplies) and then input the two numbers. The user is...
  4. Replies
    2
    Views
    1,605

    character string problem

    Hi,
    I need to write a program that has the user input a command such as ADD (adds two numbers), SUB(subtracts two numbers), DIV( divides), MUL(multiplies) and then input the two numbers. The user...
  5. Replies
    2
    Views
    2,163

    problem with sorting

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

    #define ARY_SIZE 500
    #define RANGE 1000
    #define TRUE 1
    #define FALSE 0
    int bldPerm (int randNos[]);
    void printData(int data[], int size);
    int...
  6. Replies
    4
    Views
    8,556

    improper pointer/ integer combination?

    I seem to get a line 19: warning: improper pointer/integer combination: arg #1, when I run this. I don't know why.



    #include<stdio.h>
    #include<stdlib.h>
    #define ARRAY 500
    int getRandA(int...
  7. Thread: Error.

    by pinkpenguin
    Replies
    3
    Views
    897

    I don't see it .

    I don't see it .
  8. Thread: Error.

    by pinkpenguin
    Replies
    3
    Views
    897

    Error.

    The random numbers that are created are supposed to go through the selection sort that was given. For some reson I have an error on line 18 and I am unsure why?



    #include<stdio.h>...
  9. Replies
    4
    Views
    7,838

    I have the random array but I can't figure out...

    I have the random array but I can't figure out how to make the numbers range from 1 to 1000.
    here is the code.



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

    #define ARY_SIZE 500
  10. Replies
    4
    Views
    7,838

    Creating a random array

    HI,
    I need to create a random array of 500 numbers between 1 and 1000. I understand how to create an array of 500 numbers but I can't seem to make it random. Can anyone help me.

    Thank You.
Results 1 to 10 of 10