General C++ Programming - July 2010 (Page 5)

Setting up PDCurses
 
I'm trying to set up PDCurses with Code::Blocks, but the tutorial I'm following isn't helping much... Can anyone help?
[no replies]
Problem with variable initialization
 
It is a block for gnuradio for phase shifting modulation. "make" tells me: In file included from howto_diffconst_bc.cc:5: ./howto_diffconst_bc.h:6: er...
[2 replies] Last: yep and this probably isn't right: static const complex<float> p_c... (by thunder87l)
Accessing structure members during every iteration in the loop
 
Dear experts, My code contains three structures: struct ABC, struct DEF and struct GHI. struct GHI contains the reference for ABC and DEF. Code also conain...
[1 reply] : You can't because the structures are different. The only way to do it... (by Disch)
Random access of Binary Files
 
Hello all, first post here so be gentle, I'm having some trouble trying to do random access on binary files. Following is a description of what I'm trying to...
[1 reply] : How about: randomSearchFileListIn.seekg(filesToBeProcessed * MAX_... (by m4ster r0shi)
Functions undeclared identifier error
 
Hello, I'm writing a program that's suppose to calculate the cost of a paint job's company price for painting. Basically were told to put everything including f...
[1 reply] : Your functions are all wrong. I recommend that you read this carefully... (by Galik)
Open SSL Link Errors
 
I've been trying to build a simple openSSL code segment, using the rsa.h header file in MSVS2008 for quite some time now, but every time I try to build it, I ge...
[1 reply] : hahaha, this is great. I figured out what was wrong. I installed th... (by Phantom139)
Dynamic Array
 
How to implement dynamic arrays using normal arrays that work exactly like vectors One approach is to increase and decrease the space. Please tell some ...
[5 replies] Last: If it doesn't need to be compatible with C like apis you can also use ... (by kempofighter)
passing `' as `this' argument of `' discards qualifiers
 
I have a func as below: class Book { ... set<Level> sLevels ; ... }; void Book::del_order (Order *ord) { if ( ord && del_oid(ord)) { // it's in ...
[4 replies] Last: Generic Programming and the STL by Austern. It covers the STL from to... (by moorecm)
Image Manipulation
 
I have a black & white image in my directory and I want to check the array of brightness of that picture, if certain pixel of that image is totally white i wa...
[1 reply] : I'm not sure I understand what you're trying to do, but if you want to... (by hamsterman)
by declan
Bizarre bug-- for loop stalling
 
Hi guys. I have a very strange problem. In my program, I enter a number of particles for the program to work on, and a number of steps for it to go through. The...
[9 replies] Last: So, I pulled out gdb. Led to me eventually finding the problem. So I f... (by declan)
Which one is the best / or suggest other
 
/* Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: ...
[9 replies] Last: No, of course not. char* is a pointer to a char, so that makes no sen... (by Athar)
No ever seen problem, even on the internet.
 
Hi everybody, I'm Brazilian and mechanical engineer student. So, sorry for any bad English grammar. Here's the thing, i tried to do a program but i couldn't ...
[1 reply] : Oh... I thought this was going to be something about traversing a dire... (by helios)
switch between text mode and graphics mode
 
hello , i have an trouble in switching between graphics mode and text mode i have an interface by using graphics mode and when you press in a key of it will...
[6 replies] Last: Switching video modes in DOS using interupts will reset the video memo... (by moorecm)
write to istream
 
Hi all, Is there a way to set istream buffer content? I need to write string into std::cin in other way than user's input. I've tried with putback() but it ...
[6 replies] Last: Well hopefully you just need to replace your std::cin with a reference... (by Galik)
delimiter to find html tags
 
how to use (1)strtok to find out html tags from a file? (2)getline(a,b,'<>'); is the getline method used correctly? If not how should I use getline to ...
[2 replies] Last: HTML tags are 'nested' so its not as simple as finding every '<' and '... (by Galik)
by Kat B
fopen(), crashing, memory allocation?
 
I am seriously at a complete loss as to what I am experiencing. If I write a small program, with this line in it, it works fine: FILE * fp = fopen("test.t...
[10 replies] Last: @kbw There is a long and boring story behind the decision for the char... (by Kat B)
by patryk
Visual C++ 2008 problem.
 
I don't know what I pressed, but for some reason, everytime I put a space there is a little Blue-Greenish dot in the space. And also there are arrows on the lef...
[2 replies] Last: Thank you. (by patryk)
void* to bitmap bit data
 
Through the windows API I can get a void* to the bit data of a bitmap that I’ve just created. (Parameter ppvBits in Function: HBITMAP CreateDIBSection( _...
[2 replies] Last: OK, thanks. I was aware of of what you mentioned for bitmaps, althou... (by jibbityjobjob)
String enum
 
Is there a simple way to turn an enum into a string? so I have: enum UpdateType{ CC, RV, PK, }; so then I have a function that accepts t...
[2 replies] Last: I guess there is always the "Typesafe Enum" pattern from Java. Here is... (by Galik)
array/pointer access of different-sized sets?
 
Hello all. Let me start by saying that there have been similar questions and answers on this forum to mine, but I feel that my question is significantly diff...
[8 replies] Last: Great! Problem resolved. Thank you very, very much! (by dshillady)
July 2010 Pages: 1... 34567... 20
  Archived months: [jun2010] [aug2010]

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