Beginners - April 2014 (Page 46)

by cozier
Help With Pointers
 
Im working a a program that uses pointers to check if a word is a palindrome or not. I know the code needs to have the pointers go through the array one startin...
[1 reply] : I know the code needs to have the pointers go through the array one s... (by kbw)
Need help in understanding the sequence of event
 
Reference: http://www.cplusplus.com/doc/tutorial/inheritance/ -> What is inherited from the base class? The code below is from the example from the above lin...
[1 reply] : Base class constructors are always called by the derived classes. On ... (by firedraco)
Need another set of eyes
 
Hi, I have been running through c++ online coding classes as fast as I can trying to get myself up to speed but I seem to have run into an issue when I try to ...
[12 replies] Last: Different concepts and approaches. Calling compiler directly is very ... (by keskiverto)
by cfm310
really need help with input file, array program,
 
...
[7 replies] Last: Try printing out the data you read from the file. (by LB)
by Naulee
Debug Assertion Failed
 
Hi guys, I'm replacing 4 letter lower case words with "----" and "|---" for 4 letter words that start with capital letters, my program works except whenever it ...
[3 replies] Last: Thanks fixing the while loop to include my cin>>w under the conditio... (by Naulee)
Distinct Word Counter
 
I have a homework assignment that requires the user to input some strings then the program will count the total words, distinct words, and count of each word. ...
[5 replies] Last: Here's what I have so far. And I've moved stuff around in every way I ... (by tylergarner)
Help my member function return a string.
 
I need to know how to return the right data type for this class. I guessed that I create an array and return a string. I am having trouble with getCardCode(...
[2 replies] Last: I'm not sure what that function is supposed to do? Without looking at ... (by admkrk)
converting 12hr to 24hr with exception handling
 
Okay, it is compiling alright. But when I enter the time, it says that I entered an invalid value, regardless of what number I enter. And it just keeps asking f...
[4 replies] Last: Never mind. I figured it out. I wasn't setting the variables I was pas... (by cphipps)
by rubito
Help with sort timing
 
Write your question here. aCan someone help or point me in the right direction? I'm writing a program that will implement BubbleSort and MergeSort and time t...
[no replies]
Help with nested loop
 
Write a function that will generate the following pattern using nested for loop. + . . . . + + . . . + + + . . + + + + . #include <iostream> usi...
[4 replies] Last: cheers dean much appreciated (by deelfc89)
Random numbers into 2d array
 
hi,i am trying to print a 2d (4*4) array,filling it with random numbers,however when i print, all elements are shown as zero. please help void print() ...
[5 replies] Last: i have managed to figure it out. thanks darqan and seiza (by yusufseedat)
by xvvll
Need help with reading file
 
I need a little help on modifying my code to be able to read a file with bad data and without a terminator in the file. This is the file i need to read: M...
[2 replies] Last: Thanks for the help, had to read what stringstream was since I hadn't ... (by xvvll)
by darqan
My anti-copy part of the script isn't working :(
 
My problem is this... I'm trying to make a sink ships game and that is only in command prompt. Because of me basically having like a month of c++ programming ex...
[2 replies] Last: Hum, how do you mean? :P When I generate the coordinates before the lo... (by darqan)
by dean
Operator overloading - error: too many parameters for this operator function
 
Dear cplusplus forum members, when trying to overload the operator < with a non-member function, I get an error such as 'error: too many parameters for this op...
[4 replies] Last: Easy way to remember where is the scope of relational operators: 2 ar... (by SeiZa)
Using Structures as parameters in Functions
 
I keep getting an error. My compiler says" error:'TopLevel' does not refer to a value." This error occurs on line 49 in the code pasted here. I really don't und...
[2 replies] Last: Thank you so much!!!! The way you wrote that out really helped. It... (by mar0029)
Caesar Cipher with Arrays
 
Hi, I am writing a program that decrypts a file input from the user. The user will have the option of using a caesar or substitution cipher. Right now, I have t...
[3 replies] Last: I'm not sure exactly I could figure it out but would take a little bit... (by giblit)
Bjarne's Programming book questions
 
Alright so everything was going good and i had a decent understanding of everything until i reached ch6 where he introduces tokens. What exactly are tokens?I ha...
[9 replies] Last: alrighty. Gonna stop asking questions and start typing up some code. T... (by darkn3ss)
Reading Input File with mixed format
 
Hello there, I am pretty new to c++. I am trying to read an input file (.txt) with mixed format. However, I have to ignore some lines, such as those lines wi...
[11 replies] Last: Hah never thought of that. Thanks LB (by SeiZa)
Deck of cards
 
I need a function deal_to that removes one card from the deck and places it into a hand. After dealing 5 another boolean function to compare the 5 cards to see ...
[1 reply] : std has shuffle and random_shuffle. You might want to compare them to... (by keskiverto)
Binary Tree -> DeleteItems
 
Hi guys! First of all i have to say that i am new to this forum. I've been learning c++ for few months now and still feel kinda unexperienced in many ways. I h...
[6 replies] Last: You lost/delete your head pointer somewhere :) try to use valgrind or... (by SeiZa)
April 2014 Pages: 1... 4445464748... 67
  Archived months: [mar2014] [may2014]

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