473,484 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can Anyone Help

6 New Member
hi there,

could any1 tell me how i would parse information that is being stored in a string into a class?

basically we are searching through a file and extracting the line of comments and storing the contents in a string. i may find several lines of code so im not sure how many strings i will have. Then i need to extract the contents in each string and display it as a list in a class

im using Dev C++ version 4.9.9.2

thanks for your help
Apr 25 '07 #1
3 1194
sicarie
4,677 Recognized Expert Moderator Specialist
hi there,

could any1 tell me how i would parse information that is being stored in a string into a class?

basically we are searching through a file and extracting the line of comments and storing the contents in a string. i may find several lines of code so im not sure how many strings i will have. Then i need to extract the contents in each string and display it as a list in a class

im using Dev C++ version 4.9.9.2

thanks for your help
I'm not sure I understand your assignment - "display it as a list in a class". There exists a string class already, are you supposed to create a new class such as a HoldComments class, and have this contain a list, which would be the comments? Or are you just supposed to display the name of the class you have removed the comments from, and then display them?
Apr 25 '07 #2
neilio2j
6 New Member
yes basically what i want is to create a new class and have this new class to contain a list which would be the comments

thanks
Apr 26 '07 #3
gpraghuram
1,275 Recognized Expert Top Contributor
HI,
Then you should have a class like this containing a vector oor list of strings.
Expand|Select|Wrap|Line Numbers
  1. class Store
  2. {
  3. list<string> comment;
  4. };
  5.  
Create a a object of the Store class and start storing the comments into the member comment.

Thanks
Raghuram
Apr 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2048
by: J. Nielsen | last post by:
I'm not a programmer and I don't have the time and energy to start learning right now So I need some help. Let's say I have made an HTML Table (consisting of three columns and six rows). In each...
14
4608
by: vic | last post by:
My manager wants me to develop a search program, that would work like they have it at edorado.com. She made up her requirements after having compared how search works at different websites, like...
6
2071
by: Kartik | last post by:
Hello, I was trying to develop a game in c++ ( text mode ), but I couldn't figure out how to make rest of the elements moving in the game while waiting for the player's input, or, how to accept...
2
3575
by: pratchaya | last post by:
This is my sample error in my MySQL Log New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions...
8
3136
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
6
1241
by: placid | last post by:
Hi all, I'm looking for anyone who is working on a project at the moment that needs help (volunteer). The last project i worked on personally was screen-scraping MySpace profiles (read more at...
6
4479
by: theintrepidfox | last post by:
Dear Group I've installed MSSQL 2005 STD on Vista and now can't attach my databases. I've installed SQL SP2 and the SQL Vista Beta Update. The error I'm getting is: Unable to open the...
11
1956
by: Ken Fine | last post by:
I am using VS.NET 2008 and like it a lot. One of the very few things I don't like is a bug that seems to spawn literally thousands of   strings, one after the other, on design view changes....
0
1003
by: canadianbacon | last post by:
Hi, I don't even know if this is the right place to post this but i will, because I need help. I'm trying to finish this basic game. but I am having troubles. If anyone wants to help me out it...
1
3127
by: sklett | last post by:
I need to bang out a quick application to extract CCITT compressed TIF images from a ton of PDFs. I've used PDFSharp in the past to work with PDFs but ti doesn't have support for the PDF...
0
7080
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6950
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6811
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4841
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3044
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
588
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.