Beginners - September 2019 (Page 9)

sorting descending in a map of map
 
hi i have a map in the below map of map, with sorting in descending, but the mMap1.insert(pair<string,map<string,string>>("SC-20", m1)) is showing error. ...
[2 replies] Last: Hi Thank you very much, i am such a dumb. (by litusahoo)
by Bopaki
I am getting an error in the function empty()
 
I am not sure as to why I get an error in line 36 because it is defined like that in the book? Compiler: Default compiler Executing g++.exe... g++....
[2 replies] Last: Your linkedList class doesn't (at the moment) have a member called fi... (by lastchance)
by Bopaki
My list does not print out the info
 
Here is my list program: #include<iostream> #include<list> using namespace std; struct nodeType { int info; nodeType *link; }; cla...
[6 replies] Last: Thanks lastchance I corrected those errors, and now my program runs fi... (by Bopaki)
Assistance writing to a file and removing zeros
 
Hello all, I have this code I've been working on today and I'm stuck. I'm asking for help with, how to write this code to a file while using the 6 inputs I have...
[7 replies] Last: int num_twenties; // <-- the semi-colon should NOT be here! {... (by deleted account xyzzy)
C++ HW Error
 
Almost done with my a program I have to do. The only thing stopping me is one error. It says: Use of undeclared identifier "insertlist" It is in my readem fu...
[1 reply] : Declare insertlist before you try to use it. And pay attention to t... (by JLBorges)
Need help with HW for my C++ class.
 
I ran into a wall and want to see what I'm doing wrong. I'm trying to do the last part and find the number with the largest amount of divisors. #in...
[8 replies] Last: Salem, I will do so, sorry about that. I guess I need to find the righ... (by mivasquez386)
Java Programming Question
 
Working on a hw assignment and I am getting this following error. Please help me understand what is occurring. Thank you! Sandwich.java:5: error: illegal sta...
[4 replies] Last: from your error message public String MainIngredient; from your code... (by ne555)
help printing garbage
 
I'm pretty sure my program is almost completely done, i've worked around this problem as long as i can. When i build it builds, when i print though it just pri...
[2 replies] Last: > When i build it builds ¿does it build without warnings? > left onl... (by ne555)
by coco28
Random Data Into Txt File
 
When I open the txt file, only one of the numbers is being recorded...but when I remove my file data...the 100 random numbers generate as meant to. I am try...
[11 replies] Last: Learning should be fun, and so should teaching. When I create a code e... (by deleted account xyzzy)
Is this code wrong?
 
So here is the code coming from the array tutorial here in this site i try to copy paste it to try and see the output apparently it looks like its broken ....
[5 replies] Last: Code::Blocks 17.12, and the code works just fine as Ganado mentioned. (by deleted account xyzzy)
bubble sort of full names using operators
 
I cannot for the life of me figure out how to make these names sort correctly. Is my problem in my operator class, or am I just messing up the main function so...
[5 replies] Last: bool person::operator>(const person &a) { person x = *this; if (... (by tipsy103)
may pinoy ba dito?
 
may pinoy ba dito?
[no replies]
Finding Vowels in a String Array
 
I have to write a function that will take in a string array and will then return the first vowel found, if none return -1. I wanted to make sure the actual code...
[4 replies] Last: I was just doing something like this a few days ago, I created a funct... (by orcusb)
Population function
 
The following is my HW problem for my c++ class. I have to create a function , and just the function for it, but obviously to test its effectiveness I'm writing...
[6 replies] Last: I suspect your online submission site is using exactly 365 days in a y... (by lastchance)
Increment and Decrement
 
difference between this x++ and ++x x-- and --x
[14 replies] Last: Keighhhh (by CoolAvocado)
printing first input out fail - C program language
 
please put three integers: 10 5 100 // this is the input : 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 ...
[2 replies] Last: thank @salem I appreciate your help been stuck this problem for 2 hour... (by deathzine)
stuck from printing the correct output
 
the input: 1 5 the output:1 2 3 4 5 6 the input :10 10 the output:10 11 12 13 14 15 16 17 18 19 20 I been stuck doing this for 5 hours now and I really no clue...
[5 replies] Last: it really helps a lot @andy and I will keep the variable as the descri... (by deathzine)
Read in file with Linked List
 
Hi. I'm having trouble being able to read in my input data to my code from a file. I have it organized: last, first id. I need to be able to later output it: id...
[13 replies] Last: fin is the associated file stream, so std::ifstream fin; fin.open("fi... (by highwayman)
by xcxave
Average Score and Letter Grade
 
Hi I am new to coding and I am having a difficult time with my code. My code probably is hard to read due to the lack of comments and spacing but I would really...
[9 replies] Last: Hello xcxave, You are welcome. Any time. Andy (by Handy Andy)
How do you go about reading Notepad++ source code?
 
Notepad++ is open-source: https://github.com/notepad-plus-plus/notepad-plus-plus and I'd like to read the source code to understand how it was written (and ho...
[1 reply] : I don't think this is the optimal answer, but if you're dealing with a... (by Ganado)
September 2019 Pages: 1... 7891011... 13
  Archived months: [aug2019] [oct2019]

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