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

reading scaning and changing info in a text
 
hi i am not an expert in c++ nor do i know how to work properly on the windows forms application in c++. the thing is that i was able to produce in the win...
[no replies]
Exit a loop
 
Hi, I need to be able to exit a loop when a specific key is pressed (yes i have seen the other threads about this and none of them work). I would like to ...
[1 reply] : http://www.cplusplus.com/forum/beginner/1147/ (by kbw)
by holtaf
POP3
 
Hi guys! who can tell me how can i use pop3 protocol in c++? i searched everywere but found nothing...or tell me good tutorial...
[1 reply] : Really - you typed pop3 protocol into google and you got no hits??... (by guestgulkan)
checking integer or double, and a little problem (1,2)
 
Hi all, I am trying to create a program which computes the function.I tried to take only the integers from ,for example, 1.4 to 5.9 but it dont works. Any hel...
[27 replies] Last: sry i dint understood correctly. Ok now it seems that everything is d... (by Jennifer)
an implementation for the Pointer class.
 
Main() { Pointer ptr = new int(10); Pointer ptr2 = new char; Pointer ptr3 = ptr2; int I = *ptr; } writing a c++ pointer class, for the above input.
[9 replies] Last: yah I am sorry != operator is not getting called (by suhastheju)
function as agument ?
 
i need for one of my projects to pass a function into a function example : double differencial( double x , double dx , ??? func ) { return ( func( x + dx...
[2 replies] Last: The way to declare variables which are pointers to functions is a litt... (by jsmith)
spliting file problem
 
when spiting my programs in files [ .cpp & .h ] i get this 2 errors - double definision - cant find this until now i only get my progams to work if in o...
[1 reply] : You've obviously removed the code for some functions and have code in ... (by kbw)
template linker error
 
This is how the overloaded operator looks like... //.h template<class T> Value& operator>>( Value& v, T& type ); //.cpp template<class T> Value& operat...
[2 replies] Last: oh.. did not know that.. good to know. Thanks :D (by adikid89)
by Faim
Tree Delete
 
This code is inserting numbers into tree with templates.But i couldn't succeed to delete them with templates.Does anyone know how to delete? template <class...
[6 replies] Last: Your Find doesn't make sense. Find(Data* d) is a recursive function... (by hamsterman)
by Deran
Game engine structure
 
Hello! I'm currently writing a small game and have hit a little snag with the structuring of my engine, and was hoping someone here could give me a few point...
[9 replies] Last: I've implemented this pattern now and it works great! Thanks for all t... (by Deran)
Invalid array assignment
 
Hey, i have a little problem and i have no clue what i am doing wrong :( Following C++ Code (i can't show you the full application): startLambdaSet = *...
[2 replies] Last: Hmm...yeah...sorry...i am such an idiot...well, thanks ^^ Sometimes y... (by bluefisch200)
Cache optimization with std::vector
 
Hi, This is a general question of how to optimize an array so that you get a better cache hit. Lets say you have two arrays, for instance defined from the...
[3 replies] Last: hi dear all I am a new member , I did not know how can I ask my q... (by paeez)
by luke12
gnuplot
 
within gnuplot: how do you extract certain things for plotting. for example let's say I need to plot ax^3+bx^2+cx+d and I have a,b,c,d along with a bunch of ot...
[no replies]
Set of points to spline
 
Hey guys, I'm considering a project for uni, working with GPS data. I was wondering if anyone knew of an existing library that would take a set of 2D cartesi...
[1 reply] : Probably, look up math libraries, one of them are likely to have a fun... (by Seraphimsan)
Playing wave sounds
 
Whenever I use PlaySound() I get the error c:\documents and settings\CPlusPlus\my documents\visual studio 2010\projects\wave\wave\wave.cpp(8): error C2664: '...
[7 replies] Last: Or just don't use \ at all and use / like you should (by Disch)
List iterators not equal - conditional agrees - if block is still entered
 
Hello, I am searching a list to ensure duplicate elements are not added to it. I am not using a std::set because I don't want elements with the same key to ...
[1 reply] : I've discovered there isn't anything mysterious going on. I made an e... (by simulacrum)
Bit of a problem in making a map(array) for a little game
 
Okay, this is a the code for refreshing a map(2D array) and printing it to the console, and taking input from the keyboard on where you want your character(X) t...
[6 replies] Last: As I am sure by now you are probably smacking your face in annoyance. ... (by Hilo890)
smart way to trim string
 
Hello I am having a string - e. g. std::string sTemp = "http://www.cplusplus.com/forum/post.cgi.1" From this I want to extract post.cgi , is there wany sm...
[3 replies] Last: Simple. std::string sTemp = "http://www.cplusplus.com/forum/post... (by Duthomhas)
by Janlan
Write and read files problem
 
I new to this so any help is welcomed :) I want to find text document and everything what's in it to be printed on the screen
[5 replies] Last: You won't get more help than this unless you show your efforts (by Bazzy)
by Whorse
Insert before *this realocation. (1,2,3)
 
I've been struggling for hours to implement this correctly but I'm assuming it's beyond my skill level at the moment. I'm attempting to insert a node into a lin...
[45 replies] Last: That's what I was thinking. But the brief I'm working off clearly uses... (by Whorse)
January 2011 Pages: 1... 1213141516... 24
  Archived months: [dec2010] [feb2011]

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