C++ Definition and 813 Threads

C++ () is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significantly over time, and modern C++ now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is almost always implemented as a compiled language, and many vendors provide C++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Oracle, and IBM, so it is available on many platforms.C++ was designed with an orientation toward system programming and embedded, resource-constrained software and large systems, with performance, efficiency, and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, video games, servers (e.g. e-commerce, web search, or databases), and performance-critical applications (e.g. telephone switches or space probes).C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2020 as ISO/IEC 14882:2020 (informally known as C++20). The C++ programming language was initially standardized in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, C++11, C++14, and C++17 standards. The current C++20 standard supersedes these with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Danish computer scientist Bjarne Stroustrup at Bell Labs since 1979 as an extension of the C language; he wanted an efficient and flexible language similar to C that also provided high-level features for program organization. Since 2012, C++ has been on a three-year release schedule with C++23 as the next planned standard.

View More On Wikipedia.org
  1. N

    C/C++ C++: Open File Multiple Times Before Exiting

    Hi. I am required to ask the user to open a file multiple times before exiting the program. How do I do this? void ReadData(vector <student> & section, int& num_Students,string& filename) { ifstream in; cout << "Please enter file name:" << endl; cin >> filename...
  2. M

    Comp Sci Why Does My C++ For Loop Increment Erratically?

    I wrote a program that is supposed to find the standard deviation of a set, but something really strange happens in a for loop that I have in my main function. int main() { int i=1; int NUMBER_OF_ELEMENTS; double data[NUMBER_OF_ELEMENTS]; cout << "Please enter the number of...
  3. G

    Comp Sci Efficient C++ Homework Help: Troubleshooting Infile Command Issues

    Homework Statement Well I have to read in data from a text file test some conditions on certain columns and count up the failures. I am having a problem with the infile command, I have tried using infile.close(); but it does not seem to reset it. while(infile>>y) { for(i;i<=(j/4);i++)...
  4. M

    Comp Sci C++ Image transformation (function help really)

    Homework Statement I'm making a program in C++ to take an image in .ppm format and either create its inverse or binary threshold. 2. The attempt at a solution #include <iostream> #include <fstream> #include <cmath> #include <cstdlib> //for exit() #include <string> #include...
  5. z-component

    C/C++ Solving a C++ Problem: Sorting Last Names in Alphabetical Order

    [SOLVED] C++ problem I'm trying to make a structure of 4 elements to store an array of items. I'm trying to sort the lastName element in alphabetical, ascending order, but I keep getting errors around the last for loop. Can someone tell me what I'm doing wrong? #include "stdafx.h"...
  6. A

    C/C++ Need Help Downloading Free C++ Programming Software

    hello everone there, sorry to bother you just wanted to ask, if anyone could help me where to download free c++ programming software. please please let me knw if anyone know it i will be very apriciated for that. u can reaply me on this add: talk2amit_rulz@hotmail.com thank you for ur time
  7. P

    Comp Sci Creating and Printing Employee Data - C++ Homework Solution

    Since I don't know how to use the code on physics forums, I'll just type the problem I'm working on I'm supposed to write a program with the class Employee that makes two employees; sets their age, yearsOfService, and Salary; and prints their values # include <iostream> using namespace...
  8. Math Is Hard

    Comp Sci Learn to Create a C++ Word Ladder Program: Step-by-Step Guide

    Hi, I'm working on a word ladder program outlined here: http://www.pic.ucla.edu/~nathan/cgi-bin/moin.cgi/la4 To get started, I am just trying to read words from a file and put them into a vector of "node"s (a struct we were given to use). So far I've only been able to read in each word...
  9. Math Is Hard

    C/C++ Compiling C++ Remotely with SSH on Windows XP

    I would like to use SSH to compile my C++ files remotely in my school's lab. I have never done this before, but I understand that I need an SSH client. So I looked at these: http://www.openssh.com/windows.html I am on Windows XP. Is there one you would recommend? thanks.
  10. M

    Comp Sci How to Correctly Implement a 2D Array with Random Values in C++?

    Homework Statement 1. Create a 2D array, A[10][10], of 100 integers. 2. Ask the user for two integers R and C where 0 < R ( 10 and 0 < C ( 10. 3. Using nested loops, fill every element A[i][j] (where 0 ( i < R and 0 ( j < C) with random numbers ranging in [0, 200]. I will describe how to...
  11. Math Is Hard

    Comp Sci Fixing C++ Card Class Errors in Visual C++ 6

    Hi. I am working on an assignment writing the implementation for a class of playing cards. http://www.pic.ucla.edu/~nathan/cgi-bin/moin.cgi/la1#head-111d7fc9df65f327018fa94234ab0b23c0857e98 Here is the header file that we were provided. //filename card.h #ifndef CARD_H #define CARD_H...
  12. P

    C/C++ C++ Programming Quiz | Challenge Your Skills with Our Thread-based Quiz

    Let me start a Quiz based on c++ programming in this thread. You are requested to give the right answer in quotes; RULE: No special rules are there.Anyway, >>The person who tells the right answer must post the next question,No one must post Q's in between. The person who answers must post a...
  13. L

    Comp Sci Solving C++ Leap Year Program: An Overview

    Homework Statement I just started my C++ courses and here is my question. Homework Equations The Attempt at a Solution //This program states whether a given year is a leap year or a non-leap year. #include <iostream.h> #include <conio.h> void main () { int year...
  14. Math Is Hard

    Comp Sci Troubleshooting a Test Program in Visual C++ 6

    I wrote a little test program to try to figure out some problems I am having in another program I'm working on. # include <iostream> # include <string> using namespace std; void ahoy(string nameEntered) { cout << "Ahoy, " << nameEntered << "!" << endl; } int main() { string...
  15. P

    C/C++ Gaming I would like to have some Gamescoded in C++

    Gaming! I would like to have some Games..coded in C++ I would like to have some Games..coded in C++... If someone have those..please post it here for me...please...
  16. H

    C/C++ Would you mind if you give me code for gauss elimination by C++

    H e l p m e I want code for gauss elimination by C++ for solving my homework
  17. H

    Comp Sci I want code (program) to solve Gaussian Elemination by C++

    Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please Help me and I will really appreciate your time and effort in helping me in my assignment. Thanks.
  18. H

    C/C++ Help me (Gaussian Elemination by C++ )

    Help me please (Gaussian Elemination by C++ ) Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please very important
  19. P

    C/C++ Hiiii,I want forums about c++ language. I am studying this language

    Hiiii, I want forums about c++ language. I am studying this language and I want increment my information about it.
  20. H

    C/C++ Solving Gaussian Elimination with C++

    Enter Here!? Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please :cry: :cry: very important:cry:
  21. C

    C/C++ Improving Projectile Motion Graphing in C++

    Hi, I've a basic knowledge of c++, but I've never learned graphing. What little I know, I've picked up myself. I am trying to graph the motion of a projectile launched with a given speed and at a given angle, but the graph doesn't complete. Also, its very spaced out. I know its a parabola so I...
  22. L

    C/C++ C++ Compiler Error in Cygwin: What Is It?

    I'm trying to learn C++ and am using Cygwin. When I try to compile my program I get the message /cygdrive/c/DOCUME~1/Stoffe/LOKALA~1/Temp/ccQt0yU6.o:driver.cpp:(.text+0x9d6): undefined reference to `Person::~Person()´ What is this kind of error?
  23. T

    C/C++ Is it POSSIBLE to integrate C++ with WITec Project 1.88? call for help~ haha

    Is it POSSIBLE to integrate C++ with WITec Project 1.88? urgent call for help~ haha hi everyone, currently i am doing a project in which i have to extract date MANUALLY from the solfware. It will be VERY tiring because the number of data I have to extract is more than 1000 times! Moreover, I...
  24. C

    C/C++ Free UML-Based C++ IDE for Code Generation

    Hi, Does anyone know of any free IDE that can generate C++ code from "drawing" in UML?
  25. C

    C/C++ Visit the following for c++ programs

    http://cprogramming.freehosting.net/
  26. C

    C/C++ How can I store and retrieve user input in a C++ program?

    I've been trying for days to get my boyfriend's C++ program to work, and I am almost ready to concede defeat, but I have frequented this site in the past as a lurker, actually learning a lot of what I know from the tutorials (thanks!). Now, I have a problem I just can't seem to solve. The...
  27. T

    C/C++ Why Am I Getting Errors in My C++ Binary Tree Implementation?

    I'm trying to write an address book that is based on a binary tree. I'm devloping in Visual C++ (I blew up my Ubuntu with the new dist), starting with the basics: #ifndef binarySearchTree_h #define binarySearchTree_h #include <string> #include <iostream> using namespace std...
  28. I

    Comp Sci Create a New Account | Online Banking System | C++ Program

    C++ program..Help! Well i am working on an online banking system.Here is my code(not so ood but its a start) #include <iostream> #include <string> using namespace std; void header() { cout<<"\t\t\tWELCOME TO ONLINE BANKING SYSTEM"<<endl; cout<<endl; }; int getacctno(); int...
  29. C

    C/C++ C++ conversion of integers into strings, how

    how to convert an input of integer(more than 1 character) type into output which is in string in c++
  30. S

    C/C++ How to Calculate Factorial and Apply Stirling's Approximation in C++?

    I need to write a program that prompts me to enter a positive integer N, after doing so it calculates the factorial of that integer and prints it. I am able to do this with the following code. #include <iostream> using namespace std; int main() { double I, N, Factorial = 1; // Do not...
  31. P

    C/C++ What Do These C++ Declarations Mean?

    Hey guys, I need a little more help here with this C++ stuff. Can anyone give me some help on how to give the meaning of these declarations: 1) const int a; 2) int const a; 3) const int *a; 4) int *const a; 5) int const * a const; Any help would be appreciated as i am new to c++ and...
  32. F

    C/C++ Setting Precision in C++: Floor Rounding to 2 Decimals

    Hey.. I'm having trouble achieving this in C++... I'm trying to do an opperation but keeping only 2 decimals, and floor rounding. ((3.52 * 4.32)/3.26) + 2.34 So I have 3.52 * 4.32 = 15.2064, but then I just round to 15.20 then 15.20/3.26 = 4.662576687116, but then I just round to...
  33. I

    C/C++ Opening a bit map in Visual C++

    Could someone recommend a way to open and edit a bitmap file in Visual C++?
  34. M

    C/C++ C++ and solving quadratic Equations

    Today, I tried to translate the very basic "solve quadratic equations" program I made a while back in Python to C++. #Solving quadratic equations import math print print "Please enter information in accordance with ax^2 + bx + c = 0" a = input("What is...
  35. Math Is Hard

    C/C++ When to Use Structs Instead of Classes in C++?

    I was trying to understand how structs differ from classes in c++ and I came across this: http://carcino.gen.nz/tech/cpp/struct_vs_class.php I was wondering.. when would you choose to use a struct in c++ rather than a class?
  36. C

    C/C++ Solve Endless Loop C++ File Problem | Banac.dat

    Hi, I am trying to display all the records stored in a file(Banac.dat) but the program keeps on returning the first record over and over again in an endless loop ( i think its endless). If anyone could help me, it would be appreciated. For the sake of simplicity, I've only included the...
  37. M

    C/C++ Can I Use Borland C++ and Visual C++ for Different Types of Programming?

    I need to know if there is a difference between programming in borland c++ and microsoft visual c++.net. Are the two languages compatable or did microsoft introduce some new syntax? Can I learn just the borland version without worrying about using the visual version later? Which versions are...
  38. P

    C/C++ C++ Programming Help for Beginners: Questions from Dan Hawhorn's Book

    hey people, Im a beginner when it comes to programming and i have just stated C++..Im finding it a bit hard and boring but its only the beginning, so i think that it would get better as i move on...Anyway i need some help with these questions... BTW for your info: I am using a book called...
  39. S

    Comp Sci C++ Pointers: Get Help Understanding Basics & Memory Savings

    Can anyone help me understand the basic use of pointers. I am aware of pointers,yet I feel that a program can be made more easier without using a pointer. My basic dout is that can pointers be used to save memory by dynamic declaration of variables. I thought over it but found that using...
  40. S

    C/C++ How to Create a Four-Digit Student Identification Number in C++?

    how can i make a student identification number to be a four digit integer and when you type 0 for the identification number it will terminates. thanks
  41. benzun_1999

    C/C++ Cin vs Scanf - C++ Input Comparison

    cin or scanf? i use cin from iostream.h in c++ i also knowabout scanf in stdio.h but which is better? What is the difference betweeen the both? -benny
  42. W

    C/C++ Microsoft Visual C++ / Tutorial

    Anybody have a link to a good site that'll teach me some of the MS C++, and is it the same as C++?
  43. D

    C/C++ Top 5 C++ Projects for 12th Grade Students: Billing & Management Ideas

    please help me !c++ projects hi guys, I am a 12th student. i am in a great trouble ! My teacher wants the name of my computer project tomorrow! pls give me some ideas for it. graphics are not allowed& it should have classes etc. teacher recommended some billing&management projects pls...
  44. K

    C/C++ How to debug a c or c++ program?

    I learn to code in the c language. i am learning the workings of C++, and Java. I already have a c/c++ compiler in my computer. My problem is: How do i "check for errors"/debug a c or java program? Are there any good tutorial online?
  45. I

    C/C++ Implementing Gaussian Elimination in C++ with Scaled Partial Pivoting

    i m having serious problem regarding this program...i m not asking u 2 make it for me...just help me with logic because i can't get gist of it...pleasezz i need help...i ve working on it like 3 hours nd its like my mind has gone blank:(
  46. I

    C/C++ Help with c++ program for series

    urgent help with c++ program for series i want to form program 2 sum this pie=4[1-1/3 +1/5 -1/7+... 1/n] { int n,z,i; float x,y,pie; cin>>n; i=0; while (i<=n) { y=1/((2*i)+1); i=i+2; } for(z=1;z<=n;z=z+2) { x=1/((2*z)+1); } pie=4*(y-x); cout<<pie; }...
  47. ranger

    C/C++ Help with C++ for Loops & Patterns

    I need some help. So far I have some for loops that print the following patters: * ** *** **** ***** ****** ******* ******** ********* ********** and ********** ********* ******** ******* ****** ***** **** *** ** * Here is the code: for(int rows=1;rows<=10;rows++) { for(int...
  48. I

    Comp Sci Mastering Palindromes: Understanding C++ Programming with Goto and For Loops

    i've just started studying programming...nd i can't understand how to write these programs: 1:to recognize palindromes using goto condition 2:to recognize palindromes using for loop 3:to convert binary into decimal nd decimal into binary i m seriously lost nd can't understand for...
  49. J

    C/C++ How to Create a Pyramid in C++?

    Hello, I am trying to print an equilateral triangle, made up of * (stars), of height 8. Can someone please give me some hint. I am not getting the desired output. Thank you. Here is my code. #include<iostream.h> #include<iomanip.h> void main() { int n=8; for (int row=1...
  50. U

    C/C++ How can I convert C code to C++ in Visual Studio 2003 .NET?

    I tried to convert from C++ to visual C++ .NET but got many errors. (I haven't used C in years) If anyone can do this for me, I'd really appreciate it. Please convert the following to visual C++ .NET code (to run on microsoft visual studio 2003 .NET)...
Back
Top