Beginners - April 2016 (Page 32)

by teok
Read from file specific words/strings.
 
Hello, Im trying to write a program that lists only the users names which are stored inside a text file and also displays the numbers of users in it. The form...
[1 reply] : You can read the input one chunk at a time. So read everything, and ju... (by Moschops)
Please explain recursive function
 
I understand the concept of recursion, and have written a couple simple recursive functions. I've come across one however, that seems to have challenged what I ...
[4 replies] Last: Thank you both! That really helps. I thought I understood before, bu... (by mgoodall)
Problem with Linked Lists - values passing/insertion
 
Task is to put Linked List 'l1' content into Linked List 'l2' at any position. For instance, l1 list: 1->2->3 l2 list: 4->5 I want to insert l2 values aft...
[4 replies] Last: I keep forgetting you're passing a pointer to L2. This code should be ... (by closed account D80DSL3A)
Presentation heading.
 
Good morning to everybody. I'm new here. I'd like to present me first than post anything. I'm an university student of Psychology at Padua university (Ita...
[no replies]
Find what data type typename is
 
So I want to create a priority_vector class which is like priority_queue for vectors, but, in order to sort strings, I would need to do it differently than I wo...
[2 replies] Last: Thanks, it worked. (by jgg2002)
Trouble with infinite loop
 
Can someone help me fix my infinite loop #include <iostream> using namespace std; cin>> MM_Choice; //do //{ switch (MM_Choice) { cas...
[3 replies] Last: Chervil Thank you that worked. (by Batman93)
Pointer Issue
 
Hey guys beginner here. Error is "left of '->next' '->ID' and '->name' must point to class/struct/union/generic type". Also Visual Studio is telling me 'express...
[1 reply] : Error is "left of '->next' '->ID' and '->name' must point to class/s... (by integralfx)
Friend Classes
 
I can't figure out what I'm doing wrong. It says I put too few arguments but I did the same thing for the add, subtract, multiply, and divide functions and the...
[2 replies] Last: Thank you. But what does the & do and is it possible to do it without... (by joshuatz)
undesired output 2-dimensional array
 
11
[1 reply] : On line 68 you wrote && graph && , but that should have been && gr... (by helios)
by BdQ
[Error] no '' member function declared in class ''
 
I've been stuck on this problem for a while. The program compiles if I remove the definition of VideoTape::ComparedTo from VideoTape.cpp. Error is: 230 7...
[4 replies] Last: In your VideoTape.h, line 73: RelationType VideoTape::ComparedTo( /*... (by xismn)
by wolfv
One unique static variable for each class, in otherwise identical classes
 
There are several classes that are identical, except for one static variable which must be unique for each class. What is the C++ syntax to set that up? The fo...
[10 replies] Last: If there are many states, and most of them are DefaultConstructible ,... (by JLBorges)
Class that handles String implementation
 
I get the following errors: IntelliSense: no operator "==" matches these operand types are: const String1030 == String1030 error C2676: binary '==' : 'c...
[no replies]
How to label arrays
 
Hey guys, i have a question about labeling arrays. So my assignment is to create an array, and its size is determined by the user. The array has a maximum of 10...
[2 replies] Last: Someone told me that i could make it into a loop, and represent the nu... (by ZackTheBlack)
Is it best to master a language, or to just be proficient in several languages?
 
I'm just now finishing up my data structures class, and I'm stuck with two options. 1. Continue to study C++, or 2. Learn new languages, such as Java or C#. so ...
[2 replies] Last: I've been able to find job opportunities for a few years with a strong... (by binary10essee)
Delete
 
Delete
[2 replies] Last: To give you an idea: #include <iostream> #include <random> #include ... (by chicofeo)
I cannot seem to find the formula for this problem.
 
So we are supposed to convert 453456 seconds into years, days, hours, minutes, and seconds. However, I cannot seem to get past years. Here is what I have ...
[2 replies] Last: I ran into another issue... years = secDis/ yearsSec; secRemA =... (by monrelle)
HELPPPPPP
 
When i compile this happenes can anyone help Enter the lines of poetry you want 8 A gawl-dern old junk and sheriff drink trash hy is it umm jail-foodpâ–’...
[no replies]
by Kedi
using the srand function
 
I am using Code:blocks 10.05 to compile my programs. I cannot seem to understand why code blocks does not recognizes the srand function. Look at the program abo...
[9 replies] Last: Yes jgg2002. Thanks (by Kedi)
read file into a array
 
I have file that has number and words and all ends with a -1 how would i go about putting it into an array for example; so in the file.dat i have something l...
[1 reply] : There is no something like in programming. What is the exact format... (by keskiverto)
Program not counting numbers right
 
The program asks you to enter random numbers, then it will output the numbers from greatest to least, along with the number of each. For example if you input "1...
[1 reply] : I took your code and added some "print array" for debugging. (The "RNG... (by keskiverto)
April 2016 Pages: 1... 3031323334... 43
  Archived months: [mar2016] [may2016]

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