
please wait
by RicoJ
Is this a name collision?
|
I was testing template specialization and below is fine template<typename T> void is_voi(T input){}; template<> void is_voi <char> (char input){}; But thi... |
Feb 28, 2022 at 2:23pm
[15 replies] Last: Putting it into a header file, though, is a step too far ;) Yet that... (by deleted account xyzzy)
|
by AnnoyingB
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 choose the parameters and there is a minimum of 1 parameter. Tha... |
Feb 27, 2022 at 3:59pm
[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.*; import java.lang.*; import java.io.*; class decode { p... |
Feb 27, 2022 at 1:52pm
[7 replies] Last: translating is almost always a failure. - if the code is really small... (by jonnin)
|
by Cambalinho
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) { //clean all objects.. here i must update it, bu... |
Feb 27, 2022 at 1:25pm
[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 through that. A couple questions about the code below: #inclu... |
Feb 27, 2022 at 5:27am
[29 replies] Last: as well as, I'm rather confused about: first_val += N_PER_THR... (by frek)
|
by maortov
Question at your disposal
|
Good evening friends I want to start programming a computer game in the first person Where should I start? Mean me please |
Feb 27, 2022 at 3:03am
[15 replies] Last: Godot is a very friendly game engine that exports to just about everyt... (by Duthomhas)
|
by DeezyM89
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 open, exit the program. This data file contains a list of stu... |
Feb 26, 2022 at 12:22pm
[6 replies] Last: Perhaps (not tried): #include <iostream> #include <iomanip> #includ... (by seeplus)
|
by agirideep
Converting bases
|
Hello, I am currently unsure on how to convert a binary base to a quantenary base. Here is a function I have written for decimal to binary conversions but any h... |
Feb 26, 2022 at 1:27am
[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: #include <iostream> #include <vector> #include <cmath> #incl... |
Feb 24, 2022 at 7:39pm
[10 replies] Last: Yes, exactly. Honestly I found it a little after posting the question ... (by frek)
|
by BJKY0712
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 program worked just as fine as before. So I was wondering w... |
Feb 24, 2022 at 4:10pm
[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 classes). So I was wondering if someone could give me a semi... |
Feb 24, 2022 at 5:38am
[37 replies] Last: Have no fear! My time spent has been for self interest to see if the F... (by againtry)
|
by technologist
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,index y) I want to access age and waist circumference. I consi... |
Feb 23, 2022 at 11:56pm
[10 replies] Last: What is the significance of OpenCV in this thread, BTW? It stores thi... (by technologist)
|
by DeezyM89
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 help with the algorithm for the total distance traveled. the ... |
Feb 23, 2022 at 9:02pm
[8 replies] Last: #include <iostream> #include <iomanip> #include <fstream> #include <s... (by lastchance)
|
by Cambalinho
how can i win speed on SetPixel\GetPixel?
|
heres my image.h: #include <iostream> #include <string> #include <string.h> #include <windows.h> #include <math.h> #include <vector> #include <gdiplus.h... |
Feb 23, 2022 at 8:26pm
[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 want to encorporate an external (build) lib into my project... |
Feb 23, 2022 at 5:09pm
[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 list and not traverse if the head node is the only node in the ... |
Feb 23, 2022 at 10:54am
[2 replies] Last: If you need to insert at the end of a list, then it's common to also h... (by seeplus)
|
by elon dusk
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 console screen upon startup. And the six user control command... |
Feb 23, 2022 at 4:27am
[1 reply] : Also here on your other thread. https://www.cplusplus.com/forum/beginn... (by salem c)
|
by blrvenky
Beginners program - college
|
#include<iostream> #include<iomanip> #include<conio.h> class flag { int n, freq, i, a , ele; public: void read(); void find(); ... |
Feb 22, 2022 at 10:13am
[2 replies] Last: #include <iostream> #include <algorithm> constexpr size_t MaxArr {1... (by seeplus)
|
by lokendras90
Calling Perl Methods/API from CPP
|
Problem : Create a single object of the perl(Moose) class defined below. Don't create the object more than once. Using the object call the three methods with p... |
Feb 22, 2022 at 3:39am
[1 reply] : Are you ASKING how to call Perl methods from C++ code? Copy-'n'pastin... (by deleted account xyzzy)
|
by GerardFunk
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 "EM305","Front Door Entrance Reader","7h30", "16H30","S2010",... |
Feb 21, 2022 at 7:16pm
[3 replies] Last: Do you know how to open a file, test to see it was successfully open, ... (by deleted account xyzzy)
|