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...
Type: Posts; User: yigster
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...
oh.. didnt see that.. thank you very much for your help
SelectionSort(array, height);
|71|undefined reference to `SelectionSort(double (*) [5], int)'|
result:
|7|error: too few arguments to function `void SelectionSort(double (*)[5], int)'|
|71|error: at this point in file|
I thought i was doing that... how?
What does this mean ?
error: cannot convert `double' to `double (*)[4]' for argument `1' to `void SelectionSort(double (*)[4], int)'|
I get an error?
#include <cstdlib>
#include <iostream>
#include <cmath>
#define width 5
but the thing is the values of the other columns will have to change accordingly
yes exactly
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...
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...
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int size1,size2,size,i,k,j;
string *array1,*array2,*array3;
string temp;
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..
#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];
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()
{
yes I know there wont be any empty spaces thats why there will be '-' in the empty slots
negative value ? who said anything about negative numbers? that "-" isnt a minus sign..
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;
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...
yes that is what I mean.. I'll get working on it thank you..
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
any other suggestions ?
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...
...
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...
#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);