- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
22 Posted Topics
Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't … | |
Re: [QUOTE=zandiago;887542]Firefox all the way.[/QUOTE] I agree, IE is out of date and it doesn't have all good functions, and not soo many add-ons either... | |
Re: I think humanity will destroy it self, we might start some war, pollute our planet so you could no longer live there, maybe the magnet fields will move and the sunstorms will reach the earths surface, maybe global warming makes the oceans swell over and cover the whole earth. The … | |
Re: Well I haven't really seen any breathtaking movie but, the best so far is >>The Runaway Jury<< I love it, if you haven't seen it the do it! | |
tried to make this encryption program but it doesn't work, [B]I know[/B] I must have done something wrong, but I don't know how to correct it. A more effective solution to my "[I]if dWord is higher than 118[/I]" would be nice, thx for help:) [COLOR="Red"] here's the code![/COLOR] [CODE=c++] #include … | |
what is the counterpart of [CODE]start program.exe[/CODE] in c++? | |
Re: use the iomanip header [code=c++] #include <iomanip.h> #include <iostream> using namespace std; int main() { cout << "enter two numbers that you want to divide >> "; double a; double b; cin >> a; cin >> b; cout.precision(2); // only display 2 numbers cout << a << " / " … | |
Re: [QUOTE=cosi;44983]Actually you can do this programatically fairly easily... Using Windows API's SystemParametersInfo with SPI_SETDESKWALLPAPER. [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp[/url] I don't program in Win32 anymore, so the if you get stuck try looking here: [url]http://www.c-sharpcorner.com/Code/2002/Sept/ChangeWallpaper.asp[/url] You should be able to figure out which constants correspond to the given values in the example. Have fun! … | |
[CODE=C++] string word; cout << "type in the word you want to be decrypted >> "; cin >> word; char dword[] = word; [/CODE] this does't work, is it because yo can't use the line [CODE=C++]char dword[] = word;[/CODE] if it is because of that then please tell me what … | |
what's wrong with this code, when i try to make the pyramid, it's always the same height of the pyramid. and somehow onumber always has the value of 20, WHY??!! Here is the code and I'll also include a picture of how it looks. [CODE=c++] #include <iostream> #include <iomanip> using … | |
Since the very first time I programmed c++ I've been trying to make a program that looks like this [CODE=c++] #include <iostream> using namespace std; int main() { char name; cout << "please type in your name >> "; cin >> name; if(name == 'kevin'){ cout << "hello bitch" << … | |
Re: use the iomanip header [code=c++] cin.width(30); // reads max 30 characters/numbers cin >> input; [/code] | |
Been trying to make a substitution cipher decrypter, but it isn't working especially good. so I thought I might could get some help with it. [code=c++] #include <iostream> #include <time.h> #include <windows.h> #include <iomanip.h> #include <string.h> using namespace std; int main() { bool EndThisShit(false); do { string input; cin >> … | |
Re: You could use a much easier type of game, here's a link from where you could get the code: [url]http://brom8305.blogspot.com/2009/06/c-tic-tac-toe-script.html[/url] try it out! | |
Have created a simple bingo game, I'm going to add color later (why I have used the SetConsoleTextAttribute). The problem is that the X i replaced by 88, I know why (I think), it's becuse it's a int and not a char, but when i tried to put in (char) … | |
does anyone of you lot know a way to use colors in a program compiled in Dev C++, except for the [code=c++] system("color a"); [/code] function? and I'd also be glad to know another way to clear the screen, then the: [code=c++] system("cls"); [/code] function | |
Re: well... if you ever get tired of books then try this tutorial [url]http://www.youtube.com/watch?v=Jud497WjF-E&feature=SeriesPlayList&p=A68C1F33757B4A38&index=1[/url] this is the first lesson, then it's just to keep going on, there's a lot of tutorials made by this guy. | |
I've been trying to do a really easy game here, the thing is that the when a player reaches 0, it just keep going to -5 and such like. WHat's wrong? [code=c++] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main () { srand(time(0)); int player1 = 100; … | |
Re: to add text into an already existing file use the [code=c++] ios::app [/code] function and to read a file use the [code=c++] ios::in [/code] function | |
Re: This would do it... [code=c++] #include <iostream> #include <string> using namespace std; int main() { char Team1[40]; char Team2[40]; int score1; int score2; cout << "enter the name of the two teams" << endl; cout << "Home Team: "; cin >> Team1; cout << "\nGuest Team: "; cin >> Team2; … | |
I'm quite new too C++ but finally my experience is good enough to actually create something, that's what I thought... So I triedto make this easy Tic Tac Toe Game and I think i got it all right but obviously not cause when I try to choose somewhere to put … | |
Re: this is the answere: [code=c++] #include <iostream> #include <cstdlib> #include <cstdio> #include <windows.h> #include <time.h> #include <fstream.h> using namespace std; int main() { int a=100; int random; srand(time(0)); while(a) { random = rand() % 99 + 1; if(random%2 !=0) { ofstream randomN("oddFile.txt", ios::app); randomN << random << endl; } else … |
The End.