Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-2006, 10:42 PM
swc0671 swc0671 is offline
Newbie
 
Join Date: Oct 2006
Location: in the south
Posts: 1
Rep Power: 0
swc0671 is on a distinguished road
Default Beginner at C++

I'm just getting started with C++. I have a problem I am trying to write a program for and its hard to do. Maybe someone can help me out a little.
I need to write a program that stores my data in an .dat file. The data will be a given number (int), another given number (int) with a fraction of a whole number (int), and then a cummulative number (int) and a cummulative fraction (int). I have to add the cummulative number till it = 80. Then I know how to output the end.

How many variables am I going to need for this?
When I run my compitler I keep getting the same error "75 C:\Dev-Cpp\assignment5.cpp no match for 'operator>>' in ' (&std::cin)->std::basic_istream<_CharT, _Traits>:perator>>(int&) [with "

That error is where all my troubles start. It gets worse from there. Can anyone tell me what that error message means?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-04-2006, 08:53 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 411
Rep Power: 12
Void is on a distinguished road
Default

I couldn't find any info relevant to the error number you are seeing. What compiler are you using? Is it possible for you to post your source code so that I can try to compile locally?

It looks like you will need 5 variables for this problem though and a couple more to do the calculations.
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-05-2006, 12:48 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,418
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

what are your #include's?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-21-2006, 09:40 AM
Ronin Ronin is offline
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Rep Power: 11
Ronin is on a distinguished road
Default

Could you post your code as well?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ beginner needs help Nille C and C++ 20 04-29-2007 01:30 PM


All times are GMT -5. The time now is 02:14 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads