Beginners - May 2019 (Page 3)

by sparki
Not getting the right output
Sorry for the numerous posts I made. As I'm new to C++, I really do need help. Hope you will underst...
[10 replies] Last: hello can you help me? my output for standard derivation is incorrect.... (by aten98)
How to use graphic.h
I need to know a code about graphic.h pls tell me what to do tnx, Anddd my classmate said that i ...
[17 replies] Last: ARgggggggggg i wishhhhhhhhhh i learnnnnnnnnnn lot of stuff btw thanks... (by CoolAvocado)
by hixtus
Union-Find Algorithm (Finding Cycle) Without Using Malloc
Hello! I've been advised that using malloc in a c++ program shouldn't be done. How can I convert ...
[3 replies] Last: That code looks like plain C rather than C++. Step 1 is to understan... (by keskiverto)
by Qikee
How to read from file (const problem)
Hello. today I tried using std::map and std::isalnum and I ran into a problem where I do not know ho...
[2 replies] Last: Thank you very much ! (by Qikee)
Output of char
Why does std::cout automatically convert the char variable I defined into the corresponding int from...
[6 replies] Last: int(test) creates a temporary int, +test promotes a char variable,... (by Furry Guy)
by lutein
Template class Matrix multiplication with operator overloading (Absolute Beginner)
After adding a matrix addition, now I am adding matrix multiplication. But It seems to be far diffi...
[3 replies] Last: @keskiverto, coder777 Thank you for answering the question. my matrix... (by lutein)
by aligh
Error in STL Random Generator program
I'm trying out the random generation facilities of STL. The following code produces a histogram for ...
[4 replies] Last: Thank you so much! (by aligh)
by mpg
Recursion problem with string (1,2)
Can you help me with these two problems with recursion? 1) I have a string : define the dimension 2)...
[23 replies] Last: std::string is an object that stores text, most likely in an array of ... (by keskiverto)
by kenken
Recursion Help
I am trying to write a power function using recursion but having some issues. Any help would be grea...
[4 replies] Last: #include <iostream> #include <cmath> double power( int base, int ex... (by JLBorges)
by sturk
Issue with scale function in class square
I've been trying to implement the void scale function in class square but still did not managed to g...
[4 replies] Last: Playpro10, can you post the text of the assignment. It will help great... (by dhayden)
by broon
Can't seem to ever get the right movement function for 2048
Exactly as title says, can't seem to do it. Here is my code, if you want to try to help. I deleted m...
[3 replies] Last: So... my deleted code wasn't entirely deleted for no reason. I had to ... (by broon)
by aligh
to reference or not to reference in function return type
I have the following class: class Person { public: Person(const string & name, int age): name...
[6 replies] Last: Yes, sure! Your explanation and the code snippet helped me think about... (by aligh)
by lutein
Question about Template class operator overloading (Absolute Beginner)
Here is my source code. It's a simple matrix class I want to implement + operator overloading for ...
[2 replies] Last: Thank you very much!, JLBorges. I will try to understand that code. Th... (by lutein)
add list using pointer
everything is fine, but when I add new node to list, the head and the tail both take that node and r...
[1 reply] : [quote=pnthoai123]everything is fine That's what the watchman on the ... (by lastchance)
by aligh
code compilation error using thread and mutex
I'm trying to learn the basics of threads, mutex and function objects. Here's my test code trying to...
[2 replies] Last: Thank you @Repeater! Works perfectly. (by aligh)
by GSid
Bitwise operations
hi all i am having trouble with a problem which requires me to set a number to the bottom 4 bits ...
[4 replies] Last: combined = (counter << 4) | tL.q; gotta pay attention. Good luck! (by Duthomhas)
by sparki
Compilation error
I am getting a compilation error which I can't resolve on my own. Don't really know what to change r...
[4 replies] Last: when you do `polygon ' you get a PointType `PointType' does not have a... (by ne555)
Valid Operations with Arrays
I'm on the part which shows valid operations with arrays, and this one is confusing me. What is the ...
[10 replies] Last: Ah, the tutorial. (by Duthomhas)
For loop help
So this may be a very dumb question but I want to make that 650.0f go down by 490 everytime it loops...
[5 replies] Last: Ah never mind, I just took the float value = 650.0; out of the loop s... (by zapshe)
by sparki
Class constructor compilation error
I am receiving a compilation error which I am quite vexed about at this point for my polygon constru...
[1 reply] : new Polygon::PointType ; This is an attempt to create an an array ... (by Repeater)
May 2019 Pages: 12345... 16
  Archived months: [apr2019] [jun2019]

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