Anonymous
#include<stdio.h> int main() { int year; printf("\n Enter a YEAR :\n"); scanf("%d",&year); if(year%4==0&& year%100!=0||year%400==0) printf("\n Its a leap year.\n"); else printf("\nits not a leap year.\n"); return 0; }
Anonymous
nope
Anonymous
its in c
Anonymous
do you want in c++?
Anonymous
Any help ?
Download mingw variant
Anonymous
Also learn to be patient
Anonymous
Thats C++?
#include<iostream> using namespace std; int main() { int year; cout<<"enter a Year:"<<endl; cin>>year; if(year%4==0&& year%100!=0||year%400==0) cout<<"\n Its a leap year.\n"<<endl; else cout<<"\n Its not a leap year.\n"<<endl; return 0; }
Anonymous
now its in c++
Anonymous
thanks
welcome
Anonymous
Who are learning Html?
Anonymous
basic or deep?
Anonymous
Basic
Anonymous
know some basic
Anonymous
IS here anyone who would like to help me in making a c++ code of nested switch ...as example for restaurant billing system
Jussi
I need graphics.h pleaaase
LOL there might be a good million different graphics.h files
Dima
lool
Jussi
But no compiler found
Install a compiler
Anonymous
Install a compiler
Which is best to install
Jussi
Or are you on windows or linux?
Anonymous
Windows
Anonymous
Visual C
Jussi
If you are on windows, follow these steps: 1. Remove windows and throw the installation media/product key sticker to trash 2. Install linux 3. Install gcc (already installed with base packages most likely) 4. Enjoy
Anonymous
Sercan
windows has a perfectly OK development platform
Jussi
No
Jussi
windows has a perfectly OK development platform
Did you ever try to write a windows kernel driver?
Sercan
I am on debian for 2 years now, but don't discriminate him just because he wants to write c
Anonymous
My past 3 years of experience with C++ on windows at univeristy, no it's not
Dima
dayum how come I didnt yet see that sticker pack
Dima
Jussi
Thats best
Sercan
you gotta accept package managment in linux isn't the best
Dima
Anonymous
you gotta accept package managment in linux isn't the best
it's thoustands of times better than windows though
Dima
Anonymous
pkgsrc and nix are brilliant
Jussi
I prefer updating every package on the system from same package manager rather than stupid pop ups telling me that there is a new version of my HackerProgram1337
Sercan
I find functional distros quite intriguing
Sercan
but I'm just implying that a beginner doesn't need to replace his whole OS to write some C
Sercan
alright mr stallman, I'll stop now
Dima
vs for mac is great but slow AS HELL
Dima
did you try CLion?
Stanislav
vs for mac is great but slow AS HELL
vs for mac is renamed Xamarin Studio
Dima
yeah I know, still
Dima
Xcode is the best
Артём
What about Atom? Would somebody prefer it to code on C/C++?
Anonymous
Dima
not enough for big projects
Anonymous
this, but unironically
Dima
but I love customizability
Anonymous
actually, I prefer vi/ex but eh
Dima
Uciha Escanor
Jussi
Oh this group
Bilol
what
Anonymous
for cave men
Anonymous
for cave men
it always works
Anonymous
stylish guys use emacs :P
Anonymous
emacs uses some godawful config langauge anyway
Anonymous
much worse than vim's
Anonymous
when I was playing against emacs :(
Anonymous
lel
Anonymous
and more over , planning to learn it
Bilol
what is emacs??
Anonymous
what is emacs??
its an anime fighter , like naruto but much more powerful
j@ke
what is emacs??
its the kazekagi of editors
Dima
Emacs Satsuke