LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-11-2008, 10:33 AM   #1
bewidankit
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Unhappy How to store text(strings) in a 2D character array reading from a text file(C++)


Hello everyone...
i m making a project in my college software competition.
i have to read text(like an email) from a text file and i have to store all the characters in a 2D array...
can u help me out??
i tried to do it... the program is working... but it shows some of the characters allright... but many weird characters in place of the correct characters...
I wil b grateful if u can help me quickly....
 
Old 02-11-2008, 11:15 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Well, showing us the broken code might help us fix it. Make sure you use code tags.

Also, since it is an assignment, don't expect anyone to just give you the answer. You're not learning anything if we just tell you the answer.
 
Old 02-11-2008, 11:45 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,972
Blog Entries: 11

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-14-2008, 07:08 AM   #4
bewidankit
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
its not an assignment... its a competition... i was able to fix it however... thnx for ur help....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
View Chinese character in text file using vi ufmale Red Hat 1 02-17-2008 01:05 PM
C++ Text File into String Array p2pfire Programming 2 09-18-2007 03:59 AM
reading text from a file mrobertson Programming 16 06-28-2005 12:39 PM
Using c++ to write to a text file. Im having problem with strings swatward Programming 4 02-03-2005 09:17 PM
C++ reading from text file query lrt2003 Programming 5 05-15-2004 04:25 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration