49,761 Topics

Member Avatar for
Member Avatar for amoabengnunez.collins

imagine you have been employed as a programmer in an organization and the company uses manual way of performing simple arithmetic calculation; develop a simple calculator that will enable the sales to perform addition,multiplication and subtraction.

Member Avatar for rubberman
0
121
Member Avatar for Shiksha

I want to download c++ (one with blue screen) Please give me some idea for how to download.

Member Avatar for Shiksha
-1
236
Member Avatar for Asuna

Problem requires TRIGONOMETRY: A pipe is to be carried around the right-angled corner of two intersecting corridors. Suppose that the widths of the two intersecting corridors are 5 feet and 8 feet (see below figure). Your objective is to find the length of the longest pipe, rounded to the nearest …

Member Avatar for Schol-R-LEA
-1
344
Member Avatar for jamaica.santos.92

Hello ! :) does anyone who can give me a codes in mrt Fare matrix for my proposal in school :(

Member Avatar for mike_2000_17
0
67
Member Avatar for Captain119

Hi, i'm learning file creating and reading and i ran into a problem when i create a file with input using a loop i end up with an extra line at the end of the file and when reading the file i always get the last line repeated twice the …

Member Avatar for Captain119
0
2K
Member Avatar for Sunil_12

Hello All, I want to write a c++ code to sort a queue with the help of another queue and a non array element. Please help me getting the code.

Member Avatar for Sunil_12
0
599
Member Avatar for anwar sholi 2
Member Avatar for muhd.hadziq

i need help as soon as possible help me convert this to c program #include <iostream> #include <iomanip> using namespace std; int main() { //declare variables int totalCals = 0; int fatGrams = 0; int fatCals = 0; double fatPercent = 0.0; //enter input items cout << "Total calories: "; …

Member Avatar for muhd.hadziq
0
267
Member Avatar for catastrophe2

hello i have a program that was due, but i submitted what i can. however, i have a chance still at making the program fully functional, and so i need to submit it fast before its graded. i already have the program, and its running, but i just have a …

Member Avatar for happygeek
0
190
Member Avatar for aluhnev

//Hi all,can you please explain why using this-> in this code is optional,that is the purpose? //Code can work with not this-> too. CTime_24 operator+(int seconds); CTime_24 CTime_24 :: operator+(int seconds) { CTime_24 temp; temp.m_Seconds = this->m_Seconds + seconds; temp.m_Minutes = this->m_Minutes + temp.m_Seconds / 60; temp.m_Seconds %= 60; temp.m_Hours …

Member Avatar for aluhnev
0
148
Member Avatar for Glaven

I need to create A program That makes a 12x10 Array Grid Filled With Random Numbers From 0-99. Then I need To Allow The User To Input A Number Between 0-99 And Then The program will then search through the array and count how many of the users number there …

Member Avatar for Slavi
0
242
Member Avatar for schroaus

Hello people of the internet. I am currently learning how to program in c++ and I am having trouble with a program. This program is supposed to take in a string and write it out again wtih the ascii ordinance having a plus two i.e a = c or s …

Member Avatar for NathanOliver
0
124
Member Avatar for Jackson Festo

I GET ILLEGAL CHARACTER ''(0*1) WHEN COMPLING MY PROGRAM IN BORLAND C++ 5.02

Member Avatar for Banfa
0
214
Member Avatar for bernardo.mclobo

Hi. I'm learning C++ by myself, so I'm a noob, also i'm a mad scientist :P I'm trying to use a doubly linked list with polymorphism, and got a problem. Here is my code: #include <iostream> #include<string> #include<cstdlib> #include<cstring> #include<sstream> using namespace std; // node class template<typename T> class nodeType …

Member Avatar for bernardo.mclobo
0
410
Member Avatar for ceelos1974

My program keeps crashing once I try to make my custom class use some of its own functions My custom class looks like this: Entity.h #ifndef _ENTITIES #define _ENTITIES #include "actual.h" #include "Manager.h" struct Position { float x, y, z; }; class Entity { public: Entity(); ~Entity(); bool Init(Actual*, int); …

Member Avatar for ceelos1974
0
232
Member Avatar for theonlyoneaccount08

create a program that can compute prelim grades attendance 20 total # of days days present class standing20 quizzes 20 major exam 50 total # items total score prelim grades

Member Avatar for Schol-R-LEA
-1
114
Member Avatar for sabri1990

#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main(int argc, char** argv) { if (argc != 2) { cout << " Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread("D:\photo\sab.jpg", CV_LOAD_IMAGE_COLOR); // Read the file if (!image.data) // Check for invalid …

Member Avatar for L7Sqr
0
234
Member Avatar for HuePig

Hi, I'm trying to scroll my texture using `sprite.setTextureRect(sf::IntRect(10, y_axis, 800, 600))`. In my update I increment `y_axis++`, but then the image wont show. Heres the structure so far: init(){ if (!starField.loadFromFile("image/starfield.jpg", sf::IntRect(10, 10, 800, 600))){} s_starField.setTexture(starField); y_axis = 0; } update(){ y_axis++; s_starField.setTextureRect(sf::IntRect(10, y_axis, 800, 600)); } render(){ windows->Draw(s_starField); …

0
171
Member Avatar for aida.atef.31

there's a problem on Codeforces.com (it's for beginers) which i know it's solution but my code can't be accepted because there's a condition that i don't know how to write in C++ here's the problem: Michael has a problem in his first year of primary school. He can not write …

Member Avatar for aida.atef.31
0
178
Member Avatar for Elliott_1

Effective January 1st of each year, Gabriela receives a 5% raise on her previous year’s salary. She wants a program that calculates and displays the amount of her annual raises for the next three years. The program also should calculate and display her total salary for the three years. Annual …

Member Avatar for Lerner
0
137
Member Avatar for kotachari

Hi , any one can help me code for how to parse the below file. -*: M V3.1SP0010*20140925 #-+: 131854 # PROLIM Package V20.02 { FILE = "54377948"; COMM = "U:fe "S; { COMM = "FE_slt"S; SEQ = "FE_crt"; SEQID = "FE_slt"; MEMO = " "S; SA = HEAD; PORI …

Member Avatar for L7Sqr
0
389
Member Avatar for cambalinho

i did the Get macro and works fine: #define Get(x) [this]()->x (like you see it's a lambda function header) but i see 1 problem(sample): Get(int) like you see the type is inside of the macro function :( but i need it: int Get() can anyone advice me for do these …

Member Avatar for cambalinho
0
133
Member Avatar for Kwasi Sefah

please am now a biginner in learning c++ programming. I want to know when do we use include <cmath> apart from the normal include <iostream>

Member Avatar for Kwasi Sefah
0
170
Member Avatar for ziarashdi26

have to write a program using array that asks the user to input any 10 numbers the program than sorts the numbers in ascending order and displays the sorted numbers, kindly help

Member Avatar for NathanOliver
0
133
Member Avatar for andreas.petrou.967

I have write this program,how to sort the numbers? // ddd.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; struct nodeType { int data; nodeType *link; }; nodeType *head; int main() { // // Init the list // nodeType *first; nodeType *last; …

Member Avatar for andreas.petrou.967
0
200
Member Avatar for espadafajar

hi everyone, i 'm confusing with this problem. the sound if i put it to top. the sound play , then after the sound stop the text begin run. my question is how to running it together? thank you :) i have looking for thread. but i fail again. please …

Member Avatar for Neuman
0
75
Member Avatar for SumTingWong59

So basically we'll just say that, for example, the user inputs 'As' and it is set to variable 'A'. I have an input .txt file that has a list of these characters (it's for figuring out molecular geometry) so somewhere in the text file it says 'Arsenic As 5' I …

Member Avatar for SumTingWong59
0
204
Member Avatar for SumTingWong59

http://pastebin.com/WBvMuQvH my code has become somewhat of a mess from trying to move things around and figure out what isn't working. Basically, what i want it to do is, say the user enters 3, i want it to print out: 1 212 32123 Could you guys give me some help? …

Member Avatar for AndrisP
0
178
Member Avatar for sabri1990

#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <time.h> #include "GCoptimization.h" #include "opencv/cv.h" #include "opencv/highgui.h" #include "opencv/ml.h" using namespace cv; #include <vector> #include <iostream> #include <limits> using namespace std; #define __PI 3.14159265 void graphcut(Mat& featureVec, Mat& im, int num_lables) { Mat lables, centers; cout << "Kmeans: #centers = " …

Member Avatar for sabri1990
0
641
Member Avatar for abdul rahman 2

The End.