Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,607 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,006 people online right now. Registration is fast and FREE... Join Now!




input file

 
Reply to this topicStart new topic

input file

hsk
post 21 Nov, 2005 - 05:15 AM
Post #1


New D.I.C Head

*
Joined: 21 Nov, 2005
Posts: 2


My Contributions


hi, i want to read some data in from a file and into a matrix but i keep getting errors. i keep getting messages saying trios is not an operator. hope you can help...


Attached File(s)
Attached File  trios.cpp ( 465bytes ) Number of downloads: 5
User is offlineProfile CardPM

Go to the top of the page


Amadeus
post 21 Nov, 2005 - 05:51 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,158



Thanked 32 times

Dream Kudos: 25
My Contributions


A few areas that are causing problems.

You have declared trios as a single integer, but are trying to acess it like it is an array.

In your printf statement, you have not separated the variables by a comma.
User is offlineProfile CardPM

Go to the top of the page

hsk
post 21 Nov, 2005 - 06:13 AM
Post #3


New D.I.C Head

*
Joined: 21 Nov, 2005
Posts: 2


My Contributions


how can i get the trios as a matrix? there's 3 numbers in 10 rows, the first is a counter 1 to 10. i can't get them into 3 column 10 row matrix
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/20/08 04:20AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month