Search:

Type: Posts; User: stodd04

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,076

    bubble sorting a 2-d array

    I am having problems with bubble sorting a 2d array. I know I need 3 loops but I do not know where to put the third. any help would be greatly appreciated.



    void bubble(int arr[])
    {
    int i,...
  2. Replies
    2
    Views
    3,877

    filling an array from a file using fscanf...

    I am trying to fill a 2d array from a text file that contains 54 integers. The files open fine but I am having a problem with a segmentation fault that I get when I try to read the ints into the...
  3. Replies
    11
    Views
    2,872

    Quzah, I cannot thank you enough for your...

    Quzah, I cannot thank you enough for your infinite programming wisdom. I am going back to the drawing board and restructring the program to add some stuff and get rid of some redundancy. I will post...
  4. Replies
    11
    Views
    2,872

    I would say it would be more my own stupidity...

    I would say it would be more my own stupidity than the ability of the teacher
  5. Replies
    11
    Views
    2,872

    Nah... thats not an assignment from my class....

    Nah... thats not an assignment from my class. Thank ya'll very much for you help
  6. Replies
    11
    Views
    2,872

    ah... thank you very much that was very helpful

    ah... thank you very much that was very helpful
  7. Replies
    11
    Views
    2,872

    its reading data from a file using a linux...

    its reading data from a file using a linux command like this:


    a.out < t1


    yea display is not quite finnished. My main problem is getting the characters to convert properly t1 is also a text...
  8. Replies
    11
    Views
    2,872

    Simple algorithm problem

    I want to write a simple encryption program that does the following: Take a file as input (redirected at the Unix prompt), and encrypt/decrypt and print each character as directed. Convert...
  9. Replies
    6
    Views
    2,406

    ahh... stupid me... forgot the "&" when I rewrote...

    ahh... stupid me... forgot the "&" when I rewrote it on the server. Thank you very much for catching my stupid mistake
  10. Replies
    6
    Views
    2,406

    segmentation fault

    when I try to run this program it gives me an error message saying "segmentation fault". Any insight would be greatly appreciated. It compiles with gcc just fine. But I did not get this error when I...
  11. Replies
    11
    Views
    1,665

    for the "disappearing window before the program...

    for the "disappearing window before the program executes problem" simply type:
    system("pause"); right before the return at the end of main. I know this works in C I dunno about C++
  12. Replies
    7
    Views
    1,800

    thank ya'll very much for all of your help. I...

    thank ya'll very much for all of your help. I finally figured out passing by reference with pointers with great help from the many wonderful examples. attached is the final code. thanks for the...
  13. Replies
    7
    Views
    1,800

    pointers didnt do the trick either... gonna try...

    pointers didnt do the trick either... gonna try gcc to see if there is a difference
  14. Replies
    7
    Views
    1,800

    for some reason I cannot pass a reference in the...

    for some reason I cannot pass a reference in the function prototype. so I am going to give the pointers a shot
  15. Replies
    7
    Views
    1,800

    thanks for your responses... I am using bloodshed...

    thanks for your responses... I am using bloodshed dev-c++ in c mode... for the class it has to compile on gcc which in past projects has not been a problem
  16. Replies
    7
    Views
    1,800

    problems storing values in varibles

    I have a simple project for my intro to C class inwich we are suppose to pratice passing varibles through functions. It is a bit over modulized but that is the point of the exercies. The problem I am...
Results 1 to 16 of 16