Hi there, Ive just started out learning C++ and ive been thrown 3 qns and ive got no clue how to start working on them.Im not here for the codes but rather someone could spur me up so that i can kickstart.
First of all, i need someone to recommend me good sources for beginners for File I/O ,ADTs and Dynamic Structures as im very weak them.

I'm putting up my 1st question here and i really need serious help here!
Qn 1.

Write a C++ program that creates appropriate
variables and performs the following actions:
Gets the user to enter their name and year of birth.
Adds the users names to one of two text files “wise.txt”
or “strong.txt” based on their age at the start of this year.
To be considered wise the user must have been over 21
at the beginning of this year.
(

Take a paper, take a pen.
Scribble something until it makes sense.
Posting without trying is not wise,
It just show your ignorance.

Although we are here to solve your queries,
We, can't work until we have some berries.
Those berries are your tries,
So, don't post before attempting, it makes us cry.

One more thing I tell you my friend,
There is a page by Eric S Raymond.
Which you should read, here we pray,
and that page is "How to ask question the Smart way"
(Applause)
Thank You. Thank You.

This is revenge: you irritate me with your post and I irritate you with my poetry.

commented: Nice poetry :P +8

>No, YOU write it!
Don't get carried away. I think he was just quoting his question, after all, he did say "Im not here for the codes but rather someone could spur me up so that i can kickstart."

>thrown 3 qns
I guess that means questions, use good English please.

>i need someone to recommend me good sources for beginners for File I/O, ADTs and Dynamic Structures
[link] [link] [link] and [link]

>ive got no clue how to start
Always start with something, no matter how small.

#include <iostream>
using namespace std;

int main()
{
  // You have a starting point.
}

Hope this helps.

commented: Cool use of intellect buddy...!!! :) +1
commented: Solid post! +8

Qn 1.

Write a C++ program that creates appropriate
variables and performs the following actions:
Gets the user to enter their name and year of birth.
Adds the users names to one of two text files “wise.txt”
or “strong.txt” based on their age at the start of this year.
To be considered wise the user must have been over 21
at the beginning of this year.

>Take variables for name(string type) date<day/month/year>(integer type) use cin to take inputs.Here is some help
>Get system date and find out what was user's age at the year start.You can try this help,but better resort to simpler means at first.
>Check if the user's age is greater than 21 and then use fstream pointers and use then to write within your required file.

>>In total go through this once.

Take a paper, take a pen.
Scribble something until it makes sense.
Posting without trying is not wise,
It just show your ignorance.

Although we are here to solve your queries,
We, can't work until we have some berries.
Those berries are your tries,
So, don't post before attempting, it makes us cry.

One more thing I tell you my friend,
There is a page by Eric S Raymond.
Which you should read, here we pray,
and that page is "How to ask question the Smart way"
(Applause)
Thank You. Thank You.

This is revenge: you irritate me with your post and I irritate you with my poetry.

Lol, that made my day :D . Nice poetry.

You need a class called user with variables like string name , string date of birth ,etc .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.