49,761 Topics
| |
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. | |
I want to download c++ (one with blue screen) Please give me some idea for how to download. | |
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 … | |
Hello ! :) does anyone who can give me a codes in mrt Fare matrix for my proposal in school :( | |
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 … | |
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. | |
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: "; … | |
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 … | |
//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 … | |
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 … | |
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 … | |
I GET ILLEGAL CHARACTER ''(0*1) WHEN COMPLING MY PROGRAM IN BORLAND C++ 5.02 | |
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 … | |
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); … | |
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 | |
#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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> | |
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 | |
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; … | |
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 … | |
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 … | |
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? … | |
#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 = " … | |
The End.