General C++ Programming - January 2011 (Page 11)

by madjas
writing and reading
 
im having this problem on reading the input. i have this code #include <iostream> #include <fstream> using namespace std; int main() { ifstream inFi...
[4 replies] Last: the note pad online had these 2 #[10 2]. i thing the problem is in vis... (by madjas)
Skipping Over a Function
 
So I am using SDL and I am refrencing a function that renders a image. But when I run the program it skips over the function and I am completely lost. I am usin...
[1 reply] : if(mapIndex = 0) That's assignment, not comparison. Don't put usi... (by ne555)
Accessing an iterator after the end of a list
 
Hi all, I'm trying to understand the code at the bottom of my post. I am working with a someone else's code and don't have a lot of experience in C++. ...
[3 replies] Last: Hm, try putting a check (or a breakpoint) after the first for loop and... (by firedraco)
by paeez
char array
 
hi dear all I am a new member , my question is about store one char array with 2 for loop to one char 2D array . I write the code and when call this function...
[6 replies] Last: Dear kbw Thank you so much it was a good point and help to me ... (by paeez)
[Question] Modifying Windows 7
 
Hey everyone, I want to customize Windows 7 with C++. For instance, I want to add sound effects, visual effects and other gimmicky stuff. Would it be possible t...
[2 replies] Last: You'd need to modify whatever Windows 7's MSGINA is. (I'm pretty sure ... (by Duthomhas)
by Faaz
Display it on the screen
 
hey ive got this code which calculates pollution for 6days and then shows the average entered by the user e.g. if i enter 40,50,40,50,40,50 it will calculate an...
[no replies]
problem with array
 
okey this is my first time i got a proplem witch i could not solve with google :s any way this is just the basic of the code i'm using Microsoft visual c++ 2...
[4 replies] Last: No problem, anytime. (by ultifinitus)
calculating game
 
hi everyone, plz guide me. actually i m new here & want that computer randomly generate two numbers and one must add them in the defined time limit and type the...
[2 replies] Last: If you're creating this program for Windows, maybe you could #include ... (by Johnnyboy)
by paeez
calling array
 
hi dear all I wanted to know how I can use one array in one function that this array has gotten from another function . all of these functions are in one ...
[5 replies] Last: In C++ one typically uses std::vector for this sort of thing, avoidi... (by PanGalactic)
by mIXpRo
default parameters in template
 
hii every one i want to use std::less (function object) as a default in a class template like so : template<class T,class S> if you don't know , less i...
[5 replies] Last: thnx a lot , you know c++ , i mean know know ;) (by mIXpRo)
Ask about Functional Pointer
 
Hi everybody ! Anybody helps me plz ! I have problem with functional pointer. I want to calculate single expression with function name was got from keyboard. ...
[6 replies] Last: No. Not my purpose. If do like that, I can use if or case statement, n... (by micheal9000)
Problem with password function
 
I have this header file below for getting a password in a console mode program. The problem i have is that when the getpass() returns the string rvalue, it retu...
[1 reply] : you're missing a '}' and don't put the line numbers ... use in... (by cran)
by Kyon
GenericVariables through Unions
 
I'm trying to implement a GenericVariable (which should allow people to just use that type to do practically anything) by using Unions. I want people to use: bo...
[9 replies] Last: See jsmith's comment: http://www.cplusplus.com/forum/general/34558/#m... (by kbw)
Lucas Kanade Algorithm modification
 
Hi all, I am using the Lucas Kanade demo application found in the opencv library. I am using it for tracking miniature objects. Is there a way to decrease t...
[no replies]
Unresolved External Symbol???????
 
So I am using SDL and I created a .cpp file with declaritons of global varibles then a header with extern declartions. I then included the header into a intiati...
[1 reply] : const ... is resolved directly without having variables. just put th... (by coder777)
by ML380
ban of inheritance
 
Hi! I have found question: How do I forbid opportunity of inheritance, using virtual inheritance? I thought that it's impossible in C++.
[17 replies] Last: //compiler bug \/ friend class FriendMaker<T>::Type; In Visual... (by ML380)
by Whorse
Double ended linked list remove node
 
I'm attempting to add a Remove(Class position); function to my double ended linked list, however I'm struggling. Could anyone provide any tips or code to get me...
[14 replies] Last: That seems a memory leak. You are making your nodes inaccessible and y... (by ne555)
make bootabe program
 
Hi guy: I need help to create a very simple program that can print something like: cout<<"hello"; I want this program bootable "work without any operatin...
[1 reply] : http://mikeos.berlios.de/write-your-own-os.html This one says 'This... (by Moschops)
Understanding Arrays
 
I am currently studying arrays. I think that I understand how they work, i.e., how they are filled, how elements are accessed, etc.) However, I have run into an...
[4 replies] Last: you can be overwriting important values to other programs Unless ... (by closed account 1yR4jE8b)
Is it a good idea to describe functions in header files?
 
I've heard that you shouldn't. I'd rather have another way though, instead of cluttering all of the functions at the bottom of the cpp file, and that being half...
[6 replies] Last: Boost is a good example of a major C++ project where most of the libra... (by PanGalactic)
January 2011 Pages: 1... 910111213... 24
  Archived months: [dec2010] [feb2011]

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