General C++ Programming - November 2019 (Page 6)

matrix and vector multiplication
 
Hi, i am trying to do multiplication of matrix and vector using block_prod( ) boost library in my co...
[9 replies] Last: Thank you all for you help, will try manual way. (by kavyaGN)
by Ric
Help with a Card Trick Program
 
Hi,I need help with a Card Trick Program. I need it to print out like this: Jack of Spades 2...
[2 replies] Last: BuildDeck() and PrintDeck() don't use the size parameter. Remove it or... (by dhayden)
by atoken
How to check if char input is a single character
 
So while input is not x I want the program to run a loop. However, if I enter two letters at one tim...
[4 replies] Last: If the user enters some like hey it will output the 'h' and the 'y' o... (by dhayden)
C++ sequences of numbers 1 and 2
 
Is that "don't know how to do it on paper" or "I can do it on paper, just not in code".
[2 replies] Last: #include <iostream> #include <algorithm> #include <string> // print ... (by JLBorges)
by rp140
Vector bug
 
I have this assignment that asks me to separate a program into 5 files. The program runs fine as a w...
[19 replies] Last: Thank you so much Furry Guy!! That worked perfectly. (by rp140)
Problem with std::isnan() in combination with __float128
 
Hello, I am using the GCC compiler's __float128, but I've encountered a problem. I have a class t...
[4 replies] Last: I've decided to choose the easy solution and use mbozzi's method: boo... (by Peter88)
Please help!
 
I am admittedly very new to c++ and am working on a project, with which I am very stuck. ((I artic...
[3 replies] Last: Take the bullet list from the instructions and paste it into your code... (by dhayden)
uniform initialization issues
 
This code: #include <iostream> int main() { unsigned short width { 5 }; unsigned short leng...
[5 replies] Last: It must be that VS2019 is noncompliant. I'd have to say that is an u... (by deleted account xyzzy)
what is wrong with these 'if' combination?
 
else if(index<CodeLine.size()-2 && (CodeLine[index+1].Token!="]" || (CodeLine[index+1].Type!=TokenT...
[12 replies] Last: coder777: you have right... thank you so much (by Cambalinho)
by C O C
Passing string in functions
 
Hello, I am learning about pointers/references. My program is asking user for input(string) and I a...
[5 replies] Last: #include <iostream> #include <string> double get_input(std::string& ... (by deleted account xyzzy)
This make me crazy. Someone please.
 
Question 4: Write a program to find how many students get mark more than average of quizzes of 30...
[13 replies] Last: I got it. Thank you so much. Thanks, sir !! @coder777 (by DARKADVERSARY)
C++ preprocessor should be seen in all unit modules in makefile
 
How to make a C++ preprocessor code to be seen and take effects throughout many separated translatio...
[1 reply] : Do this in a particular header file. #include it whenever you need it. (by coder777)
Background tasks in ASP.NET
 
I am in a situation where I have to run multiple async tasks (like sending emails, processing files ...
[1 reply] : This is not c++ but c#. For this requirement async seems pretty much ... (by coder777)
Problem with arrays and loops
 
i keep getting "exited, segmentation fault" for some reason. the code is supossed to output a random...
[10 replies] Last: G++ will take a ton of 'more or less c++ like' code by default. you h... (by jonnin)
Process cannot atteched
 
Hello.. i wanna attach a process in my program, but process wil run on background,, but my progra...
[3 replies] Last: I made few projects that create a sample target window program, debug ... (by malibor)
Use of Map function
 
Im using the map function to store student information for an assignment. IN my gradebook.cpp I have...
[1 reply] : if studentMap.empty() {...} else {...} (by doug4)
Learning C+ - C++ primer disjointed?
 
May be a good idea to get a second book, in addition to C++ Primer. This is dated (C++98, so does n...
[8 replies] Last: real world spammers use farm more advanced techniques to earn money, s... (by malibor)
Some 'switch - case' not reading value correctly
 
Hello, somehow if I do: switch (j) case 2: case 5: the cases are not corresponding to...
[6 replies] Last: Oh, yeah, construction of objects within a switch-case statement is a ... (by MikeyBoy)
How attach process through PID
 
Hello I want attach process through PID (Process id), For Example: if user enter PID in progr...
[1 reply] : Just because you post twice doesnt mean you'll get more response, in f... (by malibor)
Why does the mutation of STL List containers cause an iterator to be invalidated?
 
Why does mutating an STL container (such as a vector or a stack) cause an iterator to point to junk ...
[6 replies] Last: There are specific rules for which iterators are invalidated by which ... (by dhayden)
November 2019 Pages: 1... 45678
  Archived months: [oct2019] [dec2019]

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