![]() |
|
#1
|
|||
|
|||
Error C0265 'count' undeclared identifierHi, I'm a college student and need some help with my homework assignment.
the assignment is as follows: Write a program that asks the user to enter his birth date in three different lines (day, month, year). The program should then display in three separate lines how many years, months and days have passed from the birth date to the due date of the assignment... I only been in this class for a week, I joined it late and my assignment is due this Monday. So far, I'm trying to solve the first part first but keep getting an error C0265 'count' undeclared identifier This is what i got: CPP / C++ / C Code:
THIS IS MY FIRST POST ANY HELP WOULD BE GREATLY APPRECIATED Last edited by admin : 06-Sep-2008 at 18:40.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Error C0265 'count' undeclared identifierI don't know where 'count' comes from , I don't see it in what you posted.
But I do see an incomplete 'cout << ' statement. You need to : CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Error C0265 'count' undeclared identifierI don't know if this is actually of any help or not, but when i first started writing C++ I used to constantly mis-type 'cout' as 'count', maybe that is where that error came from
|
|
#4
|
|||
|
|||
Re: Error C0265 'count' undeclared identifieractually i did do that but then i corrected it.
then i try to build it and it gave me the same error i use visual 2005 compiler. |
|
#5
|
|||
|
|||
Re: Error C0265 'count' undeclared identifierQuote:
|
|
#6
|
|||
|
|||
Re: Error C0265 'count' undeclared identifierYes, it is very important to post exactly :
- your code (so we can compile and run it and compare with your comments) - the output from compiling (and use the maximum warning settings when compiling) ... and if it runs and has a problem: - post the part ot the output which domonstrates the problem too. Don't be shy about it, we were all beginners at one time. Make sense? |
|
#7
|
|||
|
|||
Re: Error C0265 'count' undeclared identifierthanks guys for the input
i was able to get a tutor online to help me solve my problem, last night im not sure why i kept getting "count" errors, if i didnt have it on the solution file, maybe i clear the error lists and create a new file. this is the code i came up with, it was to determine month, day, year from assignment due date. i already turned it in, so, if im wrong oh well, i got assignment 2 already. thanks for the help again CPP / C++ / C Code:
Last edited by LuciWiz : 17-Sep-2008 at 07:35.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|
#8
|
|||
|
|||
Re: Error C0265 'count' undeclared identifieractually i did mispell "cout" with "count",
once i fixed the error it was still showing up though, weird |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Circular Linked Queue Copy Constructor and Assignment Operator Not Working? | wc3promet | C++ Forum | 1 | 06-Oct-2008 04:00 |
| Assignment Operator and Pointer | Peter_APIIT | C++ Forum | 14 | 25-Sep-2007 06:36 |
| double concatenated dynamic list - different type assignment warning | dlp | C Programming Language | 11 | 01-Jun-2007 08:59 |
| Am I reading this assignment correctly? | earachefl | C++ Forum | 2 | 09-May-2006 10:39 |
| Not sure I understand this assignment.... | earachefl | C++ Forum | 7 | 05-May-2006 17:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The