LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2012, 04:09 PM   #1
kakax
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Rep: Reputation: Disabled
need help


i want to get the input in "input.txt" file and parse it to integers digit stack , and characters to char stack.

Example: (input.txt file includes data “2 0 0 0 a b b b 1 3”)

Enter n : 7
Enter command (Type e to exit): l
3 1 -3 2(digit stack)
294 a (char stack)
 
Old 11-08-2012, 04:32 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
You should explain in more detail what you want to achieve.

Please use [CODE]code-tags[/CODE]

And tell us your own considerations so far.

Markus
 
Old 11-08-2012, 05:13 PM   #3
kakax
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
we will create a letter stack that stores characters, and digit stack that stores integers using a doubly linked list.
i wanna compress the data in "input.txt" file.characters to character stack, digits to digit stack
for more information..
 
Old 11-08-2012, 05:16 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Well, which programming-language do you want to use?

Markus
 
Old 11-08-2012, 05:22 PM   #5
kakax
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
i use c programing language.i know java language but not well c.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration