Beginners - November 2013 (Page 17)

by hilft
Inheritance question
 
As I compile and run this code, I get storage=3 and safe=5 I understand how storage is 3, but I don't know why safe is 5, instead of 3. What is being carried ov...
[2 replies] Last: thank you so much! (by hilft)
by Oxage
Newbie While Loop problem
 
I'm going through a C++ book right now and it has exercises at the end each chapter. Not sure where I went wrong. Even if I enter the the correct choices, and p...
[4 replies] Last: Heh, ok I understand you now thank you guy's so much. (by Oxage)
One problem for Monte Carlo Programming
 
Problem: Try this out for a variety of n and tell me how large of an n you needed to get an approximation of accurate to 3 decimal places. I know if I input...
[2 replies] Last: Anyone can help me to solve this problem? (by qwer3200)
by Garion
A very simple header file
 
I've been trying to learn how to use header files because they seem incredibly useful. I am having difficulties with getting even a simple header file to work t...
[4 replies] Last: thanks you!! it works now :) I messed around and it seems I can put a... (by Garion)
Classes, LEDs, and Optimization
 
I am building a program that will manage the colors of LEDs. Would my program run faster if their were many (more than 80) instances of the same class that mana...
[no replies]
by RabMac
Help Understanding Recursion
 
Hi, I am trying to work out how this function works but feel I am missing something as I can't understand the output. If I use number = 5 and power = 3, i...
[9 replies] Last: Cheers for the info Chervil. I have not programmed since leaving univ... (by RabMac)
by zENZEz
Can't find my memory leak
 
Hey, guys! I've been checking my program and found lots of them :S But I can't see where the problem is coming from. Detected memory leaks! Dumping objects -...
[1 reply] : Found it, it was the delete tempTwo; that was missing :) (by zENZEz)
by Nefri
Time in string to int
 
Hello, i have problem with converting time in string to int. I have string="9:00-10:30" or anything else like "19:00-24:00" and i want to get from this in...
[4 replies] Last: when i write char s = arrayc it output error. What about char s ... (by Chervil)
C++ programming problem
 
C++ help with Simple Program? I'm a beginner and I am having difficulty with this problem: Write a program that reads a data file that should contain on...
[6 replies] Last: @Fluppe: Also, mabey you shouldn't assume the first element is a '3'.... (by IWishIKnew)
bool help
 
Had to write a program that plays a card game. I can't seem to get my logic to work for when it is the end of the game. Here is my code if someone can catch wha...
[6 replies] Last: Granted, but: line 33: indent the nested while loop, and any other ne... (by IWishIKnew)
Class + Vector (OOP problem)
 
Im new to oop and vector. This is what im experimenting, but I've got a runtime error instead. I would like to know what to do to fix this. Thanks #includ...
[2 replies] Last: The real problem here is that in your display function: [code firstl... (by long double main)
help with classes and structs
 
this is the instructions for the program: You are to implement a program that uses both a Array-based Stack and a Linked Stack (the choice of how to use the...
[2 replies] Last: I realize my question might have been a bit ambiguous. I think I know ... (by byronflds)
by Xesna
Order Status
 
The DEV C++ tends to stop working when it get to void displayOrder . I'm wondering what I did wrong? I also placed one comment in the code explaining what I am...
[5 replies] Last: I'm running the code every time and the moment it encounters: The nu... (by Xesna)
Magic Trick
 
Im trying to do a Magic Trick using C++ Programming. Can anybody give me a magic trick that can convert to C++. Its for my end semester project.
[10 replies] Last: I need it in c++ form. (by jakesweater)
by dp13
Not reading or allowing operations
 
I have two errors I don't understand. The first is cin will not read the struct member being passed to it. The second is the compiler will not allow me to mu...
[no replies]
by craZee
Program Closes After Inputting Value
 
I'm writing a program for which I'm having a lil' trouble. While the code doesn't seem to bring up any errors, the resulting program closes after I input a valu...
[6 replies] Last: That did it. :) Thank you so much Chervil! Abstraction and minuss as w... (by craZee)
Student Programmer, help with math step (1,2)
 
I am writing a program for class were the user earns 1 for the first day of work and 2 pennies on the second and 4 pennies on the 3 day doubling every day after...
[24 replies] Last: One more problem with this program. I am using user input validation. ... (by kmartar)
Help me with the string program please, urgent.
 
Hello everyone I'm trying to write a program that changes a vowel in a string input to a number but only one chosen at a time i.e if the input is cream, if I ch...
[2 replies] Last: I did write it, but I really dont understand two things, firstly how c... (by Guney Sungar)
string c++
 
Write a program that will find the first occurance of the given keyword in the given text. I have it displayed the symbol index and not index words, how to fix...
[1 reply] : Well, by definition, if the search is successful, the word found must ... (by Chervil)
Sending Keys + Mouse Clicks in other Application
 
Write your question here. Hi Guys, Can you help me making a School Project that Send Keys and Mouse Clicks. For Example: ** When I click F4 Key, it will...
[no replies]
November 2013 Pages: 1... 1516171819... 80
  Archived months: [oct2013] [dec2013]

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