No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
HI, everyone. I am having trouble getting the index of the location of the search number to print out. This is my program. Any help would be greatly appreciated! [code]#include<iostream.h> #include<cmath> void sortit(int x[], int n) { int temp,i,j; for(i=0;i<n;i++) for(j=i;j<n;j++) if(x[i]>x[j]) { temp=x[i]; x[i]=x[j]; x[j]=temp; } } void bsearch(int … | |
For the descending sort, it only moves the highest number to the correct spot and leaves the other numbers in ascending order. Can anyone tell me what I am doing wrong? [code]#include<iostream.h> #include<cmath> void sortit(int x[], int n) { int temp,i,j; for ( i=0;i<n;i++ ) for ( j=i;j<n;j++ ) if … | |
I have a program project to complete, but I don't know exactly what to do. This program is in C++ programming language. This what I have to do? Write a program that will use a array to store a linked list. Your linked list should contain an Student number and … |
The End.