General C++ Programming - February 2022

by RicoJ
Is this a name collision?
 
I was testing template specialization and below is fine template<typename T> void is_voi(T input){...
[15 replies] Last: Putting it into a header file, though, is a step too far ;) Yet that... (by deleted account xyzzy)
How to have input parameters like std::vector
 
What I am aiming to do is to have parameters for a function be similar to std::vector where you choo...
[6 replies] Last: Point well made, Peter87. Weird, I typed class template originally,... (by deleted account xyzzy)
Can anyone please translate this java code into c++?
 
working java code: /* package whatever; // don't place package name! */ import java.util.*; i...
[7 replies] Last: translating is almost always a failure. - if the code is really small... (by jonnin)
C++: how create a HBITMAP with a pixels pointer?
 
see how i create the HBITMAP after load the image using GDIPlus: void FromFile(string strFile) ...
[13 replies] Last: "I think the alpha value should be the first value in the struct." hon... (by Cambalinho)
by frek
Multi-threading performance influence in effect (1,2)
 
I've just currently been to multi-threading and kept myself revolving around it to learn and get thr...
[29 replies] Last: as well as, I'm rather confused about: first_val += N_PER_THR... (by frek)
Question at your disposal
 
Good evening friends I want to start programming a computer game in the first person Where should ...
[15 replies] Last: Godot is a very friendly game engine that exports to just about everyt... (by Duthomhas)
What's wrong with my code?
 
The objective of this program is to ask the user for the name of a data file. If the file does not o...
[6 replies] Last: Perhaps (not tried): #include <iostream> #include <iomanip> #includ... (by seeplus)
Converting bases
 
Hello, I am currently unsure on how to convert a binary base to a quantenary base. Here is a functio...
[2 replies] Last: Yours is a conversion from any positive number, not any decimal number... (by mbozzi)
by frek
Converting method
 
If we've got a vector of hex chars, how do we print the actual English characters? I wrote this: ...
[10 replies] Last: Yes, exactly. Honestly I found it a little after posting the question ... (by frek)
MS Visual Studio Project hidden folder
 
I found a hidden folder in my project folder called .vs I removed it from my project folder and my ...
[4 replies] Last: The .pdb files are actually the 'database' for debugging and edit/cont... (by jonnin)
Making a vector of type class? (1,2)
 
Hey guys, I am having quite a bit of trouble making a vector of objects (specifically with using ...
[37 replies] Last: Have no fear! My time spent has been for self interest to see if the F... (by againtry)
2D array to include multiple elements per index
 
I need a 2d matrix that points to 2 values from every row and column index. For every mat(index x,in...
[10 replies] Last: What is the significance of OpenCV in this thread, BTW? It stores thi... (by technologist)
Help with C++ GPS Program
 
I have this code for reading a GPS file. It's running, but the output isn't correct. I really need h...
[8 replies] Last: #include <iostream> #include <iomanip> #include <fstream> #include <s... (by lastchance)
how can i win speed on SetPixel\GetPixel?
 
heres my image.h: #include <iostream> #include <string> #include <string.h> #include <windows.h...
[12 replies] Last: thmm (590): i have used, but no luck.. i can use DIB's.. i will do ano... (by Cambalinho)
Google Tests with cmake
 
Hi, I have created a basic gtest project, using cmake to compile and test my code. however, i now...
[no replies]
by SSDEEZ
Linked List insert
 
I'm trying to make an insert function for a linked list. It needs to insert at the end of the lis...
[2 replies] Last: If you need to insert at the end of a list, then it's common to also h... (by seeplus)
coding a 2D array rolling algorithm using WASD keyboard control
 
I want the program to initialize the 6x24 array with the pattern and display a static image on the c...
[1 reply] : Also here on your other thread. https://www.cplusplus.com/forum/beginn... (by salem c)
Beginners program - college
 
#include<iostream> #include<iomanip> #include<conio.h> class flag { int n, freq, i, a , ele...
[2 replies] Last: #include <iostream> #include <algorithm> constexpr size_t MaxArr {1... (by seeplus)
Calling Perl Methods/API from CPP
 
Problem : Create a single object of the perl(Moose) class defined below. Don't create the object mor...
[1 reply] : Are you ASKING how to call Perl methods from C++ code? Copy-'n'pastin... (by deleted account xyzzy)
reading CSV file into Array
 
Good Day All Been programming in C now learning C++.Can any body advise me to scan a CSV file with "...
[3 replies] Last: Do you know how to open a file, test to see it was successfully open, ... (by deleted account xyzzy)
February 2022 Pages: 123... 5
  Archived months: [jan2022] [mar2022]

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