Search:

Type: Posts; User: yigster

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    932

    File I/O with sort

    Hello,

    How can I read a file with student number, student name, grade and sort it regarding student number, student name or grades and write it to a new file?

    This is not a homework question I...
  2. oh.. didnt see that.. thank you very much for...

    oh.. didnt see that.. thank you very much for your help
  3. SelectionSort(array, height); |71|undefined...

    SelectionSort(array, height);


    |71|undefined reference to `SelectionSort(double (*) [5], int)'|
  4. result: |7|error: too few arguments to...

    result:



    |7|error: too few arguments to function `void SelectionSort(double (*)[5], int)'|
    |71|error: at this point in file|
  5. I thought i was doing that... how?

    I thought i was doing that... how?
  6. What does this mean ? error: cannot convert...

    What does this mean ?
    error: cannot convert `double' to `double (*)[4]' for argument `1' to `void SelectionSort(double (*)[4], int)'|
  7. I get an error? #include ...

    I get an error?



    #include <cstdlib>
    #include <iostream>
    #include <cmath>

    #define width 5
  8. but the thing is the values of the other columns...

    but the thing is the values of the other columns will have to change accordingly
  9. yes exactly

    yes exactly
  10. How to apply selection sort in a two-dimensional array

    hi,

    I am having a bit of a problem applying selection sort in a two -dimensional array..

    trying to apply selection sort only to array[i][4] (only on the fourth column..

    so if the array is so...
  11. Replies
    2
    Views
    891

    8 digits in index of array??

    hi
    I am trying to store 8digits in one array index, but it can only shows up to 6.. how can I change that?




    double array[]={80702001,40,70,60,55.5}

    I get 8.0702e+07 for the first one...
  12. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    #include #include using...

    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main()
    {
    int size1,size2,size,i,k,j;
    string *array1,*array2,*array3;
    string temp;
  13. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    copy and run the program.. it should print...

    copy and run the program.. it should print soething like this;



    array3[0]=1
    array3[0]=2
    .
    .
    .
    . and so on.. and '-' for the empty parts in array3..
  14. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main()
    {
    int size1,size2,size,i,k,j;
    int *array1,*array2,*array3;

    //int array1[size1],array2[size2],array3[size];
  15. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    So this is what I have so far.. but when I run it...

    So this is what I have so far.. but when I run it says array1.exe has stopped working =) the compiler doesnt give any errors..



    #include <iostream>

    using namespace std;

    int main()
    {
  16. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    yes I know there wont be any empty spaces thats...

    yes I know there wont be any empty spaces thats why there will be '-' in the empty slots
  17. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    negative value ? who said anything about negative...

    negative value ? who said anything about negative numbers? that "-" isnt a minus sign..
  18. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,686

    Merging Arrays

    Hi,

    I am trying to merge two arrays into one while doing this I am trying to sort and remove duplicates..

    For example;



    int a,a1,b,b1,c,c1,d,d1,e,e1;
  19. Replies
    1
    Views
    3,628

    Game of Life... Turned my life to HELL!

    As you can read from the title I am having trouble writing Conway's Game of Life... actually this is not entirely true. I can write it as so;



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

    void...
  20. yes that is what I mean.. I'll get working on it...

    yes that is what I mean.. I'll get working on it thank you..
  21. I am trying to solve the issue with the ace.. The...

    I am trying to solve the issue with the ace.. The program works fine but I need ace to have two values, instead of one
  22. any other suggestions ?

    any other suggestions ?
  23. Blackjack program, having problems with the ace

    The program works fine instead for the ace.. I am going to post partial parts of the program here so you get the main idea how the program works. If you need the full code I will PM it to you...
    ...
  24. Replies
    8
    Views
    1,894

    This is what I wrote to make it simple but it...

    This is what I wrote to make it simple but it doesnt print out the way I would like it to :S pff


    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>
    main()
    {
    unsigned int...
  25. Replies
    8
    Views
    1,894

    Need help simplifying

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

    int main()
    {
    int n,i,temp1,temp2,temp3,temp4,temp5,remainder,j,k,p,count,count2,a;
    double bits;
    bits = pow(2,n);
Results 1 to 25 of 33
Page 1 of 2 1 2