Answer the question
In order to leave comments, you need to log in
Trouble with Vector?
Help a noob figure out what the problem is...
#include <iostream>
#include <string>
using namespace std;
int main()
{
struct Vector {
Vector v;
float x, y, z;
v.x=15, v.y=25, v.z=35;
cout << v.x << endl;
};
system("pause");
return 0;
}
Answer the question
In order to leave comments, you need to log in
#include <iostream>
#include <string>
using namespace std;
struct Vector {
float x, y, z;
};
int main()
{
Vector v;
v.x=15, v.y=25, v.z=35;
cout << v.x << endl;
system("pause");
return 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question