What are you looking for?
Send in My Email
Categories
- Algorithms and Data Structures (9)
- Arrays Text DSA (1)
- List Data Structure Text DSA (2)
- Queues Text DSA (1)
- Stacks Text DSA (1)
- Trees (1)
- Blogging and Bloggers (65)
- Blogger (11)
- Create Blogs (12)
- Domain Names (1)
- How To (27)
- ICT Trends (2)
- Internet (1)
- Monetize Blogs (10)
- Promote Blogs (22)
- SEO (24)
- Social Netowrks (2)
- Digg (2)
- Tips and Tricks (45)
- WordPress (14)
- C++ (10)
- Examples (5)
- Source Codes (4)
- Computer Operator Exam Preparation (15)
- Downloads (16)
- From the desk of Admin (7)
- IT and Law (3)
- MCQ Bank (8)
- Bank PO (1)
- Microsoft Word (27)
- MS Word 2003 (20)
- MS Word 2010 (7)
- MS Access (1)
- MS Excel (3)
- Off Topics (28)
- Online MCQ Test (9)
- Practical Questions (3)
- Preparation (9)
- Question Papers (8)
- Questions and Answers (11)
- Computer Officer (5)
- References (7)
- System Analysis and Design (2)
- Trainings and Tutorials (8)
- MS Excel (1)
- Tutorials & How Tos (13)
- Algorithms and Data Structures (9)
Friends from Facebook
ICT Trends on FacebookTwitter Friends
Sponsors
UserOnline
Users: 5 Guests, 2 Bots
Tag Archives: C++
Function to Center Align Text in C++ Program
Though it is simple and really intuitive to align text in center of screen through C++ program, I found many new students are confused and keep looking for any built in function. Thus, here I present the source code of function that will center the text supplied in center of screen (horizontally).
function centerText(char* s){
len=strlen(s);
int pos=(int)((80-len)/2);
for (int i=0; i<pos; i++)
cout« “ ”;
cout«s;
}
Posted in C++, Examples, Source Codes, Tutorials & How Tos
Tagged C++, center align, cplus plus, example code, Source code, text
9 Comments
C++ Tutorial and Online Ebook
There are flood of tutorials on C++ and Example source codes as well as sample codes and videos. Today I’m referring to a website dedicated to C++ learning – LearnCpp.com, ‘Tutorials to help you master C++ and object-oriented programming’.
This website is a complete online book as well. The site is divided into 18 chapters and an Appendix. The difference lies between an eBook and this site is that you can interact here but not in an eBook.
Contents
Chapter 0 Introduction / Getting Started
0.1 Introduction to these tutorials
0.2 Introduction to programming languages
0.3…
Posted in References
Tagged C++, C++ Tutorial, eBook, Exam Preparation, Online Ebook
Leave a comment
Teacher’s Presentation PPT on C++ Classes [Download]
If you remember, I’d pointed you to Ram Hari Regmi’s website for some C Programming language class Notes where he published 7 notes pdf files for free – Introduction to C, Fundamentals of C, Input Output Statements, Control Statements, Arrays, Functions, Structures and Union. If you are interested to download those 7 pdf files of class notes you can visit the link below:
http://icttrends.com/class-notes-on-c-programming-language.html
Today I’d like to point you to the same website where he has published Teacher’s PowerPoint Presentation files on C++ Classes.
To download the PowerPoint file click the link below:
C++ Classes Presentation
Download
C++ Multiple Choice Questions Set 3
1. STL is based on which of the following programming paradigms?
a. Structured Programming
b. Object Oriented Programming (OOP)
c. Functional Programming
d. Aspect Oriented Programming (AOP)
2. Which of the following correctly describes the meaning of ‘namespace’ feature in C++?
a. Namespaces refer to the memory space allocated for names used in a program
b. Namespaces refer to space between the names in a program
c. Namespaces refer to packing structure of classes in a program.
d. Namespaces provide facilities for organizing the names in a program to avoid name clashes.
3. Which of…
C/C++ Video Tutorials for Beginners
Internet is a vast resource of free learning materials and what can be a more effective to learn a practical topic like C/C++ programming? Obviously video tutorials.
Most of us are using video sharing services like YouTube to share interesting video clips among friends. But it can’t be ignored that there exist some great content in those services where the real genius people are contributing to share the wealth of knowledge. These videos help
- To learn what are the current various practices in programming.
- Different coding Standards among professional programmers as well as new students.
- Even if you
…
C++ Multiple Choice Questions Set 2
C++ Multiple Choice Questions Set 1 was posted on Monday, June 7th, 2010 and is filed under Multiple Choice Questions. You can click here to go to Questions of Set 1 and the Answers of Set 1.
Today, here are the twenty questions for second set — C++ Multiple Choice Questions Set 2. Click here for the answers of this set.
1. The conditional compilation
- It is taken care of by the compiler
- It is setting the compiler option conditionally
- It is compiling a program based on
…
Source Code of Stack Data Structure
Download Stack Class Source Code stack.cpp
The day before, we talked about stack data structure in http://data-structures-and-algorithms.psexam.com/stacks-data-structure/ regarding ‘What is data structure?’, Stack Operation, Uses of Stacks and Stack Representation. We talked a lot on theory. The explanation is never complete without an example. Here is the code for a C++ class of stack data structure.
Following is the source code for stack class and a main function to test if the class works well.
Stack Implementation as a Class
# include<iostream.h>
#
…
100 C/C++ Exam Questions
I have presented following 100 questions that were asked in different exams from C/C++ chapter. It would take long to finish answering all these questions and then publish. So, I presented the questions first and will go digging for answers in coming posts, probably. I’m planning to create a small ebook of C++ Short Questions and Answers. Will you help me by answering these questions?
- What is virtual constructors/destructors?
- What is the difference between an object and a class?
- Why can’t we overload the sizeof,
, :: .,
…
Posted in Questions and Answers
Tagged C++, Introduction to C/C++, Questions, Questions and Answers
Leave a comment
Introduction to C/C++ Questions And Answers
Q.1. Who invented C programming language and when?
C programming language was invented by Dennis Richie at Bell Telephone Laboratories in 1972.
Q.2. What were the primary goals to develop C programming language?
C programming language was developed primarily as a system language, i.e. a language to write operating systems. The primary goals were to:
- produce a minimalistic language that was easy to compile
- allowed efficient access to memory
- produce efficient code
- did not need extensive run-time support
Despite being a fairly low-level high level languge, it was designed to encourage machine and platform independent programming.
Q.3. Justify “C and Unix…
Posted in Questions and Answers
Tagged C++, Introduction to C/C++, Questions and Answers
Leave a comment
Multiple Choice Questions Set 1
This page lists 20 multiple choice questions from C++ covering all the aspects of the language. Click here to go to the answers page for multiple choice questions set 1.
1. Which of the following languages is a subset of C++ language?
A. C language
B. Java Language
C. C# language
D. B language
2. Which of the following correctly describes C++ language?
A. Statically typed language
B. Dynamically typed language
C. Both Statically and dynamically typed language
D. Type-less language
3. Which of the following keyword supports dynamic method resolution?
A. abstract
B. Virtual…
Posted in MCQ Bank
Tagged C++, Exam Preparation, MCQ, MCQ Bank, Objective Questions, Questions
2 Comments








