Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,217 members, 7,818,743 topics. Date: Sunday, 05 May 2024 at 11:51 PM

C++ Tutorial For Beginners... Part 1... - Programming (6) - Nairaland

Nairaland Forum / Science/Technology / Programming / C++ Tutorial For Beginners... Part 1... (18990 Views)

C++ Tutorial Download Link / Java Tutorial For Beginners / Free C++ Tutorial Videos (2) (3) (4)

(1) (2) (3) (4) (5) (6) (Reply) (Go Down)

Re: C++ Tutorial For Beginners... Part 1... by Nobody: 6:49pm On Nov 13, 2014
guys go check out this thread on Java....

https://www.nairaland.com/1994878/java-tutorial-beginners#27973127

the bus is moving oh....

2 Likes 1 Share

Re: C++ Tutorial For Beginners... Part 1... by Nobody: 6:47am On Nov 14, 2014
codemarshal08:
Thanks For Sharing Your Code PreBoy grin. But i have a Question o, Are You expecting just a number or Sets of Numbers ? Because i don't think a loop will be Necessary to process a Number. shocked

Note: Am not an Expert, Just my 2cent (i believe we are all here to learn !)
ya you're right, the loop was totally unnessary.... working on it tho

1 Like 1 Share

Re: C++ Tutorial For Beginners... Part 1... by Nobody: 6:51am On Nov 14, 2014
nnasino:

To find out if a number is even or odd, simply check if there is a remainder. This can be done with the modulus operator. This is what ezechinwa suggested.
I don't understand what your code is doing exactly but i think it's a wrong way to go about it.
Correcting your code we have:
import java.util.*;

public class Main
{
public static void main(String[] args)
{
System.out.print("Enter digit: "wink);

Scanner input = new Scanner(System.in);
int a = input.nextInt();

if( a % 2 == 0)
System.out.println(a + " is an even number"wink;
else
System.out.println(a + " is an odd number"wink;
}
}

Nice job
wow java rockz!!!! editing ma codes ASAP.... thanks for the correction, looking forward to your Java thread

1 Like 1 Share

Re: C++ Tutorial For Beginners... Part 1... by harby: 4:54pm On Nov 17, 2014
Preboy.. Pls need yur help to get back at the 9jadevelopers forum ..it me harby .. Lost the grup to my stole phone .. Pls u can send me message on this 08097214275
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 5:14am On Nov 18, 2014
harby:
Preboy.. Pls need yur help to get back at the 9jadevelopers forum ..it me harby .. Lost the grup to my stole phone .. Pls u can send me message on this 08097214275
long time you see, I hope you're doing alright... anyway abt the group, I think it got disbanded. it was fun while it lasted though

1 Like

Re: C++ Tutorial For Beginners... Part 1... by harby: 12:01pm On Nov 18, 2014
Preboy:

long time you see, I hope you're doing alright... anyway abt the group, I think it got disbanded. it was fun while it lasted though
.. Eheheh.. Aiit use still do use whatsapp nw .. We can still ignite something .. Let work in hands
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 7:22pm On Nov 18, 2014
harby:
.. Eheheh.. Aiit use still do use whatsapp nw .. We can still ignite something .. Let work in hands
bro just accept that itz gone, we had a great time, we learnt a lot bt we still gotta move on. I can help you with Mills, Tjones and andylee's contact if you need it

BTW, have you decided on a language yet? you were kinda confused back then.
Re: C++ Tutorial For Beginners... Part 1... by harby: 8:48am On Nov 19, 2014
Preboy:

bro just accept that itz gone, we had a great time, we learnt a lot bt we still gotta move on. I can help you with Mills, Tjones and andylee's contact if you need it

BTW, have you decided on a language yet? you were kinda confused back then.
aiit i will b tankful wie tht, on being confused.. Well i just want social approval then .. But nw im learning to listen to the machine and talk to the machine .. Elite programmer ..im majoring on low languages first before moving on to perl and later ruby .. I can nw speak c# abit .. Buh proficient with C .. My intel assembly language also on for completion .. And im undertaking a course on architecture .. So u see i aint longer confused.
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 4:05pm On Nov 19, 2014
Ezechinwa:
guys go check out this thread on Java....

https://www.nairaland.com/1994878/java-tutorial-beginners#27973127

the bus is moving oh....

wow... moving right away.....
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 7:47pm On Nov 19, 2014
badboy92:


wow... moving right away.....

lol...
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 10:23pm On Nov 19, 2014
harby:
aiit i will b tankful wie tht, on being confused.. Well i just want social approval then .. But nw im learning to listen to the machine and talk to the machine .. Elite programmer ..im majoring on low languages first before moving on to perl and later ruby .. I can nw speak c# abit .. Buh proficient with C .. My intel assembly language also on for completion .. And im undertaking a course on architecture .. So u see i aint longer confused.
certainly, I'm wowed!!!... that's quite a lot of languages, keep it up bro
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 11:20pm On Nov 19, 2014
Preboy:

certainly, I'm wowed!!!... that's quite a lot of languages, keep it up bro

thnks for d follow pboy .. am also following back!!!
Re: C++ Tutorial For Beginners... Part 1... by JAGZZ: 2:06pm On Nov 20, 2014
Ezechinwa , I commend your efforts.

Please help with this question: Write a program to sum ten integers in C++ and Java

1 Like

Re: C++ Tutorial For Beginners... Part 1... by Nobody: 1:47am On Nov 21, 2014
JAGZZ:
Ezechinwa , I commend your efforts.

Please help with this question: Write a program to sum ten integers in C++ and Java

hello sir.... thnks...
for cpp...

#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;
int main ()
{

// lets define our parameters...

int Y ; // output
int A;
int B;
int C;
int D;
int E;
int F;
int G;
int H;
inf I;
int J;


// step 2..... query the user....

cout << " Enter the first number : \n" ;
cin >> A;

cout << " Enter the second number : \n";
cin >> B;

cout << " Enter the third number : \n ";
cin >> C;

cout << " Enter the fourth number : \n";
cin >> D;

cout << " Enter the fifth number : \n";
cin >> E;

cout << " Enter the sixth number : \n";
cin >> F;

cout << " Enter the seventh number : \n";
cin >> G;

cout << "Enter the eighth number : \n";
cin >> H;

cout << " Enter the ninth number : \n ";
cin >> I;

cout << " Enter the tenth number : \n " ;
cin >> J;

// step 3.. perform mathematical operation...

Y=(A + B + C + D + E + F + G + H + I + J) ;

// final step.. display output ..

cout << " The sum of the inputed numbers is = \n";
cout << Y;


system ( "PAUSE"wink;
return 0;


}
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 1:49am On Nov 21, 2014
Ezechinwa:


hello sir.... thnks...
for cpp...

#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;
int main ()
{

// lets define our parameters...

int Y ; // output
int A;
int B;
int C;
int D;
int E;
int F;
int G;
int H;
inf I;
int J;


// step 2..... query the user....

cout << " Enter the first number : \n" ;
cin >> A;

cout << " Enter the second number : \n";
cin >> B;

cout << " Enter the third number : \n ";
cin >> C;

cout << " Enter the fourth number : \n";
cin >> D;

cout << " Enter the fifth number : \n";
cin >> E;

cout << " Enter the sixth number : \n";
cin >> F;

cout << " Enter the seventh number : \n";
cin >> G;

cout << "Enter the eighth number : \n";
cin >> H;

cout << " Enter the ninth number : \n ";
cin >> I;

cout << " Enter the tenth number : \n " ;
cin >> J;

// step 3.. perform mathematical operation...

Y=(A + B + C + D + E + F + G + H + I + J) ;

// final step.. display output ..

cout << " The sum of the inputed numbers is = \n";
cout << Y;


system ( "PAUSE"wink;
return 0;


}


pls once again ignore dat smiley .. and for java... ask the question in the thread...

https://www.nairaland.com/1994878/java-
tutorial-beginners#27973127

have a wonderful night rest sir...

1 Like 2 Shares

Re: C++ Tutorial For Beginners... Part 1... by Sirnuel: 12:15am On Nov 24, 2014
Can you help me with link to good C++ pdf books??

Really want to go deep into it

and pls can you write a program that plays a birthday song on a certain date (let say 12 of december at 12midnight) automatically?? Something like an alarm clock??
Re: C++ Tutorial For Beginners... Part 1... by pioneer195(m): 4:23pm On Nov 24, 2014
Interesting...

1 Like

Re: C++ Tutorial For Beginners... Part 1... by umaryusuf(m): 7:16pm On Nov 24, 2014
I think someone here will be interested in this;~ A beginners tutorial on a Python wrapper for the cross-platform C++ GUI API wxWidgets is going on here: https://www.nairaland.com/2008698/learn-how-build-desktop-software

See you there!
Re: C++ Tutorial For Beginners... Part 1... by samlexxy: 11:49pm On Dec 06, 2014
good tutorial and write ups. I'd like if you could help me with. a program to print prime Numbers.
Re: C++ Tutorial For Beginners... Part 1... by codemarshal08(m): 5:44am On Dec 07, 2014
samlexxy:
good tutorial and write ups. I'd like if you could help me with. a program to print prime Numbers.
it has been solved on this thread before. Just Check previous Pages for the codes.
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 11:05am On Dec 07, 2014
Sirnuel:
Can you help me with link to good C++ pdf books??

Really want to go deep into it

and pls can you write a program that plays a birthday song on a certain date (let say 12 of december at 12midnight) automatically?? Something like an alarm clock??

don't know abt pdf books.. mostly use youtube.com to learn.. but i will ask my friends n get back to you...
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 11:05am On Dec 07, 2014
umaryusuf:
I think someone here will be interested in this;~ A beginners tutorial on a Python wrapper for the cross-platform C++ GUI API wxWidgets is going on here: https://www.nairaland.com/2008698/learn-how-build-desktop-software

See you there!

cool...
Re: C++ Tutorial For Beginners... Part 1... by codemarshal08(m): 11:33am On Dec 07, 2014
Eze, how is studies na ?
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 3:00pm On Dec 07, 2014
codemarshal08:
Eze, how is studies na ?

brother i just dey wait make my lecturers come oh.. but na materials i dey gather for d new semester... how ur side na?
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 3:00pm On Dec 07, 2014
codemarshal08:

it has been solved on this thread before. Just Check previous Pages for the codes.

big ups bro....
Re: C++ Tutorial For Beginners... Part 1... by codemarshal08(m): 3:14pm On Dec 07, 2014
i just dey o, sharing time between work and coding !
Re: C++ Tutorial For Beginners... Part 1... by Nobody: 3:17pm On Dec 07, 2014
codemarshal08:
i just dey o, sharing time between work and coding !

bless bro... have fun...
Re: C++ Tutorial For Beginners... Part 1... by peterincredible: 5:40pm On Feb 03, 2015
pls can any body pls help me write a program of how to delete from a tree pls I am having a serious problem in writing it
Re: C++ Tutorial For Beginners... Part 1... by swscorpio: 9:31pm On Mar 15, 2017
Ezechinwa:


hello sir.... thnks...
for cpp...

#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;
int main ()
{


// lets define our parameters...

int Y ; // output
int A;
int B;
int C;
int D;
int E;
int F;
int G;
int H;
inf I;
int J;


// step 2..... query the user....

cout << " Enter the first number : \n" ;
cin >> A;

cout << " Enter the second number : \n";
cin >> B;

cout << " Enter the third number : \n ";
cin >> C;

cout << " Enter the fourth number : \n";
cin >> D;

cout << " Enter the fifth number : \n";
cin >> E;

cout << " Enter the sixth number : \n";
cin >> F;

cout << " Enter the seventh number : \n";
cin >> G;

cout << "Enter the eighth number : \n";
cin >> H;

cout << " Enter the ninth number : \n ";
cin >> I;

cout << " Enter the tenth number : \n " ;
cin >> J;

// step 3.. perform mathematical operation...

Y=(A + B + C + D + E + F + G + H + I + J) ;

// final step.. display output ..

cout << " The sum of the inputed numbers is = \n";
cout << Y;


system ( "PAUSE"wink;
return 0;


}


Please can i have ur contact,pls.... Mine is 08033911393 (what to discuss something with you,pls) Tnx

(1) (2) (3) (4) (5) (6) (Reply)

C# - Capturing File Name From A FileUpload Control In Asp.net / Web Based Software Vs Standalone Solution / Simple Code Challenge: C#, Java, C, C++

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 48
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.