Actually, for the test that was today, there were 3 programs I had to know, and one of them would be on the test. Thankfully, one of the three programs on it was the one I knew (the asterisks one...
Type: Posts; User: xlokix
Actually, for the test that was today, there were 3 programs I had to know, and one of them would be on the test. Thankfully, one of the three programs on it was the one I knew (the asterisks one...
Ok I have one little problem and that's all I'm asking out of these forums (for now at least)!
I have a project that I have to do, you have to display this with loops:
*
**
***
****
*****
It's like you're speaking 3 different languages!
Ahhhhhhhhh! My teacher would kill me for that. Woops! Thanks man, that worked :p.
Blah!!! I was sure I got it this time. Anyway, I need help again.
I'm not sure if it's just crashing, or it's closing again. But I tried the getchar();getchar(); and that didn't stop it from...
Ahhhhh. Let me try this out.
What do you mean by "found", never done that before :x
No, there's no room to sleep on the desk with the computer there and all.
Couldn't find the Binary Search Method in my textbook...
Anyway, I started it...
#include <iostream.h>
main()
int guess, ans, ans2;
int high = 100;
int low = 1;
Before the way I'm using now, I wrote something similar to scribblers way and got weird numbers so I changed my method.
Ok. Next up, Project 2!
Oh boy this is going to be a long one. The user...
Actually, I'm in C++ 1, and there will be no C++ 2 next year. So I will not learn more. And it's only a half a year class, so I'm finished with the class in about a week.
Here, I'll update on what I have so far.
#include <iostream.h>
#include <stdio.h>
main()
{
int change;
int q=0,d=0,n=0,p=0;
Well I'm trying to keep it simple, My teacher probably wouldn't believe I wrote the code if I included stdio.h, since we've never learned that before. Or getchar (whatever the hell that is ...
Ok, look at this
#include <iostream>
//#include <conio.h> Not standard C++ :(
// We could do: using namespace std;
// But we'd be including more than we need/want!
using std::cout;
using...
hold on, checking it over.
I'll try and stay away from him..
But it's still not working..
I used some of what you told me,
#include <iostream.h>
#include <conio.h>
Damn, you make it look so easy :)
Just one question, what's "change -= 25" I don't get what that's doing
And why should i use 'int main()' instead of main(), I was never taught 'int main()'.
I...
Yeah, I had a feeling that those if/else statements would kill me. So i wrote it over a bit:
#include <iostream.h>
#include <conio.h>
main()
{
int change;
int ans;
Problem here. I assume that I put too many nested if and else statements and screwed up somewhere :x. Anyway, the project is:
Write a program to print the coins necessary to return change to a...