Beginners - April 2010 (Page 3)

Autonomous Class to store Coordinates and its conversion.
 
Dear fellows: This is my first post in this forum. Although I am relatively new to C++, I've been programming in perl for some years in data extraction. Now, I...
[no replies]
1-dimensional string arrays.
 
How would I go about opening a file and reading the data into two separate 1-dimensional string arrays. for (i = 0; i < SIZE; i++) inFile >> Name ; ...
[5 replies] Last: Well, like I said, you're not reading anything from an infile in that ... (by oghmaosiris)
Question
 
Im doing an assignment that finds the smallest and largest value of a list of integers. I got that part but my professor also wants me to output it as i.e.I get...
[1 reply] : I don't understand your question... what does your prof want you to ou... (by oghmaosiris)
How to parse an html file?
 
Hi, I'm trying to write a program that extracts values from a specific html file, yet I'm having trouble figuring a (relatively) easy way to extract certain val...
[3 replies] Last: Ok, I found a library online called CMarkup, which seems to have some ... (by GetOutOfBox)
fopen in plain c
 
Our teacher is making us write code in plain c instead of C++.. The user is to input a file name and then the program is supposed to open the file out put the f...
[no replies]
Question:using struct inside the class as return type
 
Example: // in header file class Test { private: struct Test1 { string s1; string s2; }; public: Test1 testing(Test, string, string); }; ...
[1 reply] : Consider the compiler parsing this definition. When it encounters Tes... (by moorecm)
From Linux terminal to Windows + forms
 
Hey, I got a project to do and wanted a help.. My cousin made a lil software that shows in screen the specified line or range of lines but it's running on linux...
[no replies]
by Alauda
read and print text file, from row to column
 
I have a text file containing numbers seperated by spaces. The numbers are written in rows. I want C++ to read the numbers and print them in a single column, i....
[4 replies] Last: Thanks! The now perfectly working code is given below. Thank you very ... (by Alauda)
by Leydin
My loop skips over user input option
 
Hello. I'm going through C++ Primer Plus. The exercise question says: Design a structure called car that holds the following information about an automobile...
[2 replies] Last: Read the entire section on iostreams at this FAQ site. http://www.par... (by kempofighter)
by ollie
Dynamic Memory
 
Hi I am having issues populating a vector using "new" where nodeVec is a vector where each entry consists of another vector with 3 elements. zMap is the vect...
[1 reply] : Now hold on a minute. Don't return zMap by value when it is already p... (by kempofighter)
by uehiem
I am having serious trouble with my first lab..
 
Week 1: Object Oriented C++ Programming - iLab Lab 1: C++ and Classes Part 1 L A B O V E R V I E W Scenario/Summary Program Title: The Days of the w...
[4 replies] Last: First I would recommend turning your member variable to a string (whic... (by oghmaosiris)
columns in txt file into array
 
i have a txt file with 1st column strings, 2nd integers, 3rd integers can someone help me with getting those into array of strings, int, and int example txt fi...
[3 replies] Last: A simple f >> mystring >> myint1 >> myint2; will do for each line... (by Duthomhas)
How to refer to iostate?
 
Hi, folks: i have written a program that uses an iostream member type iostate, i worte some code like those at the beginning of source file, but it seems wron...
[8 replies] Last: Yeah, i see ... i still have many questions about namespace , i will... (by akilguo)
recursion assignment
 
CAN SOMEONE PLEASE HELP ME WITH THIS ASSIGNMENT!!! I TRIED TO WRITE SOMETHIHNG AND NOTHING WORKED!!! HELP!!! III. Write a recursive function with this protot...
[no replies]
RationalNumber class operator overloading
 
this is what it is asking... the RationalNumber class should overload the stream insertion (<<) and stream extraction (>>) operators. The stream extract...
[1 reply] : You can do the following: class MyClass { bool operator<(cons... (by attaboy)
by jbl09
how do you read a text file into c++ program?
 
the text file has both text (for the first line) and integers (for other lines) and is space delimited.
[6 replies] Last: Glad to help :-) You can work with splitting the strings.... Read ... (by attaboy)
error C3861: 'stuff': identifier not found
 
//.h file code: #include <string> #include <iostream> class One { public: void showone(); }; class Two : public One { public: void sho...
[4 replies] Last: main() should not be static and returns an int. int main() { ret... (by Lodger)
by pstone
Unable to assign pointers across classes?
 
Yup, I'm new. Having a problem that is stumping the class atm. #include <iostream> #include <string> using namespace std; class Node { public: str...
[2 replies] Last: I thought I tried that - Apparently not - Works and makes sense - Than... (by pstone)
Pass char* to be initialized in function
 
Hi,I am trying to pass char* buf to the function writeToBuffer, where I want it to be initialized. It does so, but only for the local variable myBuffer. buf ...
[4 replies] Last: You get a memory write violation, because you have neglected to take ... (by guestgulkan)
by cortez
What am I doing wrong?
 
Im working on a assignment and it asks to find the lowest, highest and average temperatures...and it gives a list ten temperatures that it wants me to run to se...
[13 replies] Last: Not a problem good sir (by squirtman59)
April 2010 Pages: 12345... 35
  Archived months: [mar2010] [may2010]

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