Beginners - June 2010 (Page 12)

Reading Infile to Struct
 
Hi. I am pretty new to C++ and have gotten pretty stuck. I have searched in some books and forum and have not been able to find a solution (which leads me to ...
[4 replies] Last: Thank you. I appreciate your help. (by KarlCat)
word list from cin?
 
How to read in a list of words from cin (using whitespace as separator is ok)? list<string> readStrings() { list<string> ret; while (true) { ...
[1 reply] : My misunderstanding, sorry. (by KarlisRepsons)
by Rosie
"Conversion from 'Person*' to non-scalar type 'Person' requested in OMNet++
 
I got this error when I tried to instantiate a class in my constructor. I'm not sure what the non-scalar type error means. I looked it up in various forums but ...
[3 replies] Last: Thank you, the * did fix that problem. I looked at the Singleton metho... (by Rosie)
by Leppie
How do I get around big "If else's?
 
So the code works! (Big deal), I'm still not happy with the big "If else statement and desperately need an alternative, expecially since the grids still small a...
[14 replies] Last: Somebody actually saw the movie "Cube" besides me??? Wow. (by jsmith)
Couple Questions about a Quadratic Equation Program
 
Sorry about the length, but spoiler tags are apparently a no-go on this forum. I've included a program I wrote (that works perfectly) that solves quadratics....
[4 replies] Last: You named your function sqroot(), but alg() uses sqrt() instead. sqrt... (by jsmith)
Save a bitmap without GetDiBits
 
I am making a program that will allow me to capture screenshots on my device, and as yet I found this working code snippet: #include "stdafx.h" #include<...
[no replies]
by ptz
friend function definition - type issues
 
Why doesn't the following compile and give a type error for the friend function? What would be a way to fix this? class B; class A{ public: friend vo...
[4 replies] Last: Ah, here we go, wherein bla actually does something: class A; ... (by ptz)
by michy
array works with constructor with arguments
 
hi experts, today i meet a new problem, if i have a class and constructor with arguments, example: class student{ private: int ID; string name: pub...
[4 replies] Last: thank you very good (by abu Alhassan)
Linker Error: Automatic data segments exceeds 64k
 
Hi everyone. I'm getting the above error, "Linker Error: Automatic data segments exceeds 64k", and I can't figure out why. I'm using Turbo C++ 4.5. When I ge...
[1 reply] : It sounds like the amount of addressable memory to store your variable... (by Galik)
by Leppie
Back to the beginning with do while & bool
 
it's nearly 4am and I'm trying to implement a bool do while loop so that it can only accept certain keyboard input to exit the loop useing chars, F, B, L, R. Th...
[2 replies] Last: Another suggestion Leppie, read the first 4 chapters before reading th... (by mgupta)
by fafner
vector of ifstreams
 
Im trying to create a vector containing ifstreams. The code that declares the vector is: std::vector <std::ifstream> ifs; When I try to create an ifst...
[10 replies] Last: Thank you all ;) (by fafner)
by zyky
simple (?) pointer problem. pointer value lost when returning from a function
 
Hello, I'm using a function to make a pointer point to some dinamically allocated memory (allocated by the function). The problem is that when the function re...
[5 replies] Last: Thanx Galic, that's a better solution than returning a pointer everyti... (by zyky)
problem with dynamic memory
 
hi to all ok this is my problem. Im`m learning to program by my own so i have a little issue woth memory that i cannot figure out so im asking for a little help...
[2 replies] Last: thx the () was a stupid mistake that fix all the program but if i put ... (by shadowuy)
Problem in SDL
 
Hey i'm trying to use SDL, but it doesn't work.Can you tell me if the mistake is in the code. thanks. #include "SDL/SDL.h" int main( int argc, char* arg...
[1 reply] : Define "doesn't work". (by helios)
by Nams
Return value of created process by using 'create process'
 
HI All, I am facing a problem in capturing the return value of the process that is created by create process My code goes like this : if(CreateProcess...
[6 replies] Last: Remember to close the process and thread handles in pi. cmd.exe in Da... (by kbw)
File I/O - directory problem on WinCe
 
I wonder if there are many people who program for winCE with C++, but I'm going to ask ahead anyway, maybe somone knows how to answer. I am doing an applica...
[6 replies] Last: @computergeek01: I was running a WindowsMobile 6 Device, which is... (by Maltadav)
by Nirf
Problems with member function reference
 
Hello, I am doing numerical work and am using the GSL (GNU scientific library) to help me with my endeavors. I recently had some code working procedurally, a...
[1 reply] : This is how you make a pointer to a member function: double (LensSol... (by hamsterman)
I can't figure out a way to solve it~
 
class gyt { public: gyt() { int x, y; char sinput ; char ans ; ...
[5 replies] Last: Sorry it took me so long to get back to you. When you're looking at... (by sammy34)
Can't Use Inherited Member Function
 
Hello, I have a base class which has a couple of overloaded versions of a member function. However, I found that I cannot access these methods from the deriv...
[16 replies] Last: Probably it's just a thing to speed up compile time. I don't thin... (by allfreightoncanals)
saving extra letters
 
i wrote this program and what i want it to do is copy all the data from the Memblock and put it into the DelDupTemp except for the letter that was last entere...
[3 replies] Last: Do you need to keep the file updated at all times? Reading and writing... (by helios)
June 2010 Pages: 1... 1011121314... 26
  Archived months: [may2010] [jul2010]

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