71 Posted Topics
Hey guys, I was just reading again about classes and their functions and i made some code, the thing i want to do is have a function, eg. [CODE=C++]void Cat::Sleep()[/CODE] and have it to have three cout's and choose one of them to say at random, Heres my code. [CODE=C++]#include … | |
Hey guys, i was bored so made a money converter, nothing is wrong with errors etc in the code but when i run my program, the pound sign is not valid, it comes up as a u with a accent on top, please help. [CODE=C++]#include <iostream> #include <conio.h> using namespace … | |
Hey, i was just messing around and made a calculator and was just wondering if there was a way i could make it shorter? I'm not really bothered i just want to know? [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { system("TITLE My Calculator Program."); system("COLOR 4"); double … | |
Just editing my calculator and looking at what functions math.h had and i came across pow, My program compiles and things like that so no error but if I'm not mistaken the answer is wrong. 6 ^ 1 = 6X6? = 36 (IS THAT CORRECT??) JUST IN MY PROGRAM IF … | |
Hey, Say if i made a program where people could register a account, but if they closed the window, the program would close and not remember passwords yeah? Well if i used the open file etc could i save the password's to a file so it remembered them? Many Thanks. … | |
Hey, I was just mucking around when using rand() and noticed every time it comes out as a output of 41? [CODE=C++]#include <iostream> using namespace std; int main() { unsigned int randomNumber; unsigned int guess; unsigned int guesses; randomNumber = rand(); cout << randomNumber << endl; system("PAUSE > nul"); }[/CODE] … | |
Re: this challenging code your homework by any chance? | |
Hi, I've been reading "C++ In 21 Days", I read functions a while back and decided to write some, i wrote the code and it gave me a error, so i copied and pasted code from the book and still got a error, you must see from my point of … | |
Re: Maybe because you have "30" in your code? If you don't need it get rid of it, else put a ; on end of 30 | |
Hey i've made a simple calculator, but i was thinking about adding a square root option.. But is there a actual way to do this or would i have to create my own?? PLEASE REPLY A.S.A.P | |
Hi, i was just wondering how i could do this, Say if i made a char array, password, could i change the input to *'s as soon as the user entered them without seeing normal char's Thanks. | |
Re: [url]http://www.daniweb.com/forums/thread1236.html[/url] Hope i helped :) | |
Hi, i was looking on the practise question sticky and i came across this question, Write a program that allows you to input students' scores and weights. The program should then calculate a weighted average and score based on the data inputted by the user. (Beginner) I'm not going to … | |
Re: I know this is solved now but, i see you've got [CODE]if (word[i] >= 'a' and word[i] <= 'z')[/CODE] I thought the "and" opperator was "&&" ? | |
Hello, I was wondering if you could change the program icon (it's usually a picture of c:\), and without making a gui progra, just a normal one if you get me? Like you can change the title by; system("title This Is Your Title"); Help a.s.a.p please :). ~ Black Magic | |
Help please, just made this little program, no errors but it does not write any text for me on Dev-C++. [code]#include <iostream> using namespace std; int main() { system("title Array Program."); int myArray[5]; int loop; for (loop = 0; loop > 5; loop++) { cout << "Value for myArray[" << … | |
Re: Yeh, i agree remove that line, but even if you did, multiplication is read before addition, so no need for brackets, if i am correct? | |
Hi, im just bored so was mucking around on Dev-C++ and then was wondering - how could i make it so my program said a random sentance, like if i defined loads, and it said one at random. Could you help :). | |
Re: Hi, can you post some code how to move the mouse etc :) just i would like to experiment making programs like that, many thanks. | |
Hey, i saw this thread about some one needing homework help but it was solved so i made one and it's not real homework but i was wondering how i could do something if the user entered a letter eg "e". [CODE=C++]#include <iostream> using namespace std; int main() { int … | |
Hello, This thread is not about you solving my homework, infact i only go to secondry school so don't get it, this sounds weird but can you give me some homework examples brcause i want to learn C++ and i think it may help, please reply a.s.a.p :). ~ Black … |
The End.