Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : Simple User Input
Concept Learning Code Sheets

Simple user input in integer form #1712

Learning the ways to take simple user input in integer form.

Multiple integer inputs without extraction chaining #1715

Taking more than one integer input without chaining of io extraction operator >>

Multiple integer entries with extraction operator chaining #1717

Way to enter multiple integer entries in one go using extraction operator chaining

Input of different data types using cin #1719

Learning to input different data types using the standard console in object.

Trying to input a string using cin #1721

Learning the behaviour of cin on c-style string (null terminated character arrays).

Anomaly of successive use of cin for char arrays #1726

Successive use of cin will pose some difficulty when used with char arrays or c-style strings.

Input as char data and outputting as int data. #2310

A character data can be outputted as int data by typecasting.


Solved Problems

Converting input char to int and print ascii #2307

Write a c++ program to collect a single character from the user and print asc

Write a c++ program to collect a single character from the user and print ascii code of the same character and its next character.

Finding input variables errors #3190

Find error in the following program and suggest corrections. Assume that incl

Find error in the following program and suggest corrections. Assume that includes and namespace is already given.

Output writing implicit typecasting #3208

Write output of the following program if the input given is R

int ma

Write output of the following program if the input given is R

int main()
{
  char x, y=32;
  cout<<"Input an uppercase alphabet: ";
  cin>>x;
  char c=x+y;
  int d=x+y;
  cout<<"Output 1 would be "<<c<<endl;
  cout<<"Output 2 would be "<<d<<endl;
  return 0;
}
Quizzes

Code Sheets:7  Solved Problems:3  Quizzes:1
×
Introductory Sessions Beginning to Program Tokens Keyword and Identifiers Data Types Variables and Constants Operators Simple User Input Building Expressions and Formulas Simple Real World Problems Simple If and If Else Multiple-Nested-Ladder of If Else Switch case selection Simple Loops Tricks in Loops - break continue scope Loop Applications - Handling numerals Series printing loops Nested Loops Pattern printing loops Number Varieties and Crunches String Handling (Null Terminated) Strings - string class type Functions (Built-in) Functions - user defined Functions Reference Passing/Returning Arrays Concepts and 1-D Arrays Array Data Management Two dimensional arrays and Matrices Structures Basics Structures passing/returning 2D Array Memory Addressing Display Using IO Manipulation Display Using C Formatting Tricks User Defined Data Types Enumerated Types Preprocessor Directives And Macros Exception Handling Programming Paradigms and OOPs Advantages Abstraction and Encapsulation Polymorphism Inheritance Function Overloading Concepts Function Overloading Varieties Function Overloading Special Cases Defining Classes Creating and Using Class Objects Class Members Accessibility Class Function Types Inline Functions Constant Functions Nesting of Functions Class Members Scope Resolution Static Members in a Class Array of Objects Constructor Concepts Default Constructor Parameterized Constructor Copy Constructor Constructor Overloading Destructors Inheritance Fundamentals Public Derivations Private and Protected Derivations Multiple Inheritance Multi-Level Inheritance Class Nesting Data File Concepts Handling Text Files Handling Binary Files Pointer Concepts Pointer and Arrays Pointers and Functions Object Pointers This Pointer Linked Lists Stacks Queues


Back