Beginners - November 2010 (Page 41)

by Sock
STL memory mgmt in dynamically allocated object
 
Hi, First post here, I know C++ but have just started using the STL and have a question on it's m...
[7 replies] Last: Thanks Raggers, your reply was exactly what I needed. (by Sock)
'list' was not declared in this scope
 
Hi. I think this error is likely for something really obvious, but I've done my research, and I ...
[2 replies] Last: Oh Christ, I was about to type it that way, But I never it'd necessary... (by joseplusplus)
Dynamic casting
 
Hello everyone,i wrote the following code where i try to convert a base class to a derived using dy...
[6 replies] Last: [quote=kfmfe04]In general, downcasting from a pointer to a real Base i... (by Bazzy)
by brad82
Default Arguments in functions
 
Hi All, Having come from PHP I have a few habits that are hard to kick. One such habit is being ...
[3 replies] Last: Ha, typical, I tried every combination but that one. Thanks guys. (by brad82)
by heidiK
MultiMap removing duplicates (1,2,3,4,5,6)
 
Hello Everyone. Could anyone please help me solve this problem. I am actually new to using STL. I ha...
[105 replies] Last: Helllooooooo will you please help me again?????? Pleaseeeeeeeeeeeeeeee... (by heidiK)
Name framing
 
Hi all! I'm new to both this forum and to programming. I'm having problem with this name framing-...
[3 replies] Last: You're most welcome, Kakashi333! (by kooth)
by heidiK
finding duplicates for part of a string
 
Hello everyone I am trying to find duplicates for part of a string, not the whole string. The strin...
[5 replies] Last: Hello again Athar. Please go through my problem again and see if you c... (by heidiK)
CreateFile() returning 0xffffff
 
Hello everyone, I hope you can help me with this issue! I am using Extended MAPI in order to c...
[2 replies] Last: Thanks, I did not realise that function existed, I can take it from he... (by dbridle)
by ToniAz
Output file path
 
Hello everyone! When we're using ofstreams, suppose we can create a file random.txt that would ...
[1 reply] : You can get the current directory and work out the relative difference... (by kbw)
Stupid const question
 
Hi all. Why does this code cause a compiler error ("you cannot assign to a variable that is const")....
[12 replies] Last: Dum spiro spero (by kikirikou)
Loops and inFile
 
Hey guys, I basically just need a push in the right direction. I need to create a program that re...
[1 reply] : Is there only one grade for each student? Anyway, in a loop you do th... (by hamsterman)
by dandy
stuck in this problem
 
can anyone give me a hint to solve this City Map Block Builder -if user input less than 1, wil...
[2 replies] Last: i've been tease my brain and i got some idea thank's pal, lol :D b... (by dandy)
while or for loops
 
The output should look like this: 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 1...
[3 replies] Last: here <<for (count = 100; count <= 150; count += 2) cout << count << "... (by Ibo)
by Rave
cin.fail() not working?
 
Hey, i have a small problem, what i want to do is, have the user input an integer (Ie: 1,45,65) o...
[5 replies] Last: thanks, but is there anyway to check if something is still in the buff... (by Rave)
Word by Word printing...
 
Howdi, I have this small program that reads a line from a file at a time, then, it reads one wor...
[1 reply] : The >> operator stops reading string input at whitespace, NUL, and EOF... (by Duthomhas)
verification
 
#include <iostream> #include <string> using namespace std; int i; // variable for book titles s...
[4 replies] Last: i have problem implementing this :: /*************************... (by lukelee1987)
cerr/exit(1) How to?
 
How to properly use cerr and exit(int). For instance, using an if else statment, say the else is ...
[3 replies] Last: Under Linux it's easy from the command line: myprog 2> errorfile.txt... (by jamesmk)
string delete
 
I am having trouble with my homework. The loop is not stopping inside the function. Here is what I...
[1 reply] : Don't mix tabs and spaces. for (int count=0;count<=num; ++count ) //... (by ne555)
by yulz
cout/printf dont displaying correct output
 
hi im trying to solve a problem that requires to displays asteric per 100 but my function doesnt dis...
[2 replies] Last: Thanks I got it working (by yulz)
by CLnoob
Mult. questions-
 
Guys, here is the program I am attempting to write: Write a function that returns how many number...
[4 replies] Last: here is a basic way of doing output/input for your prog #include <i... (by dreamincolor)
November 2010 Pages: 1... 39404142
  Archived months: [oct2010] [dec2010]

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