General C++ Programming - January 2012

by Laveer
Reading a String
 
I'm trying to write a simple function that reads the text from a designated hosted file and changes a label's text from " Waiting For Update Check " to " Update...
[5 replies] Last: Store it in a string. string url="http:\\www.google.com"; I'm not a ... (by roberts)
neglect character's mark
 
in wide char,they may have this â ă ã , how can I convert them to just "a" without separate in many cases ?
[6 replies] Last: If you want to be general, use a library such as ICU ( http://icu-proj... (by Cubbi)
how to find value of (3^6)+(a^a)?
 
pls help me to find out the value of int a=(3^6)+(a^a); printf("%d",a);
[1 reply] : Duplicate of http://cplusplus.com/forum/beginner/60615/ (by Stewbond)
What's the error?
 
Hello. I am just trying to delete a list element, But I get a run-time error(don't know the swource): Here is what I did: #include <iostream> using na...
[2 replies] Last: OK thank you.I corrected the fault, but now the problem is that it do... (by hooshdar3)
by Smoke
Why hide pointers?
 
It was mention in a lecture that it is better to isolate a pointer or place it inside a data structure rather than use it directly. What are the benefits of thi...
[10 replies] Last: Its about responsibility. A bare pointer has no responsibility. Ther... (by mik2718)
Portable file association library ?
 
Hello ! I am trying to program an application that will proceed files of any types and display them. This program should be able to open any of these files u...
[1 reply] : I don't know of any library (it seems likely that one exists, though),... (by Athar)
by Johnb5
Almost Done..
 
For some reason, the program will only run the first if/else for the sum, but not for the difference. Idk why, a little assistance please #include <iostr...
[9 replies] Last: You can use the switch case statement instead of if else statement as ... (by bluecoder)
programing question
 
I have this program that i'd like a little help with it does what I want it to do ( automates mouse movement ) but I'd like it to be able to automate clicks how...
[3 replies] Last: well I kinda dont have a callback O.o I'm pretty new to C++ and to ans... (by alucard33592)
My program isnt looping
 
Hey, I am a 14 year old beginner programmer and while learning about C++, I decided I'll make a program where you have to input: the hours the program has to co...
[16 replies] Last: The dh and dm and ds are there because of the problem I was having. As... (by a27Stealth)
how to make my searching matrix faster faster ??
 
dear friends, I have this program to search in big matrix for a value that is closest to a certain number My question is if there is a way to make this proce...
[7 replies] Last: If the same matrix is being searched multiple times with different que... (by mik2718)
can I reinterpret any 8 letters word to a number?
 
as char* word = "abcdefgh"; can I do int64_t i = *reinterpret_cast<int64_t*> (word) and should the number be unique for different words? Thanks ...
[5 replies] Last: thanks. I asked a dumb question :) (by chrisben)
while the code doesn't compiles?
 
hi, I'm taking the C++ course in the university. The following code was taken from an exam question. Please help me to understand why the code doesn't comp...
[2 replies] Last: Hi, Sorry for not using code tagging, this i my first post in this bl... (by elad789)
by Tatipu
Rational numbers help
 
Hi I have this programming assignment and I have no idea what to do. I thought I did but apparently I don't. I'm supposed to make a class Rational and I'm sup...
[11 replies] Last: @ naraku No?! YES @ Tatipu He misunderstood your question. Insid... (by Duthomhas)
vector<Vec3f>
 
Hello, When i have the next code: #define Vec3f float3 vector<Vec3f> m_xaxes, m_yaxes, m_zaxes; Is it a 3 diffrents vectors of vec3f or 1 vecto...
[1 reply] : That's three different vectors. (by hamsterman)
Unexplainable funny error, LOL!
 
I'm doing this programming exercise were the following series of actions happen: "Enter the number of hours: 3 "Enter the number of minutes:45 Time: 3 hours...
[2 replies] Last: Were the hell did the 4469712 code come from? It came from tt() . t... (by closed account 1vRz3TCk)
by Raust
Expected primary-expression before "char"
 
Date class with member functions Any help would be appreciated. A few of my errors C:\Dev-Cpp\Templates\Date2.0.cpp In function `int main()': 18 C:\Dev-C...
[4 replies] Last: @bluecoder : No space between = and = , should be "==" (without quotes... (by hentaiw)
Dark GDK question
 
Ookay... Remove this! Please! xD
[3 replies] Last: Hi I need a sample code of FPS developed using dark gdk (by chaiein)
by iSo
Need help in Array Problem !!!
 
Hello guys , I'm working in a project about array which asks me to sort the array in ascending and descending order . Then to find the max, min, and the m...
[2 replies] Last: Hello L B , I'm good now , thank you so much for your help : ) ...... (by iSo)
by rucafe
expecting a constant expresion
 
In my main program I define a variable phantom_res: const int phantom_res = 600; Later in my main program I call on a function defined in the following ...
[7 replies] Last: ok I declared the phantom_res as global and I am not getting any error... (by rucafe)
Playing sounds?
 
Hey there, Is there a way to play a selected sound file in c++ ? For example 10.9.8...2.1.[boom.mp3] or some other file type. Thanks in advance.
[1 reply] : You would use an audio library for this. Here's a good list: http:/... (by shacktar)
January 2012 Pages: 123... 36
  Archived months: [dec2011] [feb2012]

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