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.
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...
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...
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++)...
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...
[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"...
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
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...
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...
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.
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...
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...
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...
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...
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...
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...
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.
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
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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?
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...
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...
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...
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...
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...
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?
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:(
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;
}...
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...
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...
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...
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)...