- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 1
Im awesome, but a programming noob.
Re:
Good morning to all. I am Vishnu Kumar, MS (Software Engineering) graduate, fresher, 2012 passed out. And i am another one in your way with a dream to develop a game. I had gone through plenty of articles and topics (pinned in this forum too) but i find that, basic … |
|
Re:
This is an on going story, each post adds 3 words to continue the story (no more than three words). Try not to post two times in a row ;) ill start I like this... |
|
Re:
Hello Community, i have a text file... with example following content: Pizza 23232 Car 44,495 Drink 3493,90494 .... .. . and so on.. no i want to find the 44,495 in this textfile.. calculate a new value like 44,495 x 2 + 5 and write the same file as Pizza … |
|
so i decided to try sfml, and i used the sample from the website to see if its working. heres the code //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Window.hpp> //////////////////////////////////////////////////////////// /// Entry point of application /// /// \return Application exit code /// //////////////////////////////////////////////////////////// int main() { // Create the main window … |
|
Re:
So I need to write a program where the user tries to guess a magic number. The only thing that I do not know how to do is set the max. amount of guesses to 5. This is what I have so far. Can someone please show me how to … |
|
this is a very simple RPS game and i ran into a prob. heres the code #include <iostream> // for cout/cin #include <cstdlib> // for rand/srand #include <ctime> // for time #include <cctype> // for case conversion using namespace std; char rps; char ai; char redo = 'Y'; // all … |
|
Re:
I would like to know if this is a correct way to call and define a function for my program #include <iostream> #include <cmath> using namespace std; int math(double a, double b, double c); int main( ) { int math; char a,b,c; math = a + b + c; return … |
|
Re:
so i made this program with a function call and definition and i keep having problems with the call function and i get error C2059: syntax error : 'return' when i build my program. #include <iostream> #include <cmath> #include <iomanip> using namespace std; int math (double cartons, double totalcost, double … |
|
so i was bored and decided to make a dice simulator, and i ran into a error. heres the code #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int total[12]; int dice1; int dice2; int aitotal[12]; int aidice1; int aidice2; void Roll(){ srand(time(0)); dice1 = 1+ (rand() %6); dice2 … |
|
So, i wanna try graphics, and i was wondering if sfml or sdl is better? I cant find any good tutorials on sfml and its kinda confusing. i havent used sdl so im asking your opinion. and also, **What did you start off with, and why?** |
|
ive been searching the web for a 2d free game engine compatible with c++, and i cant find any! So i would like to know, if there is any that you guys know about? most people direct me to lib librarys, but thats not what i want. btw, sorry if … |
|
This is a very simple Rock Paper scissors game i made. i showed it to my cousin and he played it for like 20 mins lol. Its against an AI and you pick by number, not words. |
|
Re:
How can I make my program generate random number between two given integers ? I use `srand ( time(NULL) );` `x = rand() % i;` to generate numbers modulo i. But I can't figure out how to generate between two numbers, suppose 1 and 3. |
|
Re:
I was trying to create a program that would require the correct password to be put in in order for it to display something. I was able to make a program that would require the right password to display a certain thing. But the problem is that it can only … |
|
Hey guys, im new to C++. been learning for only about a week. The most complex program i can make is a calculator! But, i was wondering, how hard would it be to make a text-based zork-like game? Like i said before im new, so any tips and/or tricks to … |