• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
vectors: how create and initializate multidimensional?
 
how we initializate a multidimensional vectors? we can do: vector<int> vec{3,4,5}; but we can't...
[5 replies] Last: yes doug4.. thank you... now i need understand 1 thing: what means the... (by Cambalinho)
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)
Getline not working
 
hey everyone when I use getline with strings, it doesn't work. In my code, I am creating a string ...
[5 replies] Last: while '\n' is the 'new line character' when writing code to output a ... (by jonnin)
matrix and vector multiplication
 
Hi, i am trying to do multiplication of matrix and vector using block_prod( ) boost library in my co...
[8 replies] Last: my advice, take it or leave it, is to consider getting rid of any use ... (by jonnin)
C++ sequences of numbers 1 and 2
 
I want to list all the sequences consisting of the numbers 1 and 2, having the sum of n.
[4 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)
Compile c++ library using node 12+
 
Hi Everyone, I am not a conversant c++ user, however, I have used this library before (https://git...
[4 replies] Last: Thank you for your reply. There is no js calling as yet. I tend to ag... (by rihabesx)
by xunsus
trying to make a pkemon like in c++
 
So i am still learning c++ (by myself) and i thought that making something like this might help me m...
[2 replies] Last: i actually did try this before but it did not workout, this time i man... (by xunsus)
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 Furry Guy)
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 Furry Guy)
switch-case being most efficient
 
In C++, how do I code switch-case the most efficiently by making use of the fittest alignment?
[2 replies] Last: Switch case is prolonged if-else conditions No, it isn't. Chained "i... (by mbozzi)
Can someone explain this pseudocode
 
It was one programming question for a telecom entry-level new grad job. I am just wondering if the v...
[8 replies] Last: To be fair I don't have a CSci degree but engineering instead. Obviou... (by Ganado)
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)
Pages: 123... 14
  Archived months: [sep2019]