Beginners - November 2019 (Page 7)

Array and function
 
So the function has to sum up and average the values entered in the array but its just displaying th...
[2 replies] Last: Hello sadshordie, When I gor the program to compile and run I found t... (by Handy Andy)
Can someone explain the arguments when creating a priority_queue?
 
I was learning about priority_queues and didn't understand what the second and third arguments are f...
[5 replies] Last: Like most of the standard library, priority_queue is designed to be ve... (by dhayden)
Error in the Constructors
 
I am working with tries tree and have error in constructor. #include <iostream> #include <vec...
[3 replies] Last: As far as I know, it should not compile fine, since there are several ... (by Enoizat)
by npat7
Displaying a text file
 
Hey guys, im having trouble with this code. Basically i have a text file with employee id numbers an...
[2 replies] Last: Hello npat7, I did not mean to scare you off, but when the first line... (by Handy Andy)
C Programming - Create a Doubly Linked List of Strings
 
Hello, I am trying to create a Doubly Linked List of Strings, and I need to modify the void insert, ...
[1 reply] : Lines 13-20 should be: struct node_t { char *str; ... (by dhayden)
Float variable
 
The output of float variable doesn't give the fraction other decimal place #include<iostream> #...
[5 replies] Last: Thank you Ganado, I appreciate your help (by semsemdiver)
Occurrence of word pairs
 
Sorry, I need to order the occurrences of the pair, what occurrences of the word pair in txt. ma...
[14 replies] Last: A std::map can be ordered ascending or descending. Ascending order i... (by Enoizat)
Suggestions for keyword
 
I wrote a code for print a keyword using conio, any suggestions for improving? void teclado(...
[1 reply] : Hello victorio, First suggestion post code that can be compiled and r... (by Handy Andy)
Question in integer var
 
Why if I did not assign zero for integer variables it may return wrong negative value? #inclu...
[6 replies] Last: > cout<<"factorial of \t<<n<<"="<<endl; The wacky colour scheme that'... (by salem c)
Recursive Program
 
I've been try to get an array of numbers to order them selves with a picked pivot. The numbers great...
[2 replies] Last: Hello Deadweight77, To start with I would move line 42 to between lin... (by Handy Andy)
by CarlTY
Array function not working
 
Compose a capacity named arrayToFile . The capacity ought to acknowledge three contentions: the name...
[1 reply] : PLEASE USE CODE TAGS You could also do with a better translator! "com... (by lastchance)
Getting information from the internet
 
Hello guys. I am a beginner in c++. Yet, I have an assignment to make a chatbot that replies to ques...
[1 reply] : Double posted -> http://www.cplusplus.com/forum/general/265361/ There'... (by salem c)
How does the following code work?
 
I have problem understanding the following code calculating the factorial numbers smaller than a cer...
[2 replies] Last: Thanks a lot. (by jacks9807)
Sum of float and integer and its output
 
Hello :), float f = 0.0111; int i = 1010; float f2 = i + f; cout << f2; // output: 1010....
[7 replies] Last: to a point you can store it as 2 integers, the fraction and the whole ... (by jonnin)
Looking for website for binary tree / algebraic expression
 
Hi I am wondering if anyone knows a website or application that allows you to put in a algebra expre...
[1 reply] : Mathematica can take in an expression and build a tree (lists with emb... (by Ganado)
by ravss2
C to CPP Migration
 
I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ag...
[13 replies] Last: strings are compared slower than integers. So strings will be a hair ... (by jonnin)
std::sort function compile error
 
So, I'm supposed to use different sorting functions and and compare the times in microseconds to eac...
[4 replies] Last: To get it to run, change line 304 to std::sort(array, array+size); ... (by dhayden)
by AL88
expected class-name before ‘{’ token
 
Why am I getting : Player.h:15:1: error: expected class-name before ‘{’ token Enemy.h:9:1:...
[3 replies] Last: No forward declaration. Just #include "Game.h" into the SDLGameObject.... (by coder777)
Declaring structs/classes as private with a class
 
Problem: At various points in working with linked lists, stacks, queues and trees, I have tried to ...
[2 replies] Last: If Node is private to a class, then it will be inaccessible outside th... (by lastchance)
by deputy
2D array histogram
 
I need to print out asterisks for equal amount of value in this programm,but i'm kinda stuck with it...
[3 replies] Last: Thanks :) (by deputy)
November 2019 Pages: 1... 56789... 17
  Archived months: [oct2019] [dec2019]

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