\gdfdsf

dsfdfdf
Last edited on
Um, I may be able to write that code for you, but why?
At least he asked nicely.

Unfortunately rifat, you will always be a not very proficient beginner unless you learn to write your own code. You must at least show some effort before you will get help here.

Can you at least write the part where the user enters their birthday and store the day, month and year as program variables???
ok im really sorry for not showing any effort...actually the thing is iv been bludging around and skipping computing classes the whole semester...truth is i'm studying mechanical engineering and didnt really see the importance of c++...hence never really payed attention...and this assignment just suddenly popped up....i promised myself that i'll go through all the lecture notes and tutorials and labs and get more familiar with c++ from this week....trust me i can do it i'm a smart kid ....the lack of proficiency really is due to a lack of effort..i know the very basics like:

#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std
void main ()
{

int monthb,dateb,yearb;
cout<<"Enter your date of birth"<< endl;
cin>>dateb;
cin>>monthb;
cin>>yearb;

(I'm unsure about the rest, esp the floor function and the prime factors thing...soo this is pretty much i have soo far...plz help!!)
main must return int
Double threath
http://www.cplusplus.com/forum/general/33213/
Topic archived. No new replies allowed.