General C++ Programming - January 2009 (Page 6)

_beginthread
 
Hi! I'd like to know how to use _beginthread and _endthread to create a new parallel process. I have to put the "read_audio" process running on background...
[9 replies] Last: to OP: int main(short *samples, short *ctrl_signal) { audio_ar... (by anders43)
Unusual Slowness in Processing Vector
 
Dear all, With this small dataset (mydata.txt) 2 AAAAA 21 21 21 21 21 1 AAAAC 9 18 12 18 15 1 AAATG 7 9 18 18 15 1 AACTA 17 9 12 15 18 1 AATGA 18 1...
[2 replies] Last: id2tagnum doesn't return anything although in your vector <int>... (by anders43)
by Ard
Template? abstraction question
 
Hello, I could use some help :) I have two (actually many many more) different objects that I use to transform data; AES and DES (encryption). I only know what...
[4 replies] Last: Your code is the same as mine except more verbose. int main() { ... (by jsmith)
How to display Arrays on screen
 
Hi..im kind of new to C++, studying it in school right now..Using visual studio 2005, and the schools 'own' library called 'Gwin', which uses commands like 'Gw...
[1 reply] : I dont understand that gwin stuff, but generaly: const int SIZE;... (by Scipio)
FLTK PNG image loading
 
Hi, Im coding a programme and would like to add an image to the main window and some of the widgets. I am using the fast light tool kit v 1.1.9. My code is as...
[1 reply] : Typically, undefined reference means you have not linked to the correc... (by Zaita)
Device.h
 
I was reading a book on computer graphics of C version.There i read about Device.h header file. But when i tried to use it in C++ then i couldn't do it.Does C++...
[5 replies] Last: @Corpus: Try to count the number of questions asked each day that have... (by Zaita)
CSP++ proposal
 
i am chinese, my english is poor,so hope you can understand what i write. CSP++ is a C++Server Page, haven't heard?That is affirmative, this is that I prepare...
[3 replies] Last: there has been a technique verification project, but I don't have serv... (by t10599762)
Creating String From A Loop
 
Dear all, I tried to create a string with this code #include <iostream> #include <fstream> #include <string> #include <stdio> #include <stdlib> #...
[1 reply] : You are trying to push_back() an integer where a vector of strings is ... (by Duthomhas)
Flashing the output to the screen for a limited time
 
hi you all.. i want to flash the output message to the screen for a limited time. can you plz help me ? is there something in iomanip or somewhere else,...
[1 reply] : Take a look through <ctime> http://www.cplusplus.com/reference/clibra... (by Duthomhas)
How to sort map based on its values
 
I have defined a map<string, int> where string are words and int are how many times they appear in a textfile. Now I want to sort the according to descending...
[4 replies] Last: If you want a container in which you want to be able to sort on both k... (by jsmith)
How to fix mutual includes compiler error
 
Dear all, I just stumbled upon the following problem that I have no clue how to solve. I have two classes, let's call them library and book. Both are residi...
[2 replies] Last: Which, BTW, is the right way to write the header file. Header files... (by jsmith)
Filing Program
 
I would like a Program that Files in date and time order, I have no Idea how to script in C++ (yes I am a newbie) and I was wondering if someone when they had s...
[4 replies] Last: you dont learn by geting it put on a plate, go read a tutorial or get ... (by zoldri)
client-server terminal communication
 
Hi there, i am looking for an assistance from some one who is familiar to socket programming, or dealt with it before. I wrote a client-server program and all...
[no replies]
Backing up data and Retrieving Backups
 
What i'm trying to accomplish here is create a program that stores data in .txt files with the functionality of backing up that data (which basically just cr...
[2 replies] Last: wow...i can't believe i didn't think of that haha. Thanks (by aeronet)
some minor errors
 
Ok, so i have an assigment to find the minimal and maximal values of a function in a sector, determined by a rectangle. I happen to solve the problem under borl...
[4 replies] Last: This compiles #include <iostream> using namespace std; float a, b,... (by buffbill)
by ShellZ
Infinite loop
 
Hi I need help with my program. My teacher wants me and my friend to fix our program so that when the user chooses to do addition that they can enter an infinit...
[7 replies] Last: You could combine the cases for x==1 and x==2 because the user can ind... (by buffbill)
can i get serial communiction btw two PCs code of vc++
 
i need to know the code of serial communication in VC++. also if some1 plz answer with pics (of how to make connection btw two PCs while connecting them seriall...
[no replies]
by jrohde
Class assignment operator
 
Hello all, I've created an array class that is somewhat similar (in functionality) to the STL vector class. My assignment operator is as follows: temp...
[5 replies] Last: Good call. Fixed that. Thanks. (by jrohde)
STL:: size() of list and vector
 
my process coredumped, the following is the result of bt in gdb: #0 0x08197a4d in std::_List_iterator_base::_M_incr (this=0xbf95db30) at stl_list.h:116 #1 ...
[1 reply] : Unless you compiled with -ggdb3 (and maybe even then) I wouldn't trust... (by jsmith)
More questions by me...
 
1. CDerived inherits from CBase. There is a global function that takes a reference to a CBase object: int Function(CBase& param) { /* ... */ } Can I exe...
[9 replies] Last: @seymore15074 : I'm working on my first C++ project, so I have lots of... (by Tom Backton)
January 2009 Pages: 1... 45678... 11
  Archived months: [dec2008] [feb2009]

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