General C++ Programming - August 2011 (Page 5)

by madjas
strings help
 
im trying to write a code using stack container(templated) where my program would have to read string one character at a time, and a algorithm that can compare ...
[16 replies] Last: tanks guys i did appreciate and learned from you. (by madjas)
error C2440: 'return' : cannot convert from 'class RawTestData (__cdecl *)(void)' to 'class RawTestData &'
 
skywarddoc.h(328) : error C2440: 'return' : cannot convert from 'class RawTestData (__cdecl *)(void)' to 'class RawTestData &' A reference that is not to 'cons...
[1 reply] : static RawTestData m_RawTestData(); You're declaring it as a fu... (by Disch)
Using a pointer in other program
 
Ok, let's assume that i've written this code: #include <iostream> #include <sstream> #include <string> template <typename T> std::string convertPoin...
[2 replies] Last: Thank's that sure helped a lot ;) (by sin0emp)
Regular Expressions
 
hello, I need the support of regular expressions to parse certain outputs..by googling i found out that boost regex is the most recommended..i couldnt properly...
[4 replies] Last: Just so you know, it takes a while for boost to compile. After it do... (by Duthomhas)
by jpotts
Pointer error
 
Hi, Im currently in the process of learning about pointers and dont know all that much about them yet. However on a code i was making i got an error that says...
[13 replies] Last: in the line: int* array = new int what does the pointer do after i... (by jpotts)
Free pointer???
 
this my code: int fn_Test(){ char *a = (char *)malloc(10); free(a+2); //error printf("%c",a ); return 0; } when i run this code, occur error, i do'nt un...
[19 replies] Last: I suppose that the behaviour is similar http://www.parashift.com/c++-f... (by ne555)
passing iostream through functions
 
I am trying to create a logging function that accepts loggin info (strings, variables, etc) and an options label ('mask' in this case). To do this I think I n...
[1 reply] : If you want to pass std::cout (or whatever) to a function, it's best... (by closed account zb0S216C)
Reading huge binary files
 
Hello guys :), I have a binary file whose size is 80 GB. I need to read it in chunks, but as I know, the pointer of fstream is of type long int, which is def...
[6 replies] Last: OK Thank you. I'll try using fstreams and get back to you :) (by TheDestroyer)
"C++ isn't cross platform"
 
As my C++ book tells me C++ programs can only be used on the specific CPU and OS you compiled it on but yet I made a few programs and sent them around to my fri...
[5 replies] Last: Most likely (if you compiled for x86 (aka 32-bit)). Although I heard W... (by Athar)
Reading data from memory that's being used by another program.
 
Is it possible to read data that's being stored in memory from another program? If I'm correct isn't this how game hacks work? (Never used/written one only r...
[1 reply] : Yes, it depends on the OS. It can be done with ReadProcessMemory on Wi... (by Athar)
Reading .ASE file
 
Hello, sorry if my q is little lame, but how I can read .ASE file and put the vertices in a variable. *3DSMAX_ASCIIEXPORT 200 *COMMENT "AsciiExport Versio...
[no replies]
Random Number Generator (ipv4)
 
I'm trying to get this code to work and cannot figure it out where what exactly is wrong with this. I've switched it up so much that im just stuck now and need ...
[6 replies] Last: Yeah I got those weird errors after I opened the file with gedit, I gu... (by takeWarning)
compiler priorities in conversion
 
Hi, I've read that the compiler is ready to take up to 2 steps of conversion , by the following order : 1.exact match 2.premotion 3.conversion 4.user de...
[5 replies] Last: MSVC++2010. (by hamsterman)
Return back to a line
 
Hi guys! I was programming a new game (text rpg) I need to go back in a line. I know the command goto, but from what i hear it is not practical (slow) and m...
[6 replies] Last: Well, if you need goto , Donanza , I'd say you need to reconstruct... (by HenriK)
Array of objects with no default constructor workaround
 
I understand that only default constructors can be used to instantiate arrays. I'm working on a project that is using a third party piece of GUI software. Th...
[4 replies] Last: Thanks guys. Not able to use std for this, however, which means no ... (by Sythion)
stray \20 compiler error
 
I get these errors from a header page within my program: ScorePlayerMatch.h:20: error: stray '\20' in program ScorePlayerMatch.h:21: error: stray '\20' in p...
[2 replies] Last: thanks...there is some mystery space between the 8 & 0..3 & 0...7 & 0.... (by paulmcco)
Ways to take screenshots and analyze them through program?
 
Hey, I'm looking for a way that I can make a program that takes screenshots of a screen analyzes them and makes decisions off that. Or On the fly analyzing. I'm...
[no replies]
XOR Checksum Question
 
Hi, I am trying to implement an XOR Checksum algorithm, which takes in a binary file and performs the algorithm returning the checksum. This is what I have s...
[2 replies] Last: If you want to stick to your algorithm, you could at least increase it... (by m4ster r0shi)
Help loop problem
 
please help me with this 1. Write a program to list the numbers from 0-25, their squares, 3rd power, and 4th power. output 0-0-0-0 1-1-1-1 2-4-8-16 . ...
[7 replies] Last: her homework.. (by Teddy16)
Vtables for a class
 
Hi From my understanding , every class that has at least one virtual function , or inherit virtual functions from another class , has its own Vtable. But w...
[7 replies] Last: It's not that asking questions is bad, it's just that we can't help yo... (by Disch)
August 2011 Pages: 1... 34567... 29
  Archived months: [jul2011] [sep2011]

This is an archived page. To post a new message, go to the current page.