Beginners - August 2010 (Page 20)

crash on pointer delete
 
Hi all, I'm having a pointer problem where on the close of a method, the system attempts to delete local pointers and crashes. There's a bit of a chain of event...
[2 replies] Last: I don't do any explicit deletes. It's a very simple program that's onl... (by canonseer)
flow chart
 
anyone help me in flow chart. #include <iostream> #include <cmath> using namespace std; double checkScore_exam(double); // function prototype double ...
[no replies]
.txt file to 2d array - getline()
 
Hi, I managed to import data from a single dimension array and , after much hassle worked out well. However now I need to do the same with a 2d array, and AG...
[8 replies] Last: Its all sorted then, Thanks again and regards, Wissam (by wboustany)
Most efficient way of extracting hyperlinks from a file?
 
Hi Guys, I was wondering if some of you can please give me suggestions on how to extract the hyper-links from the file most efficiently. I was thinking of u...
[6 replies] Last: Ah ok. That's a good point. Thanks a lot. (by kevinchkin)
Homework
 
hey.. anyone want to do ~about an hours worth (for someone who knows their stuff) of my homwork? I will PayPal you $13.50 (negotiable.) Thanks.
[4 replies] Last: Oh, just because we won't do your homework for you, doesn't mean we ar... (by helios)
Assignment operator isn't working right
 
I'm trying out custom operators for the first time. So far, just an assignment operator. The code seems to work properly until I try to use the new object, at...
[2 replies] Last: Yeah, why does your operator=() take a pointer as it's parameter? Basi... (by Zhuge)
cancel out of loop with enter
 
This is probably really simple, but I just can't figure it out. I want to cancel out of a loop by pressing enter/return. How do I do it? I can't figure out w...
[2 replies] Last: I did a do while loop and it made this (+10 being a value I want to pr... (by Ponchosam)
Signed and Unsigned Integers
 
Hi there all, I am a beginner to C++ and am struggling on grasping a concept. I am running this script which was meant to help me understand the difference b...
[6 replies] Last: WARNING: overly technical explanation below Note that this behavio... (by Disch)
Assignment operator isn't being called
 
"Copying" never appears. Why? struct Junk{ int x; Junk *Junk::operator= (const Junk *inc){ this->x = inc->x; cout << "Copying\n...
[10 replies] Last: Here is an example of some of the problems that pointers carry: htt... (by Galik)
Basic problem I can't fix....
 
Ok I know where the error is, but I don't understand what is wrong... heres the full code. #include<iostream> #include<iomanip> #include<windows.h> #in...
[4 replies] Last: Ohh I see my error! Thank you very much! Much appreciated guys! (by bobhaha)
devc++ problem
 
i am new to c++ programming so i just installed devc++ and i just tried to compile a simple hello world program. but when i try to compile this program it just ...
[9 replies] Last: thanks everybody (by umar10001)
Not enough memory?
 
Hello, I was assigned to make this program that it's really easy of first inputing a number(m) to find 2 numbers numbers that when they sum, they equal to m. Th...
[5 replies] Last: It's the heap , you know. (by filipe)
Making a counter
 
Hey everybody. I'm making a program that makes it so that when you press a key, it adds a certain amount of points to a running total. I have the pressing a ...
[2 replies] Last: I have this hobbyjobby code compiled from several internet sources and... (by Ponchosam)
by Skico
Linking code::blocks with wxWidgets
 
I think I managed to succesfully build wxWidgets but now I need to tell c::b where to find it because im still getting errors like this: C:\wxWidgets-2.8.10\in...
[no replies]
MEMORY ALLOCATION TO 2 DIMENSIONAL ARRAY
 
HI, I AM WORKING WITH A MATRIX OF ORDER 15 LAC X 15 LAC . MY SYSTEM HAVING AMEMORY 2GBDDR2. PROCESSOR OF 2.1 GHZ. NOW I MADE A MEMORY OF 21000X21000 BY A METHO...
[5 replies] Last: in my matrix its a dioganal matrix having values in diagonal only The... (by helios)
Check if key exists in std::map
 
Is there built in functionality for this as a boolean value? It seems the simplest way is to use find(key) and check to see if it returns map::end?
[9 replies] Last: About the original question, see std::map::count: http://www.cplusplu... (by moorecm)
why is my program not working
 
// please work.cpp : Defines the entry point for the console application. // /*****************************************************/ /* File: Ehren William...
[12 replies] Last: Add cin.get(); before return 0; so that the window sho... (by Luiwtf)
could it be that my number is so small that it is nan?
 
Hi. In my coce, I need to handle small numbers (~e-22) but not always so I can't scale the problem (maybe I'll be able to do so later). During the code, I n...
[2 replies] Last: I tried something similar and got the same results. I would love to po... (by yotama9)
by Kyon
Initializer Lists and Inlining Constructors
 
Just as the topic name reads, Initializer Lists and Inlining Constructors (and Destructors). Do these two in anyway improve performance and are they good habits...
[1 reply] : Using initializer lists isn't just a matter of performance, although a... (by Athar)
August 2010 Pages: 1... 1819202122... 28
  Archived months: [jul2010] [sep2010]

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