- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
35 Posted Topics
Re: i looked at the code and found the cheat xD 666 for the person. | |
I have a c++ game that i made and i was wondering how i would make it so that i could add graphics, or just use the same basic concept of the game and just put those into a fresh game that i make with graphics. well my question is … | |
The program I'm writing is supposed to take a number of *tosses* entered by the user, this part works. Then take that and check to see if it is within a circle that is inside of a square. Then take the number that are inside the circle, and divide it … | |
The programming language for this is ada. So I have a lab I need to do for my CS class, and I got it basically done. The only problem is, I can enter the cost, and the amount tendered. But after that it doesn't return any of the values. What … | |
Hey, I was about to get started just making a simple text game and was wondering how to make it so the game came up in a different window other than the CMD? Like how can I make it come up in say.. A 400x200 Window? Where I could customize … | |
Re: What Walt P said basically sums it up =) I took off my answer so you could think a little bit harder for yourself =P | |
So I've never worked with percentages in c++ and I was wondering how to incorporate into a program I'm making for a game so see what the chances are that an item will reach a certain level depending on the chance of success for each different level. Here's what I … | |
Re: I'm not sure myself but I'm trying to work on a game like that myself. I sent you a Pm about something also. | |
I started this game a few months ago and I decided to finish it up, but a problem im having is with my arena. basically the "Arena" is the final thing to the game. If you beat the arena you win the game. whats wrong with it, is that when … | |
first off i have a game in the making, its pretty simple but im just getting the feel of making the game before i get into depth with it. I'm wondering how i can run my game without needing to open up visual c++ 2010 and running it from there... … | |
I'm making a shop for my game, I opened a Fresh thing of code for this so this is the only code I'm running, I just want to get this to work before I put it into my actual game. anyway what the problem is, is that no matter what … | |
i have a major error whenever i run my code... im using visual studio c++ 2010 express. here's the code: [CODE]# include <allegro.h> # include <iostream> # include <cmath> #define down 0 #define left 32 #define right 64 #define up 96 int main(){ allegro_init(); install_keyboard(); install_mouse(); set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, … | |
i was wondering how i can make it so i do something like: [CODE]cout << "Press any key to continue." << endl;[/CODE] what kind of code do i need to put it so that the program dosnt do anything until someone presses any key on the keyboard? | |
i was working on a simple calculator and here's the problem I'm having: i want the whole program to loop over and over until the user decides to stop, so i put a while in there and the loop works great, but when the user is done inputting the numbers … | |
I'm making a simple text RPG game that I will later (once i get the code running well in the text version) put it to graphics and so on. Basically what this code is doing is, there's a monster that the user just killed. based on that monsters level that's … | |
I have some code that i need a press any key to continue command but when i put it in there it doesn't work, here's what i have: [CODE]cout << "Press any key to continue." << endl; cin.get(); [/CODE] can anyone tell me what im doing wrong? | |
I'm coding a game right now and everything works great that i want to have working right now, but there's a minor bug that i know of. this is that when the player enters their name, and the name has spaces, the code just closes. here's the part of code: … | |
Re: I'm not 100% sure but i think if you got rid of [CODE]#include <conio.h>[/CODE] that should work. | |
Re: can you put it into the code brackets? that would be alot easier to help you. | |
Basically what I'm trying to do is simple. My main problem is the random numbers, but in the comments i have some other issues... if you know how to fix them that would be great the other two main ones im having trouble with are: the do loop until the … | |
so basically whats happening is its saying that im trying to call on the function before it appears... here's the code: [CODE]# include <iostream> # include <cmath> using namespace std ; char name [40]; // lets the players name be up to 40 characters int choice; int goblin = 250; … | |
So i haven't been coding in awhile and i just decided to try and make a game again. nothing fancy just a simple text rpg. here's my code so far there's a few errors and if you know how to fix them that would be great... also i have some … | |
ive heard people using somthing like[CODE]#include <windows.h>[/CODE] so that its not in the command prompt and its in a window the size the person making it selects | |
ok so i want to make my code in a window instead of c++ how would i do this? can someone give me a example? | |
i was putting the finishing touches on my project and there are some errors that came up here is my code: [CODE] else if (action == 3){ system("cls"); cout << "Russia has an entrenched, albeit underfunded, system of socialized medicine. Basic medical care is available" << endl; cout << "to … | |
so this is the part of my code that has an error: [CODE]int Mainmenu(){ system("cls"); int action; char action1; cout << "Welcome to my Quarter Project." << endl; cout << "What would you like to learn more about?" << endl; cout << "1. Medecine in the United States." << endl; … | |
so when i have my if statement, if someone goes to put in say: 1 for the answer, and 1 wasnt a choice, when i put it in again it closes the program, heres an example [CODE] int action; cout << "press 2, 3, or 4." << endl; cin >> … | |
ok so if i have somthing like [CODE]#include <iostream> using namespace std; int main(){ int action; cout << "have this show up first" << endl; cout << "then have an if statement here" << endl; cin >> action; if (action == 1){ cout << "then have this show up but … | |
ok so heres my script [CODE] #include <iostream> using namespace std; using namespace std; int Unitedstates() { int action; char action1; cout << "you have chosen to learn more about the united states. Now What will you do?" << endl; cout << "1. The quality of doctors in the United … | |
ok so basically what im wanting to do is setup functions and call on them later... this is kind of what i want [CODE] void mainmenu(){ //what i want in there... //if statements etc } void etc() { //whatever goes here} int main() // and then have them get called … | |
ok so im doing a project for a class, no body but me is doing c++ for it, im the only one in my school that knows some of it, and heres what i have so far, havnt gotten into too much detail for it because i need to know … | |
ok so im just starting out in html and was wondering if there was any good tutorials people know that i can try and all that... i have a project in school that im going to create a website with it and since i started learning javascript and c++ a … | |
ok so i worked on this during lunch at school since i was bored, but here it is so far. [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int badguy1; int action1; int action; int att; int def; int health; int shop; int action2; int action3; int action4; … | |
ok so im starting out in html and know the pure basics of javascript... (know a little bit of c++ but that wont help me here i think) well anyway i need to make a website and from what im understanding is that javascript basically does animations (i think) on … | |
here is my script: [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int who; cout << "how are you today? good, bad, or eh?" << endl; cin >> who; if (who == "good") { cout << "ahh thats pretty cool i guess..." << endl; } if (who == … |
The End.