General C++ Programming - May 2010 (Page 2)

by zile
Scrollbars
 
Ok, i want to do something like this I have a file that contains values and commas 1234,3124,512312...... and i have the total number of values (not +) a...
[2 replies] Last: im using windows - not mfc and streams to read file i just cant wo... (by zile)
by Kip
Logger Class (1,2)
 
I am trying to write a logger class that allows for the insertion operator to be used on it for arbitrary types. The class needs to know when an insertion i...
[24 replies] Last: Sure. Here's the whole code: #include <iostream> #include <stri... (by Kip)
Map sorting
 
I am making a stack-like system where it stores classes by a specific member in least to greatest order. At first, I used a vector. But found that it wasn't eas...
[4 replies] Last: Need to see example , maps have weak strict order , so this is what i ... (by DrakeMagi)
by Netaro
Problem with my deletion function in binary tree
 
Ok, so, I've decided to write a binary tree. As for now, it's an unbalanced binary tree, the simplest one. Adding elements works (keys cannot appear more than o...
[no replies]
problem with pointer
 
Hello overy one, i had aproblem with the following program can any one help me with it plz #include<iostream.h> class vector{ private: int *p; int n; p...
[5 replies] Last: thanks for eavery one how help in this problem it's solved by using co... (by wameedh)
by melter
Static members and QHash
 
I am using Qt Creator 1.2.1 "Based on Qt 4.5.2 (32 bit)" on 32-bit Windows XP Pro . What's wrong with my code? I get build error: collect2: ld returned ...
[no replies]
How to Convert Text File Format into Binary File
 
This is the text File This is the test demo Will convert to 0101010001101000011010010111001100100000011010010111001100100000011101000110100001100...
[1 reply] : I am not sure exactly what you mean. Do you want to convert the tex... (by Galik)
Hiding or Changing the cursor icon
 
I am making a game ( based on geometry wars ) as a project for school using C++ and SFML. The game consists of a fullscreen window, a field, and various spri...
[1 reply] : http://www.sfml-dev.org/documentation/1.4/classsf_1_1Window.htm#6142e3... (by helios)
by Rycul
Structures to Classes (1,2)
 
Hey, I have just read that classes are more efficient than structures if their members are being accessed often in your code. Is this true or not? Does chang...
[35 replies] Last: Aren't we going a bit far with this discussion? It seems to be going n... (by Albatross)
near and far with C++
 
Hi, I'm working with Turbo C++, trying to make a DOS game. In C, if I wanted to allocate memory, I'd have to specify whether I wanted to use far or near memo...
[14 replies] Last: How many processes are running in the background doesn't by itself aff... (by helios)
by cshong
Detect Wireless Adapter in Windows, beside using WMI
 
After research through internet, we can have C++ codes to use WMI to detect Wireless Network Adapter. But, if WMI has been disabled in Microsoft Windows, the...
[no replies]
Problem with bool function
 
HI, EVERYBODY! I have problem with bool function. The full source code is: input file contains: 5 2 3 4 5 6 #include <iostream> #include <fstream>...
[2 replies] Last: I seem some strange behavior here. int num=22*222; if(is_from_sub... (by closed account S6k9GNh0)
Junk Checking
 
When you declare a variable, there's usually junk already in place there. I have a management problem because of this. I have a static image that I want to crea...
[9 replies] Last: I figured. I'll just make a singleton class that initializes and makes... (by closed account S6k9GNh0)
by oz1cz
Subclassing containers
 
A former colleague of mine has left a note saying: "Subclassing C++ containers can cause problems, primarily because the container classes were not intended to ...
[12 replies] Last: Now, I think I'm missing one other specific about the classes in ques... (by moorecm)
Sfml spirit
 
http://www.sfml-dev.org/tutorials/1.6/graphics-sprite.php My visual c++ is not showin out put of this It is not even showing any error What out put it sho...
[1 reply] : What is to be written for image taking BackgroundImage.LoadFromFi... (by thapchi)
by Ensei
Segmentation fault(core dumped)
 
It is somewhat big for a post but it's a simple, linear logic. It's probably n00b mistake, but I just have to know... Thank you #include <iostream> ...
[4 replies] Last: Thanks, I think it's working as I want now BTW, sorry for the doubl... (by Ensei)
Distribute String to multiple lines
 
Hey Guys, in my code, I have to deal with some long (constant) strings, like: s = _T("The quick brown fox jumps over the lazy dog"); Having such long...
[2 replies] Last: Cool, thanks! (by blueshark)
by declan
"Undefined symbols", but I don't see where/how.
 
Hi everybody! Sorry if this is a very stupid question or answered to death already. I have a group of programs that I'm trying to compile then link together ...
[1 reply] : You have more typos. The arguments in Line 10 of this file http://p... (by Galik)
how do I pass a class as an argument?
 
how do I pass a class as an argument?
[2 replies] Last: Yes, I was not sure how to pass it by value. Thanks. (by delanodean)
I need a shut down code!
 
I am writting a code that is to run at start up and if thesurvay isn't completed correctly the computer shuts down. But ai need a code for shut down.
[1 reply] : This guy seems legit... (by chrisname)
May 2010 Pages: 1234... 22
  Archived months: [apr2010] [jun2010]

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