General C++ Programming (Page 2)

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...
[4 replies] Last: each field element retrieved by the getline statement on line 23 will ... (by SIK)
Help with while loop
 
Please help. My while loop is the problem. I want to use a non-recursive function to make the trian...
[2 replies] Last: #include "stdafx.h" #include <iostream> using namespace std; int tri... (by IAandEEBLKFMA)
good online video tutorials
 
Hello, can anyone recommend me a good youtube channel or online video tutorials for C++ programming?...
[3 replies] Last: thanks guys (by tybalttheappleEater)
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...
[9 replies] Last: Thanks, ne555. I used std::copy now, on my tests, it was fully copyed.... (by f0rmiga)
Structures, Referencing Structures
 
Hey guys, hopefully this is an easy one. I'm trying a more difficult pokemon battle, and this time, ...
[8 replies] Last: They are referring to the container std::map http://www.cplusplus.com/... (by BHX)
by wcdr
call a non variadic function from argument in container...
 
I'm working with v8 engine : so javascript call c++ function, I'm trying to found a way to template ...
[no replies]
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)
"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)
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)
Colition Detector?!!
 
Having trouble on the way to create a colition detector. I am creating a 2d tile map game that runs ...
[1 reply] : Do your blocks move or are they static? Regardless, there is a better ... (by NT3)
Pages: 1234... 26
  Archived months: [jun2014]

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