Beginners - March 2010 (Page 16)

iomanip problem
 
Here the code and the output but it doesn't make sense... cout << endl; cout << "Coke World!"; cout << setfill( '-' ) << setw( 18 ) << endl;...
[3 replies] Last: WOW... LOL I can't believe that I missed that... I was reading what yo... (by OnymousIllusion)
by opsarc
File input reads in gibberish after file.
 
#include <string.h> #include <iostream> #include <fstream> using namespace std; int main(int argc, char *argv ) { ifstream source (argv , ios::in|ios...
[3 replies] Last: - Why would null termination even matter in this case? You should stil... (by Computergeek01)
Question about Functions
 
In my book, all throughout the Function chapter, when they call a function that was previously declared, the contents of the parameters were exactly the same. ...
[2 replies] Last: I know that it doesn't have to have the original name of the vector in... (by bustaballs)
by timmyd
manifest and .exe issues
 
I am using Visual C++ 2008 Express for a programming class. When I try to do a build, I get an error that says "1>.\Debug\TNProject3.exe.intermediate.manifest ...
[2 replies] Last: Did you try doing a rebuild? That has helped me with that problem befo... (by Zhuge)
Very simple test of calloc() and free() failing
 
Hi, I've just been introduced to dynamic memory allocation, so I've written a small test to test out how it works. Can anyone tell me why this doesn't work? ...
[2 replies] Last: These help a lot: http://www.cplusplus.com/reference/clibrary/cstdl... (by Computergeek01)
Char type
 
Is there a way to test if a value is an integer or character. Basically, I need to read a data file and if the first value is a char type i need to do one thi...
[2 replies] Last: I would use isalpha or isdigit. (by Jahmbo)
Understanding function call
 
Hi there- Can someone tell me what this means? It is defined within a class. int Num (void); And this: void Dec(int Nov) Thank you so much! Nora
[3 replies] Last: The (unsigned int) is explicitly typecasting the variable 'Num' to be ... (by sammy34)
by Jahmbo
question on pointers & functions
 
Greetings. I'm working on a program to Encrypt/Decrypt/Crack Vigenere Ciphers. So far I am up to the determining the key length of a cipher in the Crack fun...
[no replies]
for() statements problem
 
hello. can u give me the code for this output: * *** ***** ******* ********* using the ' for() ' statement. #include <iostream.h> #incl...
[18 replies] Last: thanks mathes. now i know how that happen. i'll mark this as finis... (by ecomoda)
by billy1
very confusing program
 
I have been doin this calendar program and I am completely stuck on how to finish it.i have put what i have been able to do but i cant figure out the next part....
[no replies]
by michy
string clear()
 
hi there, today i learn a new simple code: str.clear(); but when i execute the program i get error: out_of_range at memory location 0x002afad0.. wh...
[1 reply] : You have to post your code. (by jsmith)
by Metzer
Linked List with Different Class Objects (Not using STL)
 
Hi, Im having trouble with making a Linked List, using different Class Objects (Inherited objects), here are the classes which I have simplified (I know the...
[4 replies] Last: anyone? it involves run-time polymorphism but im not too sure how to ... (by Metzer)
Program works on my pc fine but it doesnt run on other pcs
 
So i built a programme and I can run it whitout any problems but whe i run it on another pc it shows error "the application has failed to start because the appl...
[3 replies] Last: Rycul (29) Feb 14, 2010 at 2:08pm I had the same problem a while... (by twitty51)
True Function Type?
 
Hello all, I have to admit,the cplusplus website is definitely the site to hang out at ;) I'm new to c++ and currently enrolled in courses and absolutely ...
[13 replies] Last: @Duoas: multi-paradigm is an understatement lol. @chimera: That's ... (by wolfcry)
Finding Errors
 
I've just begun learning C++ got some problems with error finding... I know there are some errors in these program segments but not sure exactly what they ...
[4 replies] Last: I've learnt a little about C last term and this term we're going on t... (by rachel0630)
whats the difference between int i=5 and int i(5)
 
Is there any performance difference between above statement. int i = 5; int i(5); Does above code contain any kind of difference ? Please suggest....
[2 replies] Last: No. They are both the same. int i = 5; // implicit constructor notat... (by Bazzy)
String storage - which part of Memory
 
When I run the program below, I am getting a run time error "Access violation writing location 0x01125800." The reason being the string is not stored in heap...
[7 replies] Last: @guestgulkan Thanks for your explanation I was not sure myself abou... (by Danielsson)
How come this won't work? variable = letter
 
do { cout << "Does your hotel have a 13th floor? (Y or N) "; cin >> floor13; } while (floor13 != Y || floor13 != y || floor13 != N || floor13 != n);...
[4 replies] Last: Cool , got it working , thanks a bunch ! (by whitesnow)
by kana
Accessing Friend Class
 
Hello, Code snippet below: class A{ public: void func(void); } class B{ public: friend class A; private: void func2(void); } vo...
[4 replies] Last: Right, you can directly access private variables from a friend functio... (by yoked88)
Operator overloading
 
Would anyone mind explaining this? I get overloading the extraction, insertion, and binary operaotrs. Logically, one would think that after deleting list you ...
[6 replies] Last: Clarified, thanks for the help guys, I got it! (by yoked88)
March 2010 Pages: 1... 1415161718... 34
  Archived months: [feb2010] [apr2010]

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