Beginners - November 2011 (Page 42)

by kato
Permutations
 
Hello, Am trying to come with a simple program that can permutate an array. For example if: string array = {"Hello", "World"}; The program would produ...
[1 reply] : Think about what you have to do here; think about the number of words ... (by Ben Duncan)
Error Message Matching Opperands
 
I have the following code but have the error message "no operator "=" matches these opperands in a few places and do not know how to fix it. #include <ios...
[no replies]
by ivlatt
Class definition issue
 
Hi all, I was hoping someone could help. I have an issue with defining some classes in an application I am developing. The classes hold a hierarchy and the ch...
[3 replies] Last: The issue was with the constructor, feel like I'm back to square 1 (by ivlatt)
Use changing variable name
 
Hello, I am trying to program a binary tree with some nodes. First, I determine the number of nodes (which is 15 if you have 3 objects). For the nodes, I hav...
[3 replies] Last: Solved, I have made an array so I can use the array-number to identify... (by Thierry)
pointers and functions
 
as of right now this code will compile.. #include <iostream> #include <string> using namespace std; void DealDamage(int *EnemyHpPointer, int damage, ...
[6 replies] Last: Function pointers; imagine that you didn't know at the time of compili... (by Moschops)
Problem with inheritance
 
I don't understand what's going on here, it seems like there is an easy solution but I can't figure it out. #ifndef A_H #define A_H class A { public: ...
[4 replies] Last: ^ Secont step makes sense. First step is pointless. You provide acces... (by ne555)
pointers
 
Trying to get a grip on pointers. Not exactly going to well. I'm not sure how to use them properly. I've read & is address of, and * is to point to a value, or ...
[12 replies] Last: No worries. It's worth playing around with that code above, though. So... (by Moschops)
by joeyg
plzzz help tell what's wrong with my program the value of x is not performed
 
#include <iostream> using namespace std; void main() { float height, weight, age, x; char gender; cout << "Enter your gender (F or M): "; do ...
[1 reply] : You are having a void main function! How old is your compiler and do... (by eypros)
by hbjgd
Infinite Loop
 
the while loop I have that starts on line 48 is an infinite loop. The Input data is: A www.barkingmad.org 010.023.111.202 A www.toadstools.org 111.162....
[4 replies] Last: If you do take Warnis route, I would read the command as a string. If ... (by andywestken)
Priority help
 
i have to create a scenario of 5 readers and 3 writers trying to access the critical section. The conditions of readers and writers is that there can only be 3...
[1 reply] : That's really complicated. What's a P ? Why haven't you usied array... (by kbw)
Error in switch
 
I have some errors in my code. I've taken out the classes and namespaces that I was using, because I don't really have a need for them. Don't mind me newbie tin...
[8 replies] Last: I went ahead and changed the code a bit, but I'm but I'm still facing ... (by InterFiction)
Including two classese in each other
 
Dear All Hi I have two classes A and B. Each class uses the other class in its functions. So I have to include class A in B.h and vice verse. ==========...
[1 reply] : You may want to read http://cplusplus.com/articles/Gw6AC542/ In short... (by hamsterman)
Find odd Integer....
 
write a program to calculate product of odd integers from 1-15? How could i solve this?Any one has any hint?How to solve it with FOR LOOP?
[1 reply] : You could have the for loop increment from 1 to 15. For each index, yo... (by shacktar)
Whats wrong with this?
 
I need to print my counters in the main program and not in the function but I cant figure out why I the main program prints 0's and when I test it in the functi...
[3 replies] Last: Thank you! Got it! (by Cosimo Vilardo)
by Eyad
Problem!!
 
Here is the problem Write a program that prompts the user for a positive integer n = didi-1...d1 and then displays in one column each of the digits in the ...
[11 replies] Last: @Eyad So, you got it working eh! And have you figured out the next pro... (by Pravesh Koirala)
by hbjgd
Runtime Error
 
My code will execute but when I enter the file to be used it gives me a runtime error that says this: This Application has requested the Runtime to terminate i...
[1 reply] : bump (by hbjgd)
by vizion
I/O not outputting all lines of text
 
I am new to C++ and am having issues with a class assignment. The assignment is to take an input file and have the program compute the new wages based of the in...
[4 replies] Last: Thanks mzimmers and William. It works now. My issue with everything wa... (by vizion)
cutting for loops short
 
hi How do you break out of a for loop if you were to meet the condition you wanted before if was over? would you have to use the break operator like ...
[4 replies] Last: yes^^ or make your statements increment i to meet the condition (by iFailed)
by SephX
GUI problem
 
Hello, I wonder if anyone could help me with this problem, i'm barely starting to program using GUI's and I'm kinda stuck. I am working on this program were i ...
[no replies]
Unable to pass in pointer to function
 
Hi I recently wrote this function for creating an array by passing in a pointer . whoever it does not work when i pass in 2 different pointers. Is there someth...
[no replies]
November 2011 Pages: 1... 4041424344... 65
  Archived months: [oct2011] [dec2011]

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