PDA

View Full Version : I Need Urgent Help With these Projects



NtobekoQt
2nd April 2014, 01:46
1022410223

Hi there, I need urgent help with these projects I've tried doing them to no success. I'll appreciate your help.

stampede
2nd April 2014, 07:52
I need urgent help with these projects I've tried doing them to no success. I'll appreciate your help.
Sorry but I doubt that anyone will do your homework for you.

ChrisW67
2nd April 2014, 08:20
Financial part errors and some hints because I am feeling generous. Always start from the top.


g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o main.o main.cpp
main.cpp:13:35: error: invalid digit "8" in octal constant
main.cpp:14:33: error: invalid digit "9" in octal constant
// ^^^ Those things that look like dates are not QDates

main.cpp: In function ‘int main()’:
main.cpp:13:7: error: ‘class AssetList’ has no member named ‘add’
main.cpp:14:7: error: ‘class AssetList’ has no member named ‘add’
main.cpp:15:7: error: ‘class AssetList’ has no member named ‘add’
// ^^^ As the error message says. There is an addAsset()

main.cpp:15:52: error: no matching function for call to ‘Saving::Saving(const char [4], int, int, double)’
main.cpp:15:52: note: candidates are:
In file included from main.cpp:5:0:
saving.h:8:5: note: Saving::Saving(QString, QDate, double, double)
saving.h:8:5: note: no known conversion for argument 2 from ‘int’ to ‘QDate’
saving.h:5:7: note: Saving::Saving(const Saving&)
saving.h:5:7: note: candidate expects 1 argument, 4 provided
// ^^^ related to the first errors

main.cpp:16:7: error: ‘class AssetList’ has no member named ‘add’
// ^^^ Looks familiar

main.cpp:16:55: error: no matching function for call to ‘Stock::Stock(const char [9], int, int, int)’
main.cpp:16:55: note: candidates are:
In file included from main.cpp:6:0:
stock.h:8:5: note: Stock::Stock(QString, QDate, int, double)
stock.h:8:5: note: no known conversion for argument 2 from ‘int’ to ‘QDate’
stock.h:5:7: note: Stock::Stock(const Stock&)
stock.h:5:7: note: candidate expects 1 argument, 4 provided
// ^^^ related to the first errors

main.cpp:17:7: error: ‘class AssetList’ has no member named ‘add’
// ^^^ Tireless complaining

main.cpp:17:53: error: no matching function for call to ‘Bond::Bond(const char [7], int, int, double)’
main.cpp:17:53: note: candidates are:
In file included from main.cpp:4:0:
bond.h:8:5: note: Bond::Bond(QString, QDate, double, double)
bond.h:8:5: note: no known conversion for argument 2 from ‘int’ to ‘QDate’
bond.h:5:7: note: Bond::Bond(const Bond&)
bond.h:5:7: note: candidate expects 1 argument, 4 provided
// ^^^ related to the first errors


main.cpp:20:4: error: ‘a1’ was not declared in this scope
main.cpp:20:4: error: template argument 1 is invalid
main.cpp:20:4: error: invalid type in declaration before ‘(’ token
main.cpp:20:4: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘e’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
main.cpp:20:4: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
// ^^^ Typo reeks havoc

...