Beginners - November 2015 (Page 40)

Cant read in multiple files and store into struct?
 
Not sure what's going on here, but I'm trying to read in data from multiple files and then store the...
[2 replies] Last: Of course, its the counter! Thank you sir. :) @coder777 (by Outlaw782)
opening a file
 
Hi all, I'm trying to open up a .txt file. The file is in the same folder(directory) as my .cpp, and...
[5 replies] Last: Note: It is more common to use while (!kyle.eof()) {}. Actually usin... (by jlb)
error with simple function
 
So I'm trying to use a function display , and assign 3 numbers to its 3 parameters. Then in my mai...
[3 replies] Last: I can see no problems with the declaration in line 5. Function's para... (by Kevin C)
Overloaded + operator - adding int to an object?
 
Below is a program that tests several overloaded operators. The comments are not mine, but added in ...
[4 replies] Last: @JLBorges: Absolutely beautiful! Thank you for making it is easy to f... (by Arslan7041)
by Suar
Help with c-string
 
Given the following: char s1 = "Albuquerque"; char s2 = "Reno"; char ds ; 1- Write the cod...
[2 replies] Last: Dear Suar, You should at least try a bit by yourself and let us know ... (by malik52)
by ottob
Recursions
 
Hi all, I am creating a program that uses recursion functions to count the vowels in a sentence and ...
[2 replies] Last: Your code looks far to complicated for such a simple task. Is recursi... (by Thomas1965)
Calculate Euclidean Distance Between Two Points
 
Can anyone tell me what is going wrong in my code? When I run it, the console shows nothing. All hel...
[5 replies] Last: Maybe a final cout << endl; does the job? (by tcs)
File encryption error?
 
I can't seem to detect the txt file I want to encrypt using this code. Anything wrong here? #i...
[1 reply] : Try making a small program using the samples in this tutorial to read ... (by closed account 48T7M4Gy)
Searching Program help!
 
I don't know why I can't find any people's name! It always says player not found. Help please!! ...
[10 replies] Last: It's OK super, it's not your fault, your comment is appreciated though... (by closed account 48T7M4Gy)
by ottob
Error with lambda
 
When I run my program on cpp.sh it runs great, but when I run it on secure shell, I am getting error...
[4 replies] Last: As stated before use a regular function. #include <iostream> #includ... (by Yanson)
trouble with functions
 
Hello This is my assignment. Write a program that asks for a name and 3 grades from 4 students. It s...
[3 replies] Last: line 38 getline (cin, studentName) will fix your student name proble... (by ShiftLeft)
by Dr50
Code isn't working.
 
I've been trying to figure out why this isn't working. I don't have access to the question, but hope...
[8 replies] Last: All lines at left margin is usually a sign that code was snagged from... (by closed account 48T7M4Gy)
passing the value of a pointer to a regular variable
 
I have the following code snippet: int main (){ int tmp = 5; int *myPtr = &tmp; //...
[4 replies] Last: Very Enlightening. Thanks! (by sheva29)
Identifier Undefined Issue
 
I'm new to C++ and am having issues regarding the last couple of lines, identifier 'ConsumerData' &'...
[2 replies] Last: Thank you!! I was putting them in <> which I deleted because it only c... (by rdotto1)
getline doesnt block the program
 
why is cin.getline doesnt block the program. a c++ problem again so i have this 2 snippets: first:...
[8 replies] Last: This is only a problem when you have a statement such as std::cin >> ... (by Yanson)
Opening a file
 
Hi all, I'm trying to open a file to write to. However, I'm getting an error, that is, std::ifstrea...
[3 replies] Last: Glad I could help. I make little mistakes like that all the time. (by JayhawkZombie)
How to remove duplicate values in c++
 
Sorry I am new to all of this, I want to remove duplicate values from "apsk". if it's needed I'll l...
[4 replies] Last: One way to do it: http://ideone.com/emiKCU Note that it will require a... (by cire)
by joe88
Help!
 
Hi Can you help with this exercice. (I'm not allowed to modify neither the begining or the end of th...
[1 reply] : This is not a free homework site. Please, be specific about the proble... (by chicofeo)
Can't store char array to node value
 
I have this bit of code, but it's failing. The error is something like "Access violation writing loc...
[2 replies] Last: edit: okay figure it out. The node was null which is why it wasn't wor... (by jjwooyoung)
November 2015 Pages: 1... 3839404142... 53
  Archived months: [oct2015] [dec2015]

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