General C++ Programming (Page 11)

by volang
Append/concat strings and char arrays
I have a char array(400MB-1GB) and need to have another string(300 chars) appended to the beginning...
[2 replies] Last: Why not keep the 300 bytes where it is? You really shouldn't need to ... (by kbw)
Getting specific amount of values from the line
As title says, I need to get the specific amount of values from the input file’s line. The amount ...
[6 replies] Last: The code that you posted is not an infinite loop, although it's possi... (by yucecoder)
Memory allocation problem
Dear all, I'm studying C++ and now I started implementing a code to solve some numerical methods. I...
[6 replies] Last: Thank you ne555! As I'm a beginner, it would be great to count with y... (by nunesanderson)
function's argument alias for any type
How is the mechanism of a function's argument alias for any type, just like pointer to void function...
[1 reply] : @Ganado gave you a response in the other thread you opened. Why did y... (by doug4)
XOR of permutation of strings
This is a competitive programming question I came across, but couldn't solve. The question gives ...
[2 replies] Last: ^^ you should find a way to directly compute the result (by jonnin)
by volang
How do I store a returned class? (1,2)
auto test(){ class yo { public: int a = 2; }; yo yo1; return yo1; } ...
[23 replies] Last: Peter87 used a C++17 class template - std::optional - that manages a... (by Furry Guy)
Functions in a STACK header
void DynIntStack::OddOrEvenPrint() { StackNode *currentNode; StackNode *nextNode; int stackOd...
[3 replies] Last: For the reverse print function I have: // implemented reverse print ... (by CodingIsHard17)
by nik000
Non riesco ad acquisire con getche()
#include<iostream> #include<conio.h> #include"C:\Users\Nicolas\Documents\MEGAsync\funz.h"//libreri...
[2 replies] Last: if(y !=0 || y !=1){ This is always true. Sempre vero. y == -1 ? ... (by Ganado)
Cache Friendliness
Rob and Jason are joined by Björn Fahller. They first discuss articles on the C++ ABI and a blog po...
[2 replies] Last: Maybe the person doing the reporting believes topics that only adverti... (by Furry Guy)
by Dee5
Taking inputs (1,2)
Recently I've been helped on making a program which counts numbers found in a string. A little prob...
[21 replies] Last: Thanks for the help. (by Dee5)
by volang
Setup of multithreads
I'm still a little unsure how to set up my threads. I need multithreads because the server receiv...
[4 replies] Last: Thanks all. Jonnin: Big thanks. I'll probably go with the mixed versi... (by volang)
I need a hand with a program
Hello, I need to write this program a) The first two numbers indicate the size of the matrix - ro...
[5 replies] Last: I started to go there but that does not make sense, you wouldn't injec... (by jonnin)
a string array being passed to function alias arg
How do we handle a string array being passed to function alias argument. (not simply just argument b...
[1 reply] : What is a function alias argument? Do you mean a reference parameter? ... (by Repeater)
reading and putting numbers in an array
the code works just fine until it reaches the output of finding the small number then it just stops ...
[no replies]
Stacks (1,2)
#ifndef DYNINTSTACK_H #define DYNINTSTACK_H template <class T> class DynIntStack { private: //...
[29 replies] Last: The 'reverse' means that it will be bottom -> top (by CodingIsHard17)
Mechanism in a function argument alias for any type
How to do mechanism for a function argument alias for any type, as such in pointer to void argument ...
[1 reply] : Use function templates, unless you have a really good reason not to. ... (by Ganado)
Reading line by line
I know how to read a .txt file line by line using ifstream, but I need a specific action this time. ...
[5 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <v... (by lastchance)
by volang
Handle TCP protocol on your own
Is it possible to somehow dive deeper, and handle the initial TCP handshake(SYN/ACK) on your own? At...
[9 replies] Last: If you want to watch the wire. One of these (or the pre-assembled one... (by salem c)
Determining argument is given or omitted by compiler
how to determine / check whether argument is given or omitted in compile time? bool a_function(cha...
[1 reply] : The parameter is not 'omitted' in that sense that the function can det... (by coder777)
Rotate Left and Right
May someone please help me with this code. The task is really simple i guess. The call rotateRight ...
[6 replies] Last: The inputs are number arrays and char arrays, you have to use templat... (by againtry)
Pages: 1... 91011121314
  Archived months: [nov2019]

Cannot post in this page. To post a new message, go to the first page.