No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey guys i'm still having trouble with my bubble sort in else if(choice==2). Where am i going wrong i'm about ready to pull my hair out #include <iostream> #include <iomanip> #include <algorithm> using namespace std; int main() { int i,num[20],n,j,choice,tmp; cout<< "Please enter 20 integers"; for (i=0; i<20; i++) { … |
|
Hey I'm trying to get this code going but i can't get my if(choice==2) to output anything any ideas? #include <iostream> #include <iomanip> #include <algorithm> using namespace std; int main() { int i,num[20],n,j,choice,tmp; cout<< "Please enter 20 integers"; for (i=0; i<20; i++) { cout<<"\nEnter next value:"; cin>>num[i]; } cout<<"\n1.Display original … |
|
Hey guys i'm working with this code but i can't get it to stop looping back into the menu any ideas??? Thanks !! [CODE=cplusplus] #include <iostream> using namespace std; unsigned int menu(); int main() { int i,num[20],sec[20],j,choice; cout<< "Please enter 20 integers"; for (i=0; i<20; i++) { cout<<"\nEnter next value:"; … |
|
Hi guys I'm new here and basically new to programming. Unfortuanetly i'm probably gonna be quite annoying to you just because you guys know what you're doing and I'm like the little slow train that's trying to catch up. Though hopefully you'll help... Here's my situation I'm supposed to write … |