• 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]
Pass By Reference - Question
I know the code below will print “123456”. But I am curious on something. In the ref functio...
[1 reply] : It can, but at that point you're changing the function (and would need... (by Albatross)
Topological sorting question
Hi, everyone. I'm now working on a topological sorting program, which reads in a data.txt and output...
[5 replies] Last: In graph.addEdge, from the data file offered, this output: Number of... (by Niccolo)
#Define for building functions alternative
Hi, So, I'm working with a piece of code that is not mine, but uses #define SPELL(func) i32b ...
[8 replies] Last: @jonnin, but they do all have the same signature once it creates the... (by Niccolo)
Input file question
Hi, everyone! I'm working on a topological sort problem. I have to read in a text file which contain...
[2 replies] Last: Thanks a lot, that works :)! (by calvinfornia)
Little Problem to connect Compile Instruction
Dear Community, I have a little Problem to connect Compiler Instructions for g++ on Linux Ubuntu Mi...
[1 reply] : Did you look at the output after you ran the command? What did it say?... (by Albatross)
putting an object as condition in while statement (1,2)
I am trying to understand how filestream objects work. What does the file passed as a condition in t...
[29 replies] Last: I suppose my final reply to wrap things up. Eh, I wouldn't rely on a... (by zapshe)
how does the sort from algorithm work?
I understand that it sorts a vector in ascending order and you can write your own comparator method ...
[10 replies] Last: Heh, welcome to the old geezers club. :O) I enjoyed playing with sort... (by Duthomhas)
C native android app crashes on Oreo and above due to signal(SIGALARM) call
I have created a C library using Android NDK and created an apk using this prebuild library. This a...
[2 replies] Last: why stack only? Heap, used as shown above in the static example, is j... (by jonnin)
Topological sort question
Hi, everyone. Here is an introduction of topological sort program, There's an input file indicating...
[6 replies] Last: 4 < 3 < 1; 2 < 5 alll constraints are respected OK. I think I get ... (by doug4)
by P13r0
Help on a (probably) "custom" CRC
Hi all, and thank you in advance for your help. Here's my issue. I was recently given a small route...
[8 replies] Last: Ok, a good friend of mine did it :) int main(int ac, char** av) { ... (by P13r0)
Get Outlook contacts from C++ application
Hi, I need a C++ application to get Outlook contacts (from my local Outlook application) I f...
[7 replies] Last: Just if usefull for anyone, I found how to compile the code here: htt... (by ddonate)
Save hex address of a int32 (savepos)
how can i save hex address? for example, i have a int32 int32 UncompressedSize ; how can i sav...
[8 replies] Last: Oh! Are you reading into UncompressedSize from a binary file? http://... (by Albatross)
Hash table question
Hi, everyone. I'm working on a hash table program, but while I run it, the windows just ended with "...
[18 replies] Last: To deal with hash collisions, you look for an empty slot in the hash t... (by dhayden)
by colt
'std::bad_alloc' when working with strings
Hello I am receiving the above error message when a method returns a string. This is the method t...
[5 replies] Last: > run your program through use a debugger >> Well, I use GDB. show th... (by ne555)
Why doesn't this build
I get an error argument of this type const char is incompatible with parameter
[8 replies] Last: thanks salem, that fixed it (by piratekingluffy)
by stav
static initialization in header only library?
Hi, I want to write a logging library and so im currently in the process of figuring out how best to...
[3 replies] Last: Thanks alot guys (by stav)
by frek
Constexpr in C++ (1,2)
Hello all, Is what I know of constexpr written below all correct? Should add something to it, ple...
[36 replies] Last: Thank you very much. I don't think I have another question in this ca... (by frek)
How do I stop ..eof from reading the last line of input twice?
#include <iostream> #include <queue> using namespace std; int main () { int n, num, cust;...
[7 replies] Last: No, I get its purpose, but it still feels like the sort of thing that ... (by Albatross)
Basic vector qeustion
What does the mean? vector<int> desks ;
[1 reply] : That line declares an array of 100 std::vectors (as opposed to one std... (by Albatross)
Pages: 123... 9
  Archived months: [jun2019]