Check If A Number Is Positive, Negative Or Zero | C++ Example

  Рет қаралды 1,710

Portfolio Courses

Portfolio Courses

Күн бұрын

Пікірлер: 7
@PoetryInMotion946
@PoetryInMotion946 21 күн бұрын
A careless user can enter a character instead of an int. The program must display a message to the user that the entry in 'invalid'.
@fifaham
@fifaham Жыл бұрын
Nice video, thank you Kevin.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
You’re welcome! :-)
@fifaham
@fifaham Жыл бұрын
@@PortfolioCourses By the way Kevin, this is off the subject of this video and I dont expect an answer since it is off the subject, did it happen to have any idea if it is possible to embedd a C++ code inside C code? I have done it with Assemby where I was able to easily embedd Assembly code within C code, but I am not aware if we can do that with C embedding C++ inside it.
@PortfolioCourses
@PortfolioCourses Жыл бұрын
I missed this question before. That's a great question, but to be honest I don't know, I haven't done it. :-) It looks like it's possible though: www.oracle.com/technical-resources/articles/it-infrastructure/mixing-c-and-cplusplus.html
@tbeng12
@tbeng12 Жыл бұрын
Thanks for the tutorial sir, I've always wondered which one is faster, the one in the video or using cout 0 ? "Positive" : ( num == 0 ? "Zero" : "Negative" ) )
@PortfolioCourses
@PortfolioCourses Жыл бұрын
I don't think there will be a big performance difference either way in practice, compilers can do all sorts of interesting things to optimize execution, but if I had to guess this version is likely to be faster. :-)
Convert Kilometers To Miles | C++ Example
3:23
Portfolio Courses
Рет қаралды 1 М.
Check If A Number Is Prime | C++ Example
8:29
Portfolio Courses
Рет қаралды 27 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Bitwise Operators | C Programming Tutorial
12:19
Portfolio Courses
Рет қаралды 26 М.
C vs C++
2:39
conaticus
Рет қаралды 215 М.
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 157 М.
Bubble Sort | C Programming Example
14:53
Portfolio Courses
Рет қаралды 136 М.
C vs C++ vs C#
2:26
conaticus
Рет қаралды 1,9 МЛН
C++ Program to find the Factorial of a Number using For Loop
8:33
Example Program
Рет қаралды 120 М.
C++ program to find sum of the digits of an integer number.
14:10
Easy Computer
Рет қаралды 6 М.
Create A Menu Using A Switch Statement | C++ Example
8:45
Portfolio Courses
Рет қаралды 19 М.
WK5 - 37 Algorithm Number is Positive, Negative or Zero
6:58
Code to Career
Рет қаралды 9 М.