| | |
homework help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 4
Reputation:
Solved Threads: 0
I'm trying to write a program for a homework assignment and basically have no idea what to do now... if anyone could help me by pointing me in the right direction it would really help....
Write a C++ program that includes a function called "find_a()". This function will take a arbitrary input stream reference as a parameter, then read characters in from the stream until it finds an 'a'. The function should then return the number of characters read.
Your main function for this assignment only needs two lines of code:
cout find_a(cin);
return 0;
Write a C++ program that includes a function called "find_a()". This function will take a arbitrary input stream reference as a parameter, then read characters in from the stream until it finds an 'a'. The function should then return the number of characters read.
Your main function for this assignment only needs two lines of code:
cout find_a(cin);
return 0;
•
•
Join Date: Oct 2007
Posts: 4
Reputation:
Solved Threads: 0
honestly all i have is....
im not very good with this
C++ Syntax (Toggle Plain Text)
int main() { cout find_a(cin); return 0; }
im not very good with this
![]() |
Similar Threads
- We only give homework help to those who show effort (Computer Science)
- Need help with Computer Science homework (Computer Science)
- Dynamic memory allocation homework (C++)
- Homework Help!! Priority Queue ?? (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: fibonacci
- Next Thread: Dynamic Allocating memory
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






