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

Writting c++ library
 
Hi I am to have some experience on writing c++ library which must be cross-platform(at-least on Linux, mac and window) for purpose of learning. I have gone thr...
[2 replies] Last: I want to learn writing libraries. For this I am planning to go with f... (by dearvivekkumar)
by bujon
funny string to wchar_t conversion
 
Hi to all mighty rulers of C++ scary and strange world. I need to complete task exceding my power of C++ warrior so I am asking for your precious help. I have ...
[5 replies] Last: Great, thanks a lot. For now I will try the Dishes solution and if I ... (by bujon)
How to allocate an multi-dimensional array dynamically?
 
int get_no_var, get_no_eqn; cin>>get_no_var; cin>>get_no_eqn; int * matrix; matrix = new (nothrow) int ; Suggest a working code for this Than...
[18 replies] Last: gaorozcoo: Dev-C++ uses GCC as its compiler. GCC has for a long time a... (by helios)
Lock up/Freeze during loop [C++/SDL]
 
Hey everyone, Iam having trouble with a function i made that is basicly a timer. It takes the Start time of an event and a Trigger time. then checks if the Curr...
[1 reply] : Why would you think it would behave any differently? The loop repeats ... (by Moschops)
C++ String Find and Replace
 
:D Hello everyone, I am making a console app in MSVS 2008. I was wondering if it is possible to find part of a string and replace it with the following lette...
[5 replies] Last: Thanks everyone for your help :D Muhasaresa (by Muhasaresa)
problem with classes....help please
 
hello everyone....i have a question...i have two classes class resident { int age; std::string name; public: resident(int a,std::string n):age...
[3 replies] Last: Helegurbann thank you very much but "name" was a private member, not ... (by davidcpp)
C and c++ remove a value from a vector
 
Hi guys! I was trying to find how to delete a single value from a vector in c and C++ but i couldn't find a way. Is there a command how to delete it?
[1 reply] : There are no vectors in C, C++'s std::vector has an erase method http:... (by quirkyusername)
Boundary extraction
 
Hello, Can anyone let me know if there is a way to take an image (say an image of an alphabet letter) and perform some sort of boundary extraction on it so t...
[2 replies] Last: Hi, Thank you very much. Also is there any way to handle the fonts in... (by Portalife)
load csv file into a matrix
 
I have a csv file or an excel file, which is a mix of numerical values and text information. For instance 1 Paragraph1 2 Paragraph2 In this file, the cell of...
[1 reply] : http://www.cplusplus.com/forum/general/17771/#msg89751 http://www.cplu... (by Duthomhas)
Help me debug this error?
 
Hello, I'm getting some errors in my code and I'm having some trouble debugging it. Here's the errors: ~/cs3350mp$ g++ set.cpp set.cpp: In member function...
[4 replies] Last: Any ideas? I might have to turn it in as is. (by skatingrocker17)
3D game programming in c++?
 
Hello, i just started out with c++ programming and i mostly started it for creating games, so i would like to know what programs/ guides that is recommeded for ...
[5 replies] Last: Thanks for all the answers i'll check em out, and im programming for W... (by loppanlina)
Void* return
 
Hi, what i can use for return on Void* I have func: void* RegistryRead_VersionEditor() // Version of Editor { char VERSION ; HKEY hKey; DWORD t,s;...
[8 replies] Last: The MSDN entries for these functions -- RegCloseKey, RegOpenKeyEx, ...... (by andywestken)
by Clead
Doubts about OpenCV cartoonization
 
I'm trying a code to cartoonize images and videos, the code uses the bilateral filter (coded by me, weights the distance and the similarity of the pixel with hi...
[no replies]
Date from number of days
 
Hello Everyone, I am new to C++ and it would be greatful if you can give me some insights into how I can implement the following. ...
[5 replies] Last: #include <stdio.h> #include <time.h> const time_t sec_per_day = 24... (by Syuf)
by lufee
lotto revenue simulator
 
#include <iostream> using std::cout; using std::endl; #include "lotto.h" {lotto::lotto(long int population, double percent_gambling, lon...
[no replies]
C++ Prime Factor Program
 
Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you wi...
[6 replies] Last: Thanks for the help and replies, i now have this code doing as i need ... (by Gaving30)
[win32] Change text color (1,2)
 
Hi, how can I change color of part of the text? I'm making chat application and I wanna make Moderator's name blue, I would like to use RGB so if u have any ...
[21 replies] Last: thanks a lot!: ) (by mekkatorqu)
Compiler problem
 
Hi guys! I am trying to compile in microsoft visual c++ 2008 in a windows application, but i cannot compile anything. It always says unable to start program, ...
[8 replies] Last: I don't quite follow your last post: -> So it's OK if you use the wiz... (by andywestken)
Newbie here. [Lost]
 
I am lost pls help. main() { decision(); return 0; } void decision() { cout << "Again? Y/N\n"; cin >> again; while (again == "y" || "Y" |...
[5 replies] Last: it worked. thanks. :) (by nethoinkz)
C++ problem
 
hi ppl..i m facing some problem in c++. hope you all can help..my problem is on this code: tripTime = 32 * log(pow(currentInAmps, 2) - (0.5 * pow(I_preload, ...
[1 reply] : tripTime = 42; That should work, regardless of the value of the othe... (by ne555)
August 2011 Pages: 1234... 29
  Archived months: [jul2011] [sep2011]

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