Beginners - April 2009 (Page 8)

by Tripic
ifstream.getline to a string
 
ok im going to post the full code as some of the code wont make since without the globals and yes there is a reason for making them globals i think the problem ...
[3 replies] Last: Thanx Duoas thats perfect (by Tripic)
Unable to use remove() on string?
 
I have been trying to use remove() on a file name that is stored in a string variable with no success. Is there any other way to do so?
[5 replies] Last: std::string filename = "..."; int result = remove(filename.c_str());... (by burger87)
by SJK
PROBLEM IN SOLVING TWO-DIMENSIONAL ARRAY
 
Please give some hints to solve the following program Read roll number and height of ten students and store it in an array as the first column containing th...
[4 replies] Last: SJK, you said that you tried the program and that the output was not w... (by jdd)
by masiht
emplicitly and explicitly function declaration
 
Can anyone please tell me what is the difference between declaring a function explicitly and implicitly ?
[8 replies] Last: Thanks Duoas ! (by masiht)
Heap Corruption Error on delete
 
Hello Everyone, I'm having problems deleting a new variable! I have done exactly as is shown elsewhere on the website: #define HEIGHT 5 #define WIDTH...
[6 replies] Last: Excellent, thank you guys. I was looking for it but I skimmed over it... (by tkurowski)
getline
 
void Add(string artist , string song , int i, int j) { string line; size_t found; cout << "Please enter the artist and song you would...
[2 replies] Last: wow that worked! thank you! (by shakethatmoney)
error debugging
 
hi, i try to debug a source code but i get this error: c1xx : fatal error C1083: Cannot open source file: '..\baddie.cpp': No such file or directory i found ...
[2 replies] Last: yes, i have check it, one time in the map of souce codes, and one time... (by wolfsklauw)
Lost the C++ code for this:
 
Here: Enter name of data file: sample.txt Read 1606 values from file. Largest value = 870 Smallest value = 203 Mode value = 585 Average value = 503....
[1 reply] : If it's not homework, then I assume you aren't a college or high schoo... (by jsmith)
by home56
Reading an input file and breaking it into 2 arrays
 
Good evening folks. I'm in the design phase of writing a program. The portion where I'd like feedback is if I'm trying to read from an input file that has the...
[1 reply] : So, you just need two strings? Just read the whole line into a string... (by helios)
Visual Studio Error 2440 char/pointer
 
//I know this is very basic. I found plenty of posts about error 2440 but nothign too too close to the top that looked that relevant. I have tried passing ws...
[2 replies] Last: Thanks, That helped. (by jfigmedia)
by mdgdoc
Homework almost there, please
 
I am trying to come up with the right codes and answers for this Lab. But I am a little overdone at this point any help for the correction that I need to perfor...
[10 replies] Last: And now we have yet another incompetent professional out there. I... (by kevinchkin)
how to string breakline
 
Hi. i have some problem with my prog.I need to break the string in txt.file. like in the txt.file there is a string sentence: How are you? I am fine. H...
[1 reply] : Don't post multiple topics. (by eker676)
decimal convert
 
Quick question. did I convert this correctly, the decimal form of -254 is converted to 11111111 11111111 11111111 11111101 in binary and ff ff ff 02 in he...
[8 replies] Last: You'll need a hex editor for that, but you can also do this: float... (by helios)
keyword <<
 
Hi,i have one question about '<<', i see it when i use the marco RGB , anyone can tell me what it is?Thanks in advance.
[2 replies] Last: Thanks (by kolonel)
c++ tutorial question
 
The polymorphism section of the C++ tutorial starts out saying that if int::a::b(c) {}; you should go back and reread the Classes section (it doesn't say C...
[2 replies] Last: That function has absolutely no purpose. It's best to return values fr... (by eker676)
assignment overloading
 
I'm trying to write a program that uses the stack ADT with a linked list implementation. I can't seem to overload the assignment operator. I keep getting an err...
[9 replies] Last: +1 for PanGalactic's solution. (by jsmith)
by sobi
Determining the highest,lowest and average score of a set of data in C
 
Working on a problem,here is the code.Its actually in C. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv ) { char name ; ...
[1 reply] : As you read the file line by line, keep track of the highest and lowes... (by jsmith)
Syntax incorrect
 
While learning the basics of C++, I wrote the code below and when I used the command in "Visual Studio 2008 Command Prompt" like so --- C:\.......>cl -EHsc I...
[3 replies] Last: IF is a keyword to the Windows/DOS command interpreter used to parse b... (by jsmith)
A good reference book for C++ and C
 
Hi, was just wondering if anybody knew of a good online reference or book that summarizes all the most common and widely used C and C++ libraries? A referenc...
[1 reply] : You've got a nice reference right here: http://www.cplusplus.com/refe... (by PanGalactic)
Delete a specific line from a file
 
I'm new to vb but i'm just making a simple program that stores info, allows one to display the info and also delete it. This is what i have so far: #in...
[5 replies] Last: In your Delete string your syntax is wrong. Use a vector to store stri... (by eker676)
April 2009 Pages: 1... 678910... 28
  Archived months: [mar2009] [may2009]

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