Beginners - October 2019 (Page 2)

last pair in my input file printing twice.
 
I have made a program that overloads operators effecting rational numbers including input and output...
[4 replies] Last: The first read will either read something or set the "eof" bit. What... (by jlb)
create my own main function
 
I would like to understand how the main function works with argument argc and argv. So I try and cr...
[4 replies] Last: #include <iostream> using namespace std; namespace myspace { int... (by lastchance)
by Bopaki
In orderedArrayListType missing template error occurs
 
Now why am I getting this error on EARTH: C:\Dev-Cpp\Chapter9\orderedArrayListType.cpp: In membe...
[1 reply] : Sorted out eventually!!!! Here are the results: C:\Dev-Cpp\Chapter9>... (by Bopaki)
by Bopaki
error: expected primary-expression before '[' token
 
I am getting this error in this function: C:\Dev-Cpp\Chapter9\newOrderedArrayListType.cpp: In me...
[3 replies] Last: I got it working eventually!!!! Here is the correct output: C:\Dev-C... (by Bopaki)
by Bopaki
My program does not sort the lelements:
 
Here is what I get: C:\Dev-Cpp\Chapter9>newarraylisttype Line 8: Enter numbers ending with -999...
[5 replies] Last: I got it working eventually!!!! Here is the correct output: C:\Dev-C... (by Bopaki)
Segmentation fault (core dumped)
 
I am writing a program where the a txt file of names is passed into two arrays, then the user types ...
[15 replies] Last: Something else occurred to me, after looking at the text file petrjose... (by Furry Guy)
it is said you learn C++ mainly by practicing it, but tutorials provide no practice
 
I asked for complete tutorials for c++ and i got recommended this site: https://www.learncpp.com/ ...
[9 replies] Last: > So i will try stroustrup book, where are exercises Yes, yes. Do the... (by JLBorges)
reading txt into two arrays
 
I have a project where I am supposed to take this file http://www.d.umn.edu/~jallert/cs1/projects/ba...
[3 replies] Last: Are you able to write code to open a file and read data from it? If t... (by Furry Guy)
C++ Race Car Homework Problem
 
Good Afternoon All, I'm working on a homework problem for my intro to C++ class in college and I'...
[2 replies] Last: Thanks, that's pretty much what I was attempting to do but I wasn't su... (by mtduski)
no viable conversion from returned value of type bankAccount to function return type int
 
Hi, I'm getting this error: no viable conversion from returned value of type bankAccount to funct...
[1 reply] : [quote=znewsome]What am I doing wrong? (1) Trying to compare (using ... (by lastchance)
Cannot Open Text File in Windows and Visual Studio
 
I am having trouble successfully opening a text file located in the same directory as the program in...
[3 replies] Last: The working directory can be different depending on whether you are ru... (by Furry Guy)
The Bank Queue Problem (1,2)
 
Looking for advice. This simulation has 4 header files and one main. I need two int arrays to save s...
[20 replies] Last: //Phase II Testing Program #include <iostream> #include <iomanip> #i... (by mdh1559)
Library project
 
hello everyone. I was making a project for college library management system with C++(using file han...
[2 replies] Last: It is an jonnin said. It's probably much easier for you to just read e... (by fiji885)
Static cast assignment help
 
Hello everyone, I was assigned a homework assignment where I have to calculate the weighted average...
[6 replies] Last: Part 3. // ********** Used for testing. Can be removed later. ****... (by Handy Andy)
Need help with CODEBLOCKS
 
Hi, I am facing a problem during program run time i.e. the code compiles successfully without any e...
[3 replies] Last: Error codes mean things. What code are you getting exactly? (by Computergeek01)
using functions
 
I am learning about using functions in programs and Im not sure how wrong/right I am for this progra...
[2 replies] Last: First, is the compiler happy? In function 'int main()': 21:22: error... (by keskiverto)
by xoox
Column Wise Descending sort Matrix C++
 
Im arranging a descending column wise on a matrix im close but the last part of the loop is sendin...
[8 replies] Last: it's solved! thanks man life saver :) (by xoox)
Arrow head patterns using while loop
 
this is my coding. I m just stuck when I make the upArrow head patterns using while loops. But i don...
[1 reply] : [quote=hein harry thu]Any tips please Just LOOK at the result of you... (by lastchance)
Convert double to integer without function
 
Hello, Can I convert double to integer without function? e,g. 0.75 to 75 or 12.9064 to 129064 I ...
[2 replies] Last: [quote=Shervan360]Can I convert double to integer without function N... (by lastchance)
Please help: The copy constructor for the Queue Class
 
In the Queue Class, I have head and rear pointer for the first and last node in the list. templat...
[7 replies] Last: @JLBorges @keskiverto Thank you soooo much! Even though the logic is d... (by robbinn)
October 2019 Pages: 1234... 18
  Archived months: [sep2019] [nov2019]

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