Beginners - October 2013 (Page 26)

by Wuten
Imitating binary search trees with array
 
I've been having logic issues with this code; for some reason whenever I reach a leaf on the tree, it skips ahead and the input doesn't come out correctly. I fe...
[1 reply] : Hi there, Unfortunately I'm not immediately able to pinpoint the issu... (by closed account o3hC5Di1)
by k31453
New to OOP !!!
 
i got this in header file in x.h but how do you define that in the class . I don't know How to do that !! By the way I am using c++ !!! bool g...
[14 replies] Last: Hi there, Just as a kindly remark: Please don't use exclamation marks... (by closed account o3hC5Di1)
Argv and Argc
 
Hallo guys I'm having some trouble with a question. The question goes like this: g++ -S fred.c >fred.asm is entered into the command line in windows using the g...
[2 replies] Last: Hi there, [quote=Blindesambok]Since I am new to this forum, is this f... (by closed account o3hC5Di1)
[Pointer and address] Please show me how ....
 
Hey guys. This is a code that can revese a string by word. But i can't know how it take each individual word.As you see, we have 2 pointer head and tail. Tail p...
[4 replies] Last: yeah i got it. Thanks alot coder777 (by littlechick)
by aish96
Infinite Output
 
i have declared the variable str and defined it as follows.. char str; std::cout<<"\n Enter name: "; std::cin>>str; whenever i enter something lik...
[3 replies] Last: thank you :) :D (by aish96)
Functions with Arrays
 
My functions are suppose to set amount of arrays (sizeOfArray), get user input for each array (getInputs), find the smallest of the arrays entered (findSmallest...
[3 replies] Last: I think you have misunderstood your homework. Your functions, on their... (by Catfish4)
min and max for numbers?
 
I have prompted the user to enter in two numbers; however, my programs wants to output the even numbers between those two numbers. Suppose number one is higher ...
[9 replies] Last: Just stick with temporary variables. Sorry that I kind of derailed thi... (by xismn)
Need some much needed help
 
I have some of the code done but can someone show me how to do array and function? This is my assignment Modification 1: You will convert each of your...
[1 reply] : Hi, i don't understand your question and i don' know what this setw()... (by fluppe)
Big problem in reading line
 
Hi ,i have a file his name is (textfile.txt) in this file a 3 sentences which at t he end of every sentence i have the sign(#) , i want when i reach the sign to...
[4 replies] Last: thanks alot (by max v max2)
problem with files
 
i tried to solve this but i have a proplem : the q is : but i have a problem to put every output data in a file , i don't know why plz help me, this is the q: ...
[4 replies] Last: well thanks alot you are amazing (by max v max2)
vector
 
hi, I'm using vector instead of array. [int data ;] is replaced by: [vector <int> data(N);] so, my question is I have to add this line also or not...
[6 replies] Last: > std::vector can have following constructor: > explicit vector (size_... (by JLBorges)
by fluppe
segmentation again ...
 
Hi, i guess it's a simple question ... when my application terminates, i don't need to call the destructor for my object explicitly, or ? That's all......
[10 replies] Last: Hi and thanks a lot so far. @catfish4 : I'm gonna check that in my cod... (by fluppe)
by Vjrrdr
Format double output, 2 decimal positions
 
I need output to be formatted to only contain 2 decimal positions. I will include the output section of my code below: cout << "Subtotal: " << subTot<< e...
[2 replies] Last: That seems to be just what I'm looking for I think, however there's on... (by Vjrrdr)
How to implement this function?
 
/// I have this class ... I could not get any way to implement the isNbrOdd function outside the class body /// Is there a way to do so thanks in advance c...
[7 replies] Last: For me you're talented . To be honest I am still not used to work w... (by closed account 28poGNh0)
by sea711
Pointers
 
I'm trying to get the addresses of d2 and d3, and I know I am off. Then I want to point to the pointers. Any suggestions? 1 #include <iostream> 2 ...
[2 replies] Last: I dont know what are you trying to achieve ,But I think this code will... (by closed account 28poGNh0)
Maximum and Minimum in Arrays (1,2,3)
 
Can anyone tell me how exactly to find the maximum and minimum value within an array, along with the maximum and minimum positive value and negative value? If t...
[42 replies] Last: Closer. Now it's going to update any time the number is less than the... (by GRex2595)
Do while
 
I am trying to make 3*5 rectangle of # using do.....while statements but I am stuck and i can't go further from here. Any help would be appreciated. Thanks a l...
[5 replies] Last: It's easy when you encounter Please enter your design character: ent... (by closed account 28poGNh0)
Expected Unqualified id
 
I cannot figure out why this code will not compile. Xcode displays the error "Expected unqualified-id". The errors are in the very last lines of the code starti...
[2 replies] Last: Thanks, that helps vey much. (by ldelsignore)
Please HELP! Simple Grade Average
 
I've written what I feel like should be accurate code, but I keep getting errors :/ Any help would be greatly appreciated. I'm getting an error message on the f...
[3 replies] Last: Did you fix the if statement syntax? (by Zhuge)
advance problem 03
 
# include <iostream> # include <map> using namespace std; template<class T,class T2> class c_map { map<T,T2> classMap; map<T,T2>::iterator iter; ...
[4 replies] Last: Well That's what I am looking for ,Thanks alot @ne555, you're awsome, ... (by closed account 28poGNh0)
October 2013 Pages: 1... 2425262728... 86
  Archived months: [sep2013] [nov2013]

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