Beginners (Page 87)

Problem with getline function
 
When I run the main file below, the getline function copies into input_string variable a weird chara...
[2 replies] Last: infixFile.txt created on Windows machine and you are trying to run ti... (by DyslexicChciken)
Constructors help.
 
I know how to build a constructor, but I don't know when to utilize it. The entire concept for me is...
[4 replies] Last: Thanks everyone! Especially to you, xxgixx, my main purpose of learni... (by Wulfinite)
Array function calling
 
For some odd reason, my last function to find the index variable with the largest number is not work...
[4 replies] Last: int firstElement = find_count(arr, 10, arr ); int secondElement = fi... (by mzzz)
by bhalo
size of delete[]
 
int *ptr = new int ; for(...) // this loop does not know the size of ptr but, delete ptr; wit...
[4 replies] Last: it seams there is a table that saves the size of the block allocated ... (by mzzz)
Having troubles finding the logic behind questions!
 
I started learning C++ 3 weeks ago in my Uni class and I have a very dismissive Prof who would insul...
[1 reply] : int result=1; for(int i=2; i<=10; i+=2) { result = result * i ; }... (by anup30)
by davez
c++ -> Java
 
Hey guys any java programmers here? I am trying to study java and I need some list of reference any ...
[2 replies] Last: thank you dude... you da real mvp :D (by davez)
by vxk
extract numbers from a character string
 
I am trying to extract numbers from a character string like the one below one by one .The only thin...
[2 replies] Last: thanks ! (by vxk)
Arrays within functions assignment
 
For some odd reason, my last function to find the index variable with the largest number is not work...
[1 reply] : You should do that in two separate steps: 1. Find the max value. 2. fi... (by keskiverto)
Static variable help and explanation
 
I have this assignment for my C++ class. It asks to use a static variable. I don't have the book wit...
[1 reply] : Your link is broken for me I assume that you need plain static variab... (by MiiNiPaa)
using the cctype
 
Hello guys. I was asked to write a programme which involves using the toupper() and tolower() functi...
[2 replies] Last: oh!! that seems to solve my problem. thank you peter87 (by Misbahu)
by dcneo
saving random value from main to a function array
 
so this is what i'm suppose to do but its got me kinda confused, and my program just crashed any hel...
[2 replies] Last: um not sure that really does what i need. thx tho. @JLBorges (by dcneo)
Why can't I declare class objects right after I make the class?
 
The header file below is what I am using for another file, but I'm a little bit confused about why I...
[2 replies] Last: Because your constructor takes an argument. There is no Car() there i... (by mobotus)
Tad confused on constants.
 
I have a text file with a format like this. 3 6 X X X O O O O X X O O O X X X X X X The first two...
[4 replies] Last: For it to be constant, the value has to be known at compile time. The... (by Disch)
Help with arrays and functions
 
Hi, I'm new to this and am supposed to write a program that will grade a test with a percent grade w...
[4 replies] Last: If you have 15 questions then your loop would count to 15 not 10? Rem... (by kemort)
Reading data from .txt to a struct vector
 
Hello, first post here, but frequenter of the forum... I need to open a file that has 3 pieces of...
[7 replies] Last: Protip: Put indented raw text (such as your assignments) in [ output]... (by Crazyglue)
by iluv41
control may reach end of non void function
 
I am getting the error control may reach end of non void function, but i cannot figure out why. This...
[2 replies] Last: i still get that error after removing both else ifs. I dont understa... (by iluv41)
I/O question
 
Ok simple question I hope. I read your tutorial on I/O streams and just had a couple questions betwe...
[4 replies] Last: I guess what I am cunfused on is how they both return false. do they j... (by smokebaca)
not printing out a few statements for the output
 
i want the output be like: 5 total 3 invalid 2 valid at the end but it doesnt print the inva...
[11 replies] Last: By the way if (x < 0 || x > 300) { cout << "The group is ... (by giblit)
circular shift
 
I'm trying to write a function that will shift letters in a string a given number of spaces to the l...
[1 reply] : offset = x % stringSize Then if you are shifting left you would take ... (by giblit)
trying to shuffle a string
 
I'm trying to write a program that will randomly shuffle a string input by the user. At the moment i...
[13 replies] Last: Thank you. I got'er working. (by dunnDolphin)
Pages: 1... 8586878889... 107
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.