• 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]
by q139
Fast way to read content
Hello, I am trying to make graph program that reads file and creates graph. How could code read a l...
[no replies]
Converting char* to String^
I have an odd question... I am creating a terminal like program that will be used send SCPI comma...
[6 replies] Last: Thanks JLBorges, I used the second solution and got everything to work... (by bellmell)
Structures, Referencing Structures
Hey guys, hopefully this is an easy one. I'm trying a more difficult pokemon battle, and this time, ...
[5 replies] Last: If there is a tight coupling between the pokemon and their available a... (by Disch)
Simple encryption program runtime error
I am trying to make a simple program for encrypting a char* with the XOR operator. The code compil...
[9 replies] Last: Thank you very much! I have no idea how I forgot this! Now I am getti... (by memberfunction)
Reading in space separated versus comma separated files
Hello everyone! I just wrote a code that reads in a text file called "policies.txt" which looks like...
[3 replies] Last: I made these adjustments to my code: int main(int argc, char ** argv)... (by The Intern)
Problem with auto c++11 feature
Hi friends, Whilst trying auto feature, am hitting this following issue: My code: #include <i...
[5 replies] Last: You don't need to use auto for that, my_func could return T. How wo... (by cire)
"Registering" types to be used at run-time
I'm writing a program that needs to parse executable files. I've got an "executable" base-class, and...
[10 replies] Last: I will scan for branches and make a list of offsets that get branche... (by dhayden)
Problem compiling c++ program in windows
Hello! I am desperately trying to compile my c++ programs in windows. In Linux, all was easy but ...
[3 replies] Last: There's more to it than what you are showing us, alas. Can we see you... (by Duoas)
Grabbing words from a text
Hello guys, I have been searching everywhere here and i would appreciate if i could get some help on...
[4 replies] Last: how do i translate the following line? auto begin = line.find(name_ta... (by vinnidrk)
by bencwl
encryption and decryption
#include<iostream> #include<iomanip> #include<string> #include<cstring> #include<fstream> usi...
[3 replies] Last: It's something of the form (x * n) % m. (by helios)
Please Help
So I found the program below online. It takes text from an open notepad and shows it to you on the p...
[1 reply] : The problem is generally described as Inter-Process Communication, IPC... (by kbw)
by ne555
unnecessary dynamic memory allocation
The idea of this thread is to serve as a reference to link when spotting a T *foo = new T; or simi...
[10 replies] Last: Yes. std::array is quite possibly the one and only exception. And th... (by Disch)
by zxrp
String Comparison
Hey guys, I'm writing a function that accepts a char array containing the title of a book as paramet...
[1 reply] : > reading the words in the text file into a string array Perhaps, int... (by JLBorges)
Struct pointer
struct ITEM { string Name; ITEM* folder; int* Variable; } ITEM AddFolder(std::string Name,...
[12 replies] Last: oh ok right while (*Options != '\0') is my loop to count the amou... (by poohpooh)
file Operations inputting a file into program
I keep getting this error when trying to compile. Can anyone help? error C2440: 'initializing' : ca...
[13 replies] Last: You cannot copy a stream, hence GetInputFile(...)/GetOutputFile(...) a... (by coder777)
std:sort() returns all zero
I tried to sort a large numbers of vector of random integers with std::sort(), but when the number i...
[1 reply] : std::sort doesn't return anything. It operates on existing values... (by cire)
ofstream & ifstream
I am having a hard time with this code and this is my 1st time to this website and to writing code. ...
[1 reply] : Write your question or you don't have any? (by lsk)
Variable inside a class, how to manage the memory allocation
Hello everyone, recently I developed a class header only in C++ to deal with byte arrays. Since I...
[8 replies] Last: *buffer is equivalent to buffer so you are doing buffer = other... (by ne555)
How to take Screen shot using C++
Hi, I want to take screen shot and save it in any image format like jpg, bmp, ppm or any other . Pl...
[3 replies] Last: A really dumb way is to move the cursor and click each button of openi... (by Bob The Zealot)
Pages: 123... 46
  Archived months: [may2014]