Beginners - April 2010 (Page 2)

String Manipulation
 
The function header looks as follows: void createTwoParts(string senP, string & p1, string & p2) The function receives a string of characters, indicated by ...
[1 reply] : Good luck with your homework. (by imi)
inheritance- using base constructor question
 
Hello, Bellow I have some code. I am trying to use in the child class pointcl the constructor from point. it doesn't work :). ( x is not initialized in the ...
[1 reply] : You declare another variable "x" in the class pointcl. This will hide ... (by imi)
by bekkio
for loop
 
Hello I am horrible in c++ and need help my class is suppose to create a program that prints only even numbers between 2 integers entered from the keyboard my...
[3 replies] Last: @Tamao Please don't do their homework for them... it only serves to... (by packetpirate)
by Morph
Member initializers
 
I'm working from the book "C++ How to Program" . I couldn't get the member initializers and I couldn't find it on the documentation here . Can someone explain i...
[5 replies] Last: 1 // Fig. 10.4: Increment.h 2 // Definition of class Increment. ... (by Morph)
Maze recursion function
 
I can't post code on here I've been informed by my instructor. So I have to try and explain what I need to do. I have a recursive function, it acts on a class t...
[2 replies] Last: I did my own homework thank you, always have, I'm not some kid asking ... (by aerowenn)
by bnd
Parsing data from STDIN
 
Hey, I'm unsure of how to go about this. I'm taking data from stdin, this can either be a comment or a command with a value associated, so for instance I cou...
[1 reply] : Use the string :: find () function. #include <limits> #include <... (by Duthomhas)
Testing a value that may not exist
 
Hello! :) I want to use the arguments of main. For now, I did this : int main(int argc, char **argv) { //get the argmuments std::vector<std::string>...
[7 replies] Last: Ok. I did not know there was a "lucky part" :) Thank you very much ... (by ShinoNoir)
Binary Tree question
 
Construct a B+ tree with branching factor M = 3. Each leaf can contain up to L data items, where L = M. Draw the B+ tree after insertion of 2, 9, 3, 8, 5, and 6...
[no replies]
by nano90
need it quick!!!
 
could you plzz tell me what is wrong with my program ????? now before it becomes 11:oo thanxxx #include <iostream> #include <iomanip> #include <cmath> #i...
[3 replies] Last: this is the updated program i didnt do many corrections beside i had o... (by ARWA)
typedef?
 
WHat is the purpose of Typedef? For instance, I'm trying to create a graph using Boost Graph Library. In the following statement, why should I use typede...
[3 replies] Last: Thanks Immi and Bazzy, Yes, it really helped. (by TheTSPSolver)
Is it Possible to Reverse the Direction of Variables?
 
The title may not have been the best but I'll try to clarify. I'm making a program that converts Base10 (Decimal) to Base2 (Binary) and as you may or may not kn...
[1 reply] : Get the bits in the reverse order. if n & ( 1 << 31 ) is true (non-... (by jsmith)
by Nikoru
problems with Dev C++ (1,2)
 
#include <iostream> using namespace std; int Strength; int main() { cout << "Your adventure starts in a little town called Garkos's Ferry more th...
[26 replies] Last: http://msdn.microsoft.com/en-us/beginner/cc305129.aspx Enjoy. (by packetpirate)
OUTPUT "MUST RETAIN A VALUE"
 
Ok so i am supposed to write a program to calculate someone's height from feet and inches to meters through a programmer defined program. I got the errors down ...
[6 replies] Last: You are misunderstanding return types. The return type specifies wh... (by Disch)
Conditional expression of type 'void' is illegal ???
 
I am getting this errors when i compile this code and do not know how to fix it. errors .... conditional expression of type 'void' is illegal line 271 //sixt...
[5 replies] Last: Thankful for the link (by masterrick)
Input/Output with files problem
 
I am stuck on a problem where I have to replace the sentence from a text file with the reversed version of the sentence. I can make the reversed sentence displa...
[2 replies] Last: Thank you so much. (by ohromeo)
by ALB
Question on linked lists
 
This is the dynamic array version of it need to change it to an linked list please help thanks void write_records(SalesRecordPtr head, int n) // Save recor...
[2 replies] Last: thanks (by ALB)
a question
 
is it possible to display this by for or while... * *** ***** *******
[5 replies] Last: This is undoubtedly the most often asked for problem on the forum. I ... (by moorecm)
by EEVIAC
Allocating and Array with "new"
 
Hi. Could someone show me how to use "new" to allocate an array for the following stucture: Thanks CODE #include <iostream> using namespace std; st...
[7 replies] Last: I did a little more reading... I get it now .... thanks for all help (by EEVIAC)
Linked List sorting lockup
 
What I'm trying to do is sort a number of nodes of a linked list by a double value in the structure. However the program keeps crashing at the end of the sort ...
[no replies]
Issue with Creating a Pointer Array.
 
Doing an Assignment for class. We get a list of 15 ints. Must put these into an array. Then must create a pointer array, that points to it's matching spot in...
[2 replies] Last: Whoops, should have made clearer in the first post. arrSelectSort()... (by OhShift)
April 2010 Pages: 1234... 35
  Archived months: [mar2010] [may2010]

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