General C++ Programming (Page 6)

Parsing Bytes with Varying Fields
I have a byte stream that represents a message in my application. There are 5 fields in the message ...
[6 replies] Last: @kbw I didn't know the variant/visit mechanism. I am going to check i... (by erdemtuna)
move assignment
my_memory.h: In member function ‘my_shared_ptr<T>& my_shared_ptr<T>::operator=(my_shared_ptr<T>&&)...
[2 replies] Last: Performing a swap might result in memory leaks because a moved-from ob... (by mbozzi)
GCC build tools on Msys2/Mingw64 for the win32 api application building
How do we build by use of GCC build tools on Msys2/Mingw64 the win32 api requiring source code that ...
[1 reply] : MinGW includes its own copies of WinAPI headers. (by helios)
by volang
TCP/IP: Stop attacker without affecting others on same IP
If one person that's connected to my server, is running a multirequest script that reconnects and c...
[11 replies] Last: It's allright (by volang)
File operations (1,2)
Hi friends, my problem is only about file operations. When i type any file operation code, it doesn'...
[38 replies] Last: Yep, over-aggressive anti-virus can do some really nasty things. Glad... (by Ganado)
by tubar
How can be concentrated multiple lines of C++ code in only one? (1,2)
How can be concentrated multiple lines of C++ code in only one? I want to concentrate my C++ co...
[31 replies] Last: Two thoughts on this. First, whenever I need to examine code, the fir... (by dhayden)
by yin
merging programs??
So i have three ncurses programs (each one has a main, a cpp and a few header files and text files) ...
[8 replies] Last: Regardless of how complicated the individual programs are, they will a... (by Ganado)
Template Casting (1,2)
Goodmorning to everyone, I'm facing a problem with templates, i need to compare a template with a...
[34 replies] Last: Well i'll try the polymorphism way. If will not solve my problems i'll... (by AlessandroTZ)
move constructor
template <typename Type> my_unique_ptr<Type>::my_unique_ptr(my_unique_ptr<Type> && object) ////Mo...
[2 replies] Last: my professor sample code on move constructor was something like this (by appledog)
Read multiple text files bug
Hey, guys. Can u help me with the piece of code? So, I must read a text file that contains the name ...
[8 replies] Last: I've just changed the objects trying to use STL Vector and it is still... (by DrakonzJG)
Error in code Insertion in the begining of list
This is the code for insertion in the beginning of the list. #include<iostream.h> #include<pro...
[1 reply] : The compiler is giving 1 error saying that there is an error at line ... (by lastchance)
Dereference operator * that returns a reference to the item pointed by the object. Operator -> that...
[8 replies] Last: my_unique_ptr is a class template, so my_unique_ptr isn't a class in i... (by Ganado)
Can I have a template constructor inside a template class?
Hi, This does not compile but it should since other is an instance of a class template which in...
[1 reply] : One is a pointer to const and the other is a pointer to non-const. (by helios)
crossword puzzle generator (1,2)
Yes, there at time still a thread open at this topic, opened by @Merari
[22 replies] Last: Here a program version that pre-filters matching candidates. But it ne... (by nuderobmonkey)
by doug4
One more line of code I need to make it work
I would try this if (y == 0) { std::cout << "Cannot divide by zero. Operation aborted..." << s...
[7 replies] Last: And the spampost is gone :) (by MikeyBoy)
Output affected by placement of delete statement
Hello, I'm a computer science student and am working on a homework problem. I have already solved i...
[5 replies] Last: going out of bounds of a block of memory can cause any of many unpredi... (by jonnin)
Currency to words C++
Im trying to make a code that displays currency such as (312,12) in words (three hundred twelve doll...
[4 replies] Last: Thanks dutch for your help i was able to get the code working. after y... (by somedude)
do u know whats the difference between storage.swap(new_storage) and std::swap(storage,new_storage),...
[1 reply] : Typically, prefer the specialized a.swap(b) over the more generic s... (by mbozzi)
#ifndef FAST_QUEUE_H #define FAST_QUEUE_H #include <iostream> #include <vector> #include <algorithm>...
[4 replies] Last: thanks (by appledog)
Searching for a word in text file
Hi im trying to write a program that reads in a text file. The user can search for a specific word a...
[2 replies] Last: Maybe like this: #include <iostream> #include <fstream> #include <str... (by Thomas1965)
Pages: 1... 45678
  Archived months: [may2020]

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