Beginners - October 2014 (Page 67)

Arrays with random numbers and looping
 
I'm having a problem with this code I wrote. Basically it is supposed to roll two dice 36 times and if you roll snake eyes, two ones, at least 3 of the 36 times...
[5 replies] Last: I meant where to put sum=0; but as Keene said in the first comment it ... (by Juan3273)
by fritzy
cant find c++ file
 
can you pls help me. i made a program in our class and after saving it the only files that i saw were .exe and .obj what happened? and how could i see the co...
[no replies]
Function arguments, skip and use defaults
 
I am wondering how to make a function where when you skip an argument, it will automatically use its default. For example: class Store { public: ...
[6 replies] Last: How about this: class Store { std::set<std::string> products; publi... (by keskiverto)
Using #define and grabbing the information with a certain input
 
With what I have so far, how would I code as to ask the user to input the the name of an item and output the resulting information stored. Ex. Enter Card's Na...
[7 replies] Last: Well, you need to stick that all that in a valid place. Start with put... (by ResidentBiscuit)
I am looking for help with openGL.
 
I want to find a little more advanced tutorials for openGL. I have done the basics but those are the only tutorials I can find, that isn't a video of some guy t...
[3 replies] Last: Best tutorials out there on the subject I would say are these http://w... (by Z e r e o)
Calculate for total in a row
 
Hey guys/girls! I did a program to be able to input the day and the route for a bus in a week... and i got all the input and out put. but i wanted to calculate ...
[4 replies] Last: Have you considered something like this: enum Weekdays{ M... (by PCrumley48)
by anup30
how to get Programming Principles and Practice using c++ 2nd ed pdf ?
 
hello world! how can i get a pdf copy of: Programming Principles and Practice using c++ 2nd ed. by Stroustrup i found epub version on google, and pdf of 1st ed...
[no replies]
by vxk
string reverse (1,2)
 
The question is to reverse the string using 2 different functions separately , I am not able to get to the logic of the second function : #include <ios...
[23 replies] Last: guys like you making C++ harder (゜_゜) If by harder you mean act... (by Z e r e o)
How to make efficient interactions between classes?
 
Hey guys, so I'm trying to make a simple console (by console i mean cmd) game where you have a character with some attributes and he will fight enemies until he...
[8 replies] Last: I appreciate the help guys, I had learned about pointers but I guess I... (by bryan177mcsc)
Is this a sensible class hierarchy for a video game?
 
Hi. I'm pretty new to programming, and not entirely sure I'm grasping the concepts of OOP perfectly. Therefore, I'd like to check to make sure that this class h...
[5 replies] Last: Hi Zereo, thanks for taking the time to respond. though you are a bi... (by hyperfine)
Arrays help
 
Hello! I have just started with arrays and I have a question. I have been asigned to make a program that asks the user to write in numbers in an array. I hav...
[2 replies] Last: kemort hit the nail on the head. The beauty of arrays (and why they ar... (by TheKingOfTyrants)
Help please
 
Ive been trying to think of a way to include a yes or no statement at the end of each pattern how ever i am clueless as to how to do it.. any help would be much...
[1 reply] : Your code is asking if the user wants to build another pattern, yes? Y... (by TheKingOfTyrants)
An Implementation Of Itoa
 
the following implementation i found on the internet on a reliable source have to work i don't understand a specific row 21 how do you write a string with [ br...
[3 replies] Last: Splitting it over two lines makes it easier to follow. *ptr = ... ptr... (by Peter87)
Problems with menu
 
Hello everyone, I'm new on this forum and I would not come here to ask for help if I'm not desperate. I just learn loop last week and my professor give me a p...
[7 replies] Last: Thank you kemort for helping me. All problems are solved. (by trannghi7707)
by it058
Selection sort to sort linear linked list
 
Whats problem in sort function (selection sorting is used here)? void sort(node *n) { int small, temp; do { small=n->info; m=n; //...
[no replies]
float variable (i input the value is a letter),Error syntax!
 
when i want to input the value of equation,example is length and then i enter it a letter to the value,the program became error.Please help me to fix this prog...
[8 replies] Last: I just have used the functions,it is worked nicely.Thank you man,you s... (by Recky12)
I am all confused. Need Help
 
I have never programed in my life and have to take the C++ for my engineering class. Once I get it, I totally get confused again. Can someone help me with this ...
[6 replies] Last: I need help with the "switch case" and I think I will be fine! (by kwadkwk)
rewrite the program below using a switch statement
 
I wonder if my codes meet all the requirements here yet ? and How do you rewrite the program below using a switch statement instead of the if-else chain? Use...
[4 replies] Last: Hint: Or, you might process the number a little more get to just o... (by PCrumley48)
C++ Program
 
I'm working on an assignment for class. I would like to see if I am close enough to the right path for people to understand what the program wants. //Br...
[7 replies] Last: Ispil: Yes. We get graded on variable names this semester. (by bjwade1)
Program 18 (1,2)
 
Now I moved on to the next exercise, which is as follows: Now change the body of the loop so that it reads just one double each time around. Define two varia...
[30 replies] Last: Hello guys now I decided to move to the next exercise: Keep track of... (by pacman169)
October 2014 Pages: 1... 656667686970
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.