Beginners - March 2010 (Page 5)

Outputting .txt file into code
 
We are supposed to use an OutFile in order to show a timecard program. But instead of getting the desired result: http://img265.imageshack.us/img265/1358/scr...
[3 replies] Last: just create variables before the while loop and these variables will h... (by PeteyPii)
Trying to use an alternative to the copy-constructor
 
I'm completing an exercise where I have to make an alternative to the copy-constructor using new and delete . Following the instructions, I end up with this ...
[4 replies] Last: Oh wow, thanks for the tip. I didn't realize it was creating two copie... (by closed account jwC5fSEw)
pointer problems
 
/* Im using a cout statement to try and print the value stored in the address that my pointer is pointing to, but its not working. It compiles just fine but whe...
[8 replies] Last: Yeah.. just to add that ptr should no longer be a pointer. dou... (by adikid89)
How does the int and static_cast respond
 
How do I view what I have stored in an int x, after I have programmed and compiled this? int x; x = 3 / static_cast<int>(4.5 + 6.4); Where will I see a...
[3 replies] Last: Yes. (by firedraco)
Combine Buffers -How To?
 
Hi all, I'm really not at all experienced with C++, but I have some changes to make in code that used to be maintained by someone else. The code that exists...
[7 replies] Last: I think I had to change the condition to (NumOfBytes > 0 || NumOfBytes... (by Superfreak3)
What is wrong with this c++ code?
 
#include <iostream> int main () { std::cout << "What is your favourite number? " << std::endl; int iNumber; std::cin >> iNumber; std::cout << "Your f...
[3 replies] Last: you might what to declare your variables first like so #include ... (by OnymousIllusion)
by navi33
how to??
 
Hi. im having a problem with 2 dimensional array. im assigned to read the input of 45 names with corresponding gender, then display then and the number of male...
[9 replies] Last: Haha i just solved it now thx for the help~ (by navi33)
by Melee
Multiple definitions of class functions?
 
Hi, I am trying to link together 5 files for my upcoming project, and I keep getting the same error messages telling me I have multiple definitions of class fun...
[3 replies] Last: Hmmm... I don't see a mistake so far :-/ Could you show me project4... (by attaboy)
by Neesh
array program not correctly recognizing elements in array
 
I am writing a program that is essentially a game where a hero(represented on the grid by an H) needs to navigate through an 8 by 8 array. In the array there ar...
[no replies]
How can I get a variable in one function to the next.
 
I need to get the variable "cost" in function get_item, into the function get_discount. float get_item() //Getting information on the items. { char...
[8 replies] Last: Sorry, it was just a quick fail pseudo-code example about returning.... (by bluezor)
Table of Subtraction
 
I am trying to create a subtraction table where you subtract the number of column from the number of row, and the answer appears within the table. For example i...
[1 reply] : i dont understand what u want to do..but what can i see is..u use func... (by EAStudent)
by beaudy
Standard Deviation with Arrays
 
I have a problem with this C++ program. It is to computer the standard deviation of the ten numbers that the user enters. Here is the program: #include <...
[6 replies] Last: #include <iostream> #include <cmath> using namespace std; double ... (by EAStudent)
graphs
 
How can i find the shortest path between node a and b? Just a short description will do, there's no need to write code. Just to explain a little how it would wo...
[3 replies] Last: http://www.policyalmanac.org/games/aStarTutorial.htm an excellent be... (by PeteyPii)
Loop inside switch
 
I am making a simple amusement park simulation for a class assignment but am having trouble looping statements inside of a switch. I have tagged my coding below...
[2 replies] Last: The switch is disconnected from its { } block. It needs to be within ... (by kempofighter)
Calling A Function Multiple Times
 
#include <iostream> using namespace std; int count=1; void Test(); int main() { Test(); Test(); Test(); ...
[12 replies] Last: you're welcome. and dont worry about asking, that is what this forum i... (by Mathes)
finding characters in a char variable?
 
how would I search a CHAR variable for a certain series of letters and return the position of these letters, also if possible,how would I then truncate this and...
[2 replies] Last: I restarted VS and it now works fine, I thought it should do, but it k... (by omgBUNNY)
C++ email and name
 
Can someone please tell me how to write a program in visual studio to display my name and email? I'm brand new and lost
[4 replies] Last: @dynamic cast, i think you are trying to show that you are grandma stu... (by Jesuss)
creating a password for some text
 
Hi, I am new to C++, this is my first post, bla bla bla...(you've probably seen this for hundreds of times :D) I am experimentng with some program. I want to ...
[2 replies] Last: hahahah! what problem are you having? (by yasallam)
by gcr114
selecting minimum with negative numbers
 
I had to create a program which selects and outputs the lowest of three user input numbers using a funcation. It HAS to be in a function: #include <iostr...
[4 replies] Last: I suggest reading some other threads. You'll be better off testing tw... (by kempofighter)
by DBarzo
Notify on destruction
 
Hi, I have a singleton factory object 'Manager' that create objects used by the 'user' which can destroy them. Is there a way the 'Manager' will be notifyed w...
[3 replies] Last: Hi Mathes, yes, in the beginning I thought to use the same pattern,... (by DBarzo)
March 2010 Pages: 1... 34567... 34
  Archived months: [feb2010] [apr2010]

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