Ok well I dont really get wut u want to do... But if you wanna read in a file and put the values in an array here is a simple way to do it :
#include <iostream>
#include <vector>
#include...
Type: Posts; User: eezaa
Ok well I dont really get wut u want to do... But if you wanna read in a file and put the values in an array here is a simple way to do it :
#include <iostream>
#include <vector>
#include...
A matrix is such an array with one dimension ... if you find the relation between those 2 ... u'll have ur answer hehe
try it this way
#include <iostream>
#include <cmath>
using namespace std;
float getcoords(int x1, int y1, int a1, int b1);
I wud suggest you deitel , thats the book the future software engineer use in university
well wut this formula seems to do : it gives you the size of memory this information uses in ur vector wich seem to be a vector of int...
Ya I agree this is not C++ lol ... But if it wud be , to put some order in ur code as wut u seem to do is a data base, well you shud make a class for a start and put ur objects in a vector ... wud be...
lol my lastest effort ... ya ok i tried this command:
setf(ios::left) and it gave me : error primary expression expected before.... and i included iostream,iomanip and namespace std ... so i didnt...
its still not working .... any idea??? well at least I guess im not the only one to ignore the answer lol
ya i noticed my text wasnt aligned .. well this is my problem isnt it LOL ... fixed it hehe
Well I know about setw but it align to right... how do I align to left???
Hey all , I started to learn C++ recently and I wud need some help on something.
Here is my file.txt:
Allemagne 357021 83251851 Euro ...