Beginners - July 2018 (Page 16)

by volz
i am very very stuck ! with using socket.io-client-cpp
 
Write your question here. hi all, I am trying to use socket.io-client-cpp and finding myself in over my head when i look a the syntax of the library let ...
[no replies]
by EloyRD
I do not know why my dynamic_cast isn't working...
 
Hello, I'm trying to make an agents-based simulation (Preys vs Hunters) and so far got it running with random "movement". For the simulation, I have a grid of ...
[10 replies] Last: The best thing to do is to create a minimal, compilable codeset that d... (by MikeyBoy)
Graphics include libraries
 
Include directories not working, trying to make a triangle. #include <iostream> #include <Simple_window.h> #include <Graph.h> int main() { using...
[3 replies] Last: Hello Have you tried it only with one point? Does it work with the si... (by davidglines)
Help with an array of member function pointers in a class
 
I'm trying to implement an array of member function pointers in a class. I've googled around, and this is what I've come up with. Its not working and giving me ...
[7 replies] Last: Here is the beginning of it. As I said, its written in Qt (https://www... (by shawnlau)
Function - pass by reference - duplication?
 
The task is to write a function that prints out the const string& that is being called in the main, and then it prompts for two inputs, which will be used later...
[4 replies] Last: And so the "cin" prompt will put the values into the memory location ... (by closed account E0p9LyTq)
identifier is undefined
 
I've been stuck on this one for awhile. Seemingly eliminated all bugs from my code except for this one. the below is declared in my .h publicly void p...
[2 replies] Last: Oh ok, I had thought it was a class member variable but I guess it isn... (by fluffypillowforever)
by jcarbo
Nested classes and accessing nested class functions
 
I"m trying to instantiate an object of a nested class. I have a parent class with simple cout which when created using the new object command works well. I'm ...
[1 reply] : auto nestObject = new hen::nest(); nestObject->display(); ... (by helios)
text to speech on codeblocks
 
i have sapi and all of neccessary libraries..what is need now is a sourcr code for text to speech... describe: just need to say "hello" that's all
[no replies]
cout after cin
 
How to print text immediately after cin, for example if I wrote code like: int x; cout << "Enter your amount of money: "; cin >> x; cout << " dollars"; ...
[4 replies] Last: Using floating-point variables to store money is a bad habit. Just say... (by Ganado)
by CrossG
Caesar Cipher | Optimization and coding tips wanted
 
Hello I have recently begun programming in C++ and would love for someone to help me learn the process of optimizing my code from a beginner level to a more pro...
[3 replies] Last: Use '\n' instead of endl unless you really mean to flush the strea... (by dhayden)
by AL88
Trying to understand operator overloading float ambiguous error
 
Hello I am trying to understand operator overloading and have written my own example. When I try to compile it says the float is ambiguous. What does that mea...
[2 replies] Last: I would think ints.sum(7,8) is ok because int is overloaded. The ... (by Hippogriff)
WHY DATA TYPE INTEGER STORE TEXT
 
#include <iostream> #include <string> using namespace std; int bank(string z) { int y; int money ; for(int x = 0; x <= 2; x++){ ...
[1 reply] : int bank(string z) <------- bank is a function that takes a string. ... (by jonnin)
Can anyone help me to do this Question
 
You are given three integers a, b and . Your task is to construct a binary string s of length n=a+b such that there are exactly a zeroes, exactly b ones and exa...
[13 replies] Last: Indeed. Just make a string of all the zeros, or all the ones, whicheve... (by Repeater)
c++ program for sum with cycle (1,2)
 
An approximation of $ pi $ "$ n $" can be calculated from the sum $ pi_i = sum_ (j = 0) ^ i (-1) ^ j * 4 / (2j + 1) $ 1. Develop a program that takes an integ...
[21 replies] Last: hellyeah, i tried in the shell and it works :-o ... ok ... i'll try to... (by zerbo1000)
Quadratic Equation
 
I get a C4700 with a, b, c uninitialized local variable for Line 16. What am I doing wrong? //Write a program that prompts the user to input the value of a /...
[2 replies] Last: This confuses some beginners. Note that variables in C++ are not reall... (by Ganado)
by Lapalu
qMake.exe for windows 7
 
hello, Believe mr becaus I want to go back to C++ now wth my old PC and my old books afetre 10 years of retirement ; I'm not rich enough to buy a new computer ...
[2 replies] Last: Hello, Thank you for your reply but the latest versions of Qtcreator a... (by Lapalu)
Need Help with my programm
 
Hi i need help wirh my c++ Code, he saied, that m_sqrt is not decleared in the scope and no match for the operator here is the code for that: #include <io...
[14 replies] Last: okay, with anz++ you are right xD i skip that the thing is, that my ... (by kev1190)
Trouble with arrays
 
I'm having some trouble understanding arrays in c++. I'm new to the language and come from a c# background. I'm trying to take an array, containing objects. Th...
[4 replies] Last: Is there a performance impact of using std::vector Very very small. ... (by Repeater)
Bool Flag not breaking out of loop
 
Hello again everyone! I have one more question. I have a function here which is not busting out of the while loop when the flag is set to false. Any point in th...
[8 replies] Last: There is no need to be so critical. He does it because he enjoys it.... (by MikeyBoy)
SAPI + CODEBLOCKS
 
even though i installed libraries it's still ger errors inside sapi.h... #include <cstdlib> #include <iostream> #include <sapi.h> #include <windows.h> #inclu...
[2 replies] Last: I DELETE THE OLD POSTED ALREADY...STILL NOT FIGURE OUT HOW TO SOLVE (by phongvants123)
July 2018 Pages: 1... 14151617
  Archived months: [jun2018] [aug2018]

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