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 guys,
I've got the following question :
and he want's me to :
I wrote the following code :
I've solved part 1,2,4 .. but the problem is in part 3 which I don't understand what the question means (I tried by maximum and minimum the velocity and acceleration but I get the first time...
Hi guys ,,
I made a program to find the volume/mol using van der waals EOS
I know that my mistake is in
the problem is that I can't let v be alone ,, so can anyone help me to find a way to slove for v ??
Hello PF! I want to create a program/database that is capable of doing everything that I need it to, calculations, conversions etc.
I'm currently learning C++ in school, and was wondering if there was a C++ compiler for TI-84 calculators. It would make it much easier for me to program...
Hello all,
I am trying to connect to an Access database, the Northwind sample database, by following this example,
http://msdn.microsoft.com/en-us/library/cc811599.aspx
I am using a Windows XP OS with Visual C++ 2008 Express for the compiler and IDE. The program is a console...
Homework Statement
Need to split a file up into four parts, have four child processes assigned to a different part and sum that part, and then send the data to the parent process, which will then sum the four sums.
Homework Equations
Basic Fork() Knowledge and C++ Knowledge.
The...
Hello all,
Does anyone know how to open a .pdf file (or a .exe) file from a Visual C++ 2008 express edition program?
What I am trying to do is to have the user enter a number that corresponds to a certain .pdf file and have that .pdf file open for the user to read,save,print, etc ...
Is it true that most, if not all, C++ compilers tend to compile the same .h files over and over again? Say there are two .cpp files that include the same .h file, and the compiler processes one of these .cpp files & all its included header files as well. Once it gets to the second .cpp file, it...
Write a C++ program that writes all binary sequences of length 15
Guys i have totally no idea how to go about doing this. Can anyone tell me how i should go about doing this?
I've got an overloaded operator +
newtype X, Y, Z, W;W = X + Y; // works fine
W = Y + X; // works fine
// but with more arguments I'm getting compiler error
// saying there is no match for operator+
W = X + Y + Z;
Sample code
newtype operator+(newtype &A, newtype &B)
{
newtype C...
(Reminder: This is a 2nd week problem for school. First C++ programming class. very limited input/output knowledge at this point.)
Homework Statement
(paraphrased) Have user input 4 ordered pairs of coordinates that go around the quadrilateral in either the CW or CCW direction. Output the...
This is our very first assignment in C++, from the very first week of class so we don't know a whole lot yet. Keep that in mind.
Homework Statement
Write a program that will:
-input someone's height in feet and inches
-output that person's height in centimeters
-output the weight in...
Hello all,
I am using C++ 2008 Express edition to create a .dll file for use in C# and I am receiving the following error from my compilier.
"regsvr32.exe cannot be found"
I have all of the properities set correctly for the .dll creation and the .def file is specified correctly.
Does...
Hello all,
All of my C++ programming experience is in the coding of console applications and I have recently been asked to re-code some of my console applications as windows forms applications. I asked two highly experienced programmers (one a physicist and the other a financial/business...
As the title says, there are no answers for the book I'm learning C++ from, should I ignore the exercise section (well except the first exercise which is always compile and execute chapter examples) and move on or give them a try? I can get my hands on many exercises with solutions, but I'd like...
Hi, I'm working on a code where essentially I have two very large arrays q and b and I have this function Hamiltonian(double * v1, double * v2) which takes the points of two arrays and does all sorts of things with them. Anyways. If I write my code using Hamiltonian(q,b) my code runs FASTER...
I've become fairly proficient in C (relatively speaking) and want to start learning C++. However, I can't for the life of me get it working with Eclipse. I keep getting errors saying it can't find iostream, even though minGW works perfectly when compiling C.
My brother recommended Visual C++...
I've been working on learning c++ pre-emptive to going to college. I've found that I've come to learn it really well off of youtube videos. Unfortunatly there is no youtube series spanning the variety of fields in c++ that i need to learn.
I read too fast and find myself reading right into...
Hello everybody!
I found this code on the net. It seems to have worked for everybody except for me. Most of the errors say there is some linking error. I am using dev c++ 5. I would like to know if the problem is with my compiler or the program.
You can download it on...
hi!
I've started making my own games in Borland C++ 5.0
I want to learn how to detect the user's input of arrow keys (for eg. when a user presses UP,DOWN ,RIGHT or LEFT)
Can somebody please post a short tutorial on detecting arrow keys?
Thank You
Ephysics
PS-
Is this correct ?
int c =...
Hi..am just learning c++...i have a doubt..
Suppose you have a header file and you include it in your main program by using the #include directive..then do you have to compile the header file separately? Or does it get compiled with the main program?
You do NOT have to read the entire code to help me. :smile: It's just for your reference.
The problem: I keep getting the message that the file 'algorithm.h' can not be opened. But the header file is very much present in the include folder. What do i do?
The compiler I'm using is tubo...
Please help in c++ urgent
Argh! I've been trying to work out this problem for an entire week and I'm now at my wits end! I'm supposed to hand in this assignment in 7 hours and am posting my problem here as a last resort. Can i please have someone's assistance in this? I use Dev-C++.
Basically...
I don't know how to distribute large amount of molecules(say a million) to many ro-vibrational states(say 100 states), according to the relative population of these states. As is very important when I want to simulate numerically the classical trajectory of these molecules in a spatially...
How can I use graphics in my C++ code? I'm making a project of basic level (cricket score board) and I need to incorporate graphics in it. Are there any online tutorials etc. for graphics?
P.S. I use Visual C++ 6.0 compiler.
Hello all. I am designing a Gauss jordan elimination program using c++. I need a little help to code this as I am not too familiar with arrays and the operations you can perform on them.
The first question I have is how would I swap rows? I know its probably really simple but I cannot find...
Hi everyone, i have a binary search tree proble, please help me..
* Find record with key x in the tree. If not found, return the two nearest records in the tree (in alphabetical order)
* Return values:
* FOUND: Return the address of the node in the tree which contains key x, set n1 =...
PLZZZZZ HELP ME
I am crying I have a test
but, I don't know how to solve this problems
PLEASSSSSSSSE HELP
Problem#1:
Write user-defined function to take a depth (in kilometers) inside the Earth as input data; compute and print the temperature at this depth in degree Celsius and degree...
Hello thar everyone! I was just curious about three things.
-At the moment I'm taking a 3 credit Calc. class and haven't had trouble with it. I'm interested in jumping into a 4 credit Calc II next semester; is this possible to do?
-Also, I'm taking College Physics and I have done well so...
Write a program that reads a paragraph of 4 lines of text. The user can enter extra spaces between words. The length of each line does not exceed 50 characters. The program should output the following: ((Use pointers))
1. A table indicating the occurrence of each letter of the alphabet in the...
I NEED THIS C++ CODE TO WORK.The CORRECT output (line numbers added for reference):
THIS IS WHAT IS SUPPOSED TO HAPPEN.
1: MCCXXVI
2: The first number is 1226
3: LXVIIII
4: The second number is 69
5: +
6: Arithmetic operation is +
7: The sum of 1226 and 69 is...
Homework Statement
I am working on an assignment in which I have to add a method to my BST class which checks if a binary tree object is in fact a Binary Search tree. So
(1) A left child must be smaller than the parent
(2) A right child must be larger than the...
I have tried to come up with the code below so i want to improve it so tha it converts numbers 1 to 1000 to romans.. help out!
#include <iostream>
using namespace std;
int main()
{
int n;
n >=1;
cout<< "please enter an interger number:" <<endl;
cin >> n...
Help with Simple C++ code please :)
So here is the idea of the program (I have comments in the code too)
Ask the user for a number up to 5 digits long, store it in a as a string array,reverse the order
of the number (i.e. if user enters 12345 make it 54321), convert the reversed string to an...
Hi
I am relatively new to C++ and I am having a little trouble understanding, in detail, the logic
of this recursive function.
Can someone tell me if my reasoning this out is correct?
int fact (int n)
{
if (n==1)
return 1;
else
return (n*fact(n-1));
}
So if the...
Alright, so my current class assignment is to create a program that will read several accounts, whether or not its a savings, the amount in the acocunt, then make calculations for interest and fines based on that info. The setup for the input file is like this:
account checking/savings amount...
Hello,
I am working on a program about credit card that basically, generate 16 ramdom digits, a starting balance and write it to a file. The file works as an database and can be updated later.
Here is my credit card class
class CCard
{
// variables section
private:
//sixteen digits of a...
Alright, so basicly I'm writing a program that will copy three people's first and last name, current pay, and pay increase %. Then, write it to a file that gives their name, and new pay after the increase has been applied to the current pay. When I launch the program, then open the output file...
Hey guys it my first post, so please be nice :). So I am doing a problem right now and I can decide how to go about it... I am kinda lost right now, I could use an If/Else statement but it would take along time so I decided to use a loop, so here is the problem.
Program asks user to enter...
im doing course work in city college in computer science and would like to know the best way to get my foot in the door in the programming industry at this point i have completed both cs1 and cs2.
I am a novice (very novice) C++ user. I use Dev C++ on my PC. I really love it because it is very clean and simple. I just click File->new->new source code and I am there. There is an editing window and a building workspace is opened automatically.
Is there something comparable to Dev C++...
C++ -- Nested Classes
A post or two I have been working with appeared to be associated with students in a C computer language programming course. In other words, the class may have not been object oriented. Also, mentioned in one post was the concept of housekeeping being less important than...
Hi all -- I'm writing a controller for an interferometer and I need to be able to control the voltage across a terminal and read the current from a photodiode in c++. What would be a good, reasonably priced peripheral that would accomplish this, preferably with linux support?
Better yet, is...
Homework Statement
Ok, i need to make a program that will search for a substring in a given string, and replace it with another one.The Attempt at a Solution
#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;int fsubstitute(char *ulazni, char *prvi, char *drugi)...
What is wrong with mine? I am super new to programming and am trying to figure this stuff out on my own. The stuff in the tutorial is even too advanced for me.
Here it is:
I am sure it is really easy to see, but I do not understand the error :confused:
C++ compiler needed (free is nice:)
So I am taking a very basic (no pun) programming course at my university. We are working in C++ for now and we use Microsoft Visual Basic C++ 6.0 (or something to that effect).
I live waayyy off campus, so I would like to be able to work at home if...
Java or C++ - Threads HELP!
I need help with this program. I got five others to do and I won't have time to do it and it's apart of my final exam for next Tuesday, can somebody write this program:
Create 5 threads which share a file and
let "even" threads write to a file, and let "odd" delete...