General C++ Programming - March 2010 (Page 12)

Buffer problem
 
I have to read in lines of text and append them to a char buffer . replace all the newline '\n' characters with '\0' terminators. i also have to have an array c...
[1 reply] : Couldn't you just read everything into a single string with a bunch of... (by firedraco)
Gah! Include and Header Problems.
 
I'm having some trouble with some of my header files, rather than post my entire code here I threw it up on PasteBin. Constants.h : http://pastebin.com/9nFrY...
[1 reply] : CTimer is an "include dependency" of CEngine. Therefore engine.h sh... (by Disch)
C++ write to form
 
I would like my C++ command-based program to paste programmed characters into a form anywhere on my computer. Is there a way to write it to the form's address? ...
[1 reply] : I'm going to assume you are using windows... So you might want to take... (by HarbingTarbl)
how can i use QFC and QPC
 
i am a beginer learner of c++ i am using borland c++ ver 5 and my opreating system is windows xp i want to use the two API functions QueryPerformanceC...
[11 replies] Last: thanks alot kbw for your help although i did not understand but hopful... (by i am sarah)
General question about RAII
 
Hey, I have a general question about the RAII idiom. Although reading a lot of articles and chapters in books, I'm still unable to implement it, because I'm ...
[15 replies] Last: If you use Linux and GCC, google for "mtrace". IIRC this was a tool wh... (by imi)
Two errors.
 
Hello, i should start by telling you, that im a new guy here, so welcome to me ^^ Anyway, my problem is one with a Prime Numbers code. Look at the code : ...
[6 replies] Last: vladdo. Grey Wolf was simply pointing our that there are a variety of... (by idbentley)
by zootv
If-else statement assistance needed
 
Hello.I am trying to calculate the number of drywall sheets needed to cover a specific wall area.Each sheet is 4x8=32 and the wall area will be calculated based...
[2 replies] Last: Thanks for your reply but I solved the problem. 32 is the area of a dr... (by zootv)
set of set iterators
 
I have a class network which contains a std::set of nodes. Here is a snip of the network class class network{ protected: std::set<node >m_nodes; publ...
[no replies]
by imi
operator= called instead of move-constructor?
 
Hi, std::swap always seem to involve only one move operation and two operator=. Why that? I would have expected two moves and one operator=. please consid...
[2 replies] Last: Actually, it's even stranger. I guess I don't understand rvalue refere... (by imi)
Problem with Inheritance and Polymorphism
 
I'm trying to create a 2D game using the SDL Library and I thought it would be a great chance to practice object orientated programming and polymorphism. I'm ha...
[4 replies] Last: Ah ya, I just took a look at my entities.cpp, I had tried to define a ... (by HarbingTarbl)
by JRevor
Problems with EOF
 
I'm having the following problem: I'm reading byte-wise a file I've created using a coding algorithm I programmed. When decoding, i can only get to read bytes f...
[2 replies] Last: Sounds pretty interesting. That could be the reason behind some mister... (by JRevor)
by JRevor
Reading char with code -31.. what the hell?
 
I'm reading a file, byte to byte. After a while, apparently i read a byte with a negative code. Here's the troublesome code segment (which is inside a loop)...
[2 replies] Last: Effectively, that solved the problem. Thanks! (by JRevor)
sending information to a function
 
hello,am supposed to write a program for a game where only 3 (three) dice are used.they said i shud throw a dice and its results separately and send it to a f...
[1 reply] : why would you need a header here? Of course you could, but they are on... (by hamsterman)
infix to postfix
 
hi everybody, im not sure whats wrong with my program maybe some more expirience eyes will help, im pretty sure i followed the algorithm correctly, it looks lik...
[1 reply] : ...? (by chewykb24)
by chron3
counting vowels in a string
 
I'm new to C++, I've encounter a problem where it only able to check vowel for the first element in the string. Anyone state out the problem with my code? Thank...
[2 replies] Last: Thank you, jsmith (by chron3)
array removal doubt
 
I have a basic question i.e i have an integer array with numbers from 1 to n.... Whenever i get a value called no,i should delete the element in the array at t...
[6 replies] Last: [quote=gajji2020]This is not an homework.. i tried it but its giving w... (by closed account z05DSL3A)
Stand Alone C++
 
This may seem like a noob question, but I'm going to give it a shot anyway. I've been playing around with C++ in Windows, making little command line programs...
[14 replies] Last: It's an emulator. It emulates the Windows API. It's too thick to be a... (by helios)
Array of differently sized arrays
 
So, a thought occurred to me to a problem I had never encountered before...Can you dynamically allocate a multidimenional array with different sizes in the sub ...
[4 replies] Last: Jagged Arrays are usefull for implementing Undirected Graphs if you wa... (by closed account 1yR4jE8b)
How to implement find_if and remove_if
 
Hello and Good morning. Here is my code : #include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; struct P...
[13 replies] Last: Okay. understand. (by Tapas Bose)
grayscale bitmap-> 2d array?
 
hi! I've searched the internets for this but everything I found was way too vague - is there a source code somewhere for taking a black/white grayscale image, a...
[1 reply] : Maybe reverse engineer the process going into ascii art conversion sof... (by Seraphimsan)
March 2010 Pages: 1... 1011121314... 23
  Archived months: [feb2010] [apr2010]

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