Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for cypherscouter13

I have the following code int main() { compute(); return 0; } void compute() { double Ptr; vector <double> Vector; for (int u=0; u<N; u++) { computeFor(u, Vector, Ptr); Vector.push_back(EnergyPtr); } } void computeFor(int i, vector<double> &List, int u, vector<double> &Vector, double &Ptr) { int Num = List.size(); int pos[2][Num]; …

Member Avatar for rubberman
0
320
Member Avatar for cypherscouter13

I am trying to compile the files below. The PosLin.cpp contains the SurTriAuto and SurTriPosRotAndQ functions below. Before adding SurTriPosRotAndQ, it compiled fine, but when I added SurTriPosRotAndQ, I am getting "invalid use of incomplete type ‘struct PosRotAndQ" error messages I was thinking I could try moving SurTriAuto and SurTriPosRotAndQ …

Member Avatar for cypherscouter13
0
434
Member Avatar for cypherscouter13

I am using scientific linux. In the directory user/project/Build , after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory user/run/run.sh , which runs the project binary in user/project/Build/bin/project , I get a segmentation fault error. In the …

Member Avatar for Moschops
0
257
Member Avatar for cypherscouter13

I have a large amount of code, so I have tried to only include the relevant parts of the code here I have a header file called "ASp.h" namespace ASP { class ASp { public: ASp(); ASp(FILE* fp); void T_B_P_N(const char* type, int num); } } another header file "ms.h" …

Member Avatar for cypherscouter13
0
1K
Member Avatar for cypherscouter13

I am trying to create a vector of objects that can have pointers to functions. I would appreciate some help with this as I don't really know what to do [CODE]#include <stdlib.h> #include <windows.h> #include <ctime> #include <cstdlib> #include <iostream> #include <vector> #include <string> using namespace std; class Card { …

Member Avatar for raptr_dflo
0
189
Member Avatar for cypherscouter13

I'm getting the error for the following code "error C2664: 'KaibaMainPhase' : cannot convert parameter 1 from 'void (__cdecl *[2])(std::vector<_Ty> &,std::vector<_Ty> &,std::vector<std::vector<_Ty>> &,std::vector<_Ty> &,std::vector<_Ty> &)' to 'void (__cdecl *)(std::vector<_Ty> &,std::vector<Card> &,std::vector<Card> &)" [CODE]class Card { public: string GetName() {return Name;} void SetName(const string& setName) {Name = setName; } void SetType(const …

Member Avatar for cypherscouter13
0
207
Member Avatar for cypherscouter13

I try to run the following, but I keep getting the error "error C2664: 'Card::SetName' : cannot convert parameter 1 from 'const char [23]' to 'char'" I also got the following error; error C2664: 'Beginning' : cannot convert parameter 2 from 'std::vector<_Ty>' to 'std::vector<_Ty> &' I'm not that familiar with …

Member Avatar for cypherscouter13
0
161
Member Avatar for cypherscouter13

I keep getting these error messages: "error LNK2019: unresolved external symbol "void __cdecl MainPhase(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > *)" (?MainPhase@@YAXPAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z) referenced in function _main" "error LNK2019: unresolved external symbol "void __cdecl DrawForKaiba(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > …

Member Avatar for sfuo
0
249