1
List ist för array
Postat av Jozzssan den 27 Maj 2010, 10:19
2 kommentarer · 70 träffar
Ska sortera tal med hjälp av en list istället för array som jag nu har, jag har en fungerande kod med array - se nedan. Hur gör jag om det till list?
#include
#include
#include
#include
using namespace std;
int main(int argc, char** argv) {
int MAX_NO_DATA = 20;
int data[MAX_NO_DATA]; //the array containg the numbers to work with
cout
#include
#include
#include
#include
using namespace std;
int main(int argc, char** argv) {
int MAX_NO_DATA = 20;
int data[MAX_NO_DATA]; //the array containg the numbers to work with
cout






