- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
10 Posted Topics
Hello everybody! I'm participating in a competition, and I just finished my program. It doesn't really matter what it does, and how. I have encountered a bug I think. I'd appreciate every kind of help, because with the problem, my solution fails for the test file. I have to read …
As I know you can't do that. One question, then the answer.
Try cin char, convert to number, if the conversion is OK, then push_back, if not, throw an error.
I've had several errors with your code : time isn't declared, CootieComplete function is missing, etc. And he's not passing one, he's passing seven, so I can't get it...
I'd gladly help for free but I need to know what's the homework about, your code is messy and it doesn't really mean anything, the goal is missing. PM me and I'll do it! (:
I think you messed it up a bit, for example reading a database should be void. I didn't separate my solution, excuse me for that. The size-1 in the loop is a mistery for me, it worked only that way, otherwise there were a "bonus" record, I think it depends …
You should use 2D vectors. I don't know if you know them, but they are nearly the same as arrays, just if you want to add a cell, you have to use vectorname.push_back(X).
[CODE]#include <iostream> using namespace std; int main () { double input_x, number; cout << "Insert value: "; cin >> input_x; char choice; bool ok=false; do { cout << "Insert choice (D or R): "; cin >> choice; switch (choice) { case 'D': case 'd': number = input_x * 3.142 / …
[CODE]#include <iostream> using namespace std; int main() { for (int i=0;i<=10;i++) { cout << "I is " << i << endl; } cout << "The loop is completed\n"; return 0; } [/CODE] This is the [B]for[/B] loop. [CODE]#include <iostream> using namespace std; int main() { int i=0; do { cout …
The End.