Beginners - February 2011 (Page 34)

by GulHK
reading data from a large text file
 
Hello all I am reading a large file (39.7 MB) and searching for a substring in each line. If the program finds one, then it stores that line in a vector. The...
[12 replies] Last: Alright Grey Wolf Thank you sooo much :) (by GulHK)
by Jawsh
How to extract input from a txt file and convert string to double?
 
Hi everyone, I am an absolute beginner self learning C++ and would require some help for this problem I am facing please! Sorry I really do not have any idea...
[6 replies] Last: Thank you everyone! I have managed to achieve my desired outcome us... (by Jawsh)
Mad Lib problem
 
Hi, newbie here. I'm working on a simple program having to do with mad libs. This is the code. #include <iostream> using namespace std; int main() { ...
[9 replies] Last: You never enter anything for your_name. Either have the user enter ... (by BigPlayChad8)
by Janlan
int lenght
 
How can I input only two-digit number in c++?
[4 replies] Last: You can convert the int to a string and check its length, you can read... (by Athar)
The problem of access speed between [][] and iterator(or pointer)
 
size_t A ; for(size_t i = 0; i < 10; ++i) for(size_t j = 0; j < 10; ++j) A = i + j; //would compiler inteprete this to //*(A + (...
[5 replies] Last: I agree with you, Abramus I should pay more times on the algorithm->d... (by stereoMatching)
passing by value & reference
 
I wanna know differences between passing by value and passing by reference Pls explain me :)
[3 replies] Last: Also http://www.cplusplus.com/forum/articles/20193/ (by jsmith)
by ijg213
OOP - passing val by value or reference
 
I have years of Java experience, as well as with numerous other garbage collected langs. I'm beginning some projects in C++ and trying to get my head around new...
[3 replies] Last: where do I delete A reasonable place is to add a Remove method to the... (by kbw)
by GulHK
How can I find topics posted by myself?
 
.....................
[9 replies] Last: Thank you so much Grey Wolf :) I have sent him an email. I hope h... (by GulHK)
I am a beginner. Whats wrong with my code?
 
I am a beginner. I am trying to make a code that will have a object. It will take a character as input ans show it on the screen. I am trying to code it. But, I...
[2 replies] Last: thanks a lot. Its working (by faysal40)
How to create invalid selection.
 
Im making a program that will find Area/Perimeters. #include <iostream> #include <string> using namespace std; /////SQUARE AREA FUNCTION///// int Sqarea...
[4 replies] Last: Hm... never thought about trying that. Thanks. My logic just brought m... (by Failspur)
std::search Algorithm Error
 
Why am I getting an error on the search algorithm? If I put e in place of s.end() it works but I'm just wondering why it won't work as it is now. string s...
[6 replies] Last: Thank you ne555, that was the solution I was looking for. (by eNergizer)
by OOP
URGENT need assistance
 
Problem statement Assume that Best Transport Pte Ltd is a small company that specializes in transporting people and moving goods. It has an extensive fleet of...
[3 replies] Last: I'm sorry for the wall of text. My members and I are still working on ... (by OOP)
type promotion and type conversion
 
Hi,does anyone know the difference between Type promotion and Type conversion? I am really confused. Thanks a lot.
[2 replies] Last: promotion is only for integer type, that's the point. Thanks a lot. (by vencent)
by kaal
declaration of a function
 
is this declaration correct Void Lecture(File *f1, int X ,int n, int p) { } this function may read from a text file and store elements in x ...
[1 reply] : No. While declaring you don't use { }. Also the V in void should be s... (by anonymouscoder6)
problem with switch statements
 
can someone please tell me what is wrong with this program that it always outputs unknown mounth. #include <iostream> using namespace std; int letter; ...
[2 replies] Last: thank you I have been looking at that forever (by mgilchrist)
Spliting Code into a header and new cpp
 
I need to cut up this code and make a header file and a new cpp file. I need a message.cpp and a message.h containing code dealing specifically with manipulati...
[7 replies] Last: ok thanks! That helps out a lot (by ccund001)
Header-Only Library
 
Hi, Up until this point, I have been using LIB files to construct libraries. However, I would like to experiment with header-only libraries. Is the followi...
[4 replies] Last: OK. Thanks for taking the time to post an answer. (by freakalien)
if statement, quick
 
Running in Code Blocks, void censorSentenceAt (string& msg, int pos) { int first; int last; first= findSentenceStart(msg,pos); last= findSentenceSto...
[2 replies] Last: Thanks! (by ccund001)
opening jpg in a new window
 
my question is just as the title says. i want to know how to open a jpg in a seperate window automaticly when my code opens. i have looked everywhere but i cant...
[14 replies] Last: so i have been told..... can you request a better IDE (by cainen172)
Class member function definition problem
 
Hello there, This is a piece of testing code I have: #include <iostream> using namespace std; // function return values enum {OK,FILTER_TOO_LONG}; ...
[1 reply] : class A{ friend class B; //B has access to private members of A }... (by ne555)
February 2011 Pages: 1... 3233343536... 43
  Archived months: [jan2011] [mar2011]

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