No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello when I try to compile my program I get these errors: 1>funding6c.obj : error LNK2019: unresolved external symbol "void __cdecl ContributorSort(struct Contribution * const,int &)" (?ContributorSort@@YAXQAUContribution@@AAH@Z) referenced in function _main 1>C:\Users\Big Z\Desktop\program 6\Debug\program 6.exe : fatal error LNK1120: 1 unresolved externals what could be causing this? [code=C++] #include <iostream> … |
|
What i am trying to do is pass an array of structs to a function. the code i have so far follows: [code=C++] struct Contribution { string name; double amount; }; const int MAX = 25; typedef Contribution BigSpender; typedef BigSpender ContributionRec[MAX]; const string NAME_FILE = "names.txt"; const string CONTRIBUTION_FILE … |
|
hello, I am trying to pass the array songID[numSongs] to the function playRandomSong. What am i doing wrong? The compiler is telling me "error C2660: 'playRandomSong' : function does not take 1 arguments" [CODE=C++]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cstdlib> using namespace std; const int numSongs = … |