49,756 Topics

Member Avatar for
Member Avatar for Raman_6

Need some help. I have the below hardware details. attached Intel Core i7-3770 @ 3.40GHz 4 Cores 8 Logical Ivy Bridge-DT 4 x (32 + 32 + 256) + 8M Cache Features enabled MMX SSE SSE-2 SSE-3 SSSE-3 SSE4.1 SSE4.2 AVX DEP VMX SMX SMEP EM64T EIST TM1 TM2 HTT …

Member Avatar for rubberman
0
322
Member Avatar for eel

Currently writing a program for an OOP course on encapsulation. The program is required to instantiate **only one object in main**, but then instantiate multiple objects, within the first object, to perform calculations on arrays (`Values`)held within each object. I have been taught that I should ensure that objects are …

1
118
Member Avatar for Agata_1

I need help trying to create a loop to calculate asset depreciation within these paramaters. Part 3) Calculate Depreciation by declining balance. In a company, fixed assets such as equipment lose their value over time and this charge is called depreciation. Equipment is rarely valued as worthless ie $0, even …

Member Avatar for rubberman
0
1K
Member Avatar for Sherwin_4

Good afternoon everyone, I'm currently working towards to provide the following output for my code: What number shall i start with? 7 The hailstone sequence starting at 7 is: 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 The length of the …

Member Avatar for Sherwin_4
0
2K
Member Avatar for Sukhdeep_1

i have just installed c builder and i was doing a simple program and when i set to run it is giving me this error: [Linker Fatal Error] Fatal: Could not open C:\Program Files (x86)\Borland\CBuilder6\Projects\Project1.exe (error code 5) . i read some comments and i saw that i have to …

Member Avatar for rproffitt
0
427
Member Avatar for Tre Sivileo

I am coding a roman to arabic console program for class been having issue with it I am not sure how to get the next char after the the first char I have tried everything I am not allowed to use cin.peek(). Also my output loop generates p = 0 …

Member Avatar for tinstaafl
0
299
Member Avatar for Rehana_1

Hello could you help me win 12 slot keno...masslottery.com... I am trying so hard to understand your keno code online.. Could you please break it down for me...how do I beat the computer...

Member Avatar for ddanbe
0
180
Member Avatar for vedmack

Heya i want to use ShowWindow(hWnd, SW_HIDE); to hide some application, The problem is that the code i wrote works perfectly for any application except the one i need it for heres the code [CODE] HWND hWnd = FindWindow(NULL, sName); if(hWnd) { ShowWindow(hWnd, SW_HIDE); } [/CODE] it does execute the …

Member Avatar for Gustav_1
0
10K
Member Avatar for Aromal

what should be the conditon used for checking whether the string is a palindrome or not by using 2 variables in a for loop ?

Member Avatar for JamesCherrill
0
83
Member Avatar for Eugene_8

hi guys im new to c++ can i have some assist ? The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets box, sideline, premium, and general admission. After each game, data is …

Member Avatar for rproffitt
0
615
Member Avatar for sweety

This is a program..to implement stack operations..it is working fine..but a warning message is being displayed..as " Functions containing for are not expanded inline". I would be glad if anyone can tell me the reason for this. Thanks for all the support. #include<iostream.h> #include<conio.h> #include<stdlib.h> #define max 5 [CODE]class stack …

Member Avatar for Tiger_3
0
15K
Member Avatar for Mirwais_2

>..... Write a Program code to Overload The following Operators in C++. < (greater than) && (logical AND) % (Reaminder).

Member Avatar for rproffitt
-3
79
Member Avatar for 고시퍼

#include <stdio.h> int main(void) int movieChoice; int seatNum; int seatPlan[5][10] = { 0 }; int rows, cols; char space; void seatDisplay(int a[][10]); void seatNew(int n[][10]); void seatDisplay(int a[][10]) { //this function shows the seat plan for (int i = 0; i<5; i++) { for (int j = 0; j<10; j++) …

Member Avatar for David W
0
549
Member Avatar for irbaaz

cout << "What is your name?" << "\n" << endl; cin >> name; cout << "Have you got a full drivers license?" "\n" << endl; cin >> drivinglicense; cout << "what is your address?" << "\n" << endl; cin >> address; cout << "what is your telephone number?"<< "\n" << …

Member Avatar for rubberman
0
277
Member Avatar for David_94

Hi, I am writing a library that does some heavy computation, and so I have been trying to speed things up with some low level parallelism. My machine runs Ubuntu 16.04, and is an old i7, but has four virtual cores. I tried to use openMP, and while it runs …

0
155
Member Avatar for Qayyum_1

write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT. get the input from user may include -Bank balance -Amount invested in business -Amount given to other business partners as loan and -Amount payable to others

Member Avatar for neon_2
0
4K
Member Avatar for Peter_36

I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.) Made this in cpp.sh Why would I need the x=y+1-1;? x=y; just doesnt seem to work Why is this? And I know my coding …

Member Avatar for JamesCherrill
0
488
Member Avatar for vegaseat

A little calculator written in BCX basic and then translated to C code and modified to compile with Dev C++ (GCC/G++). Once you find your way past the standard GUI gibberish you can figure it out. For those who need some hand holding with the Dev C++ IDE: In the …

Member Avatar for rproffitt
1
6K
Member Avatar for William Hemsworth
Member Avatar for Uchenna_1
0
9K
Member Avatar for Sam_31

#include <iostream> using namespace std; void enterData(double firstMatrix[][10], double secondMatrix[][10], int rowSecondFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void multiplyMatrices(double firstMatrix[][10], double secondMatrix[][10], double result[][10], int rowCountFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void display(double mult[][10], double rowFirst, double columnSecond); int i, j, k; int main() { double firstMatrix[10][10], secondMatrix[10][10], …

Member Avatar for AssertNull
0
286
Member Avatar for DeanMSands3

Hi, Daniweb. I have this hobby project I'm playing with where I need to generate data for a MonteCarlo simulation. The data needs to fit within a bell-curve around a given mean with a standard-deviation. I'm trying to figure out which random distribution system I need to use and how …

Member Avatar for DeanMSands3
0
373
Member Avatar for Dean_5

So... I've slept since college - meaning I've forgotten a few things. I need to do an inner-join on two large-ish sorted vectors. Thought about converting them to unsorted sets and walking through "find-ing", but I'm pretty sure this is the fastest way to do it - and still accurately. …

Member Avatar for StuXYZ
0
2K
Member Avatar for can-mohan

Hi All, I have to implement string class and write a program to perform string manipulation in Mystring class. input: "he is going to school" output Case 1: (n=1) He school to going is Case 2: (n=2) He is school to going Case 3:(n=5) No changes Case 4 n<=0 school …

Member Avatar for JamesCherrill
0
475
Member Avatar for esra_2
Member Avatar for rubberman
0
155
Member Avatar for eel

Hi all, I’ve been told to convert a procedural [C++ program](http://pasted.co/cb410afe) into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. The standard C++ program accepts data values and filter values from the user. It then multiplies these values together using a simple algorithm and prints the output …

Member Avatar for JamesCherrill
0
830
Member Avatar for naruto_2

Hi I am unable to call a function in one class from another class:In this line of the code it is showing error std::nth_element(edge_points.begin(), edge_points.end() - edge_points.size() * c.edge_points_percent, edge_points.end(),Camera::compare_edge_points); Camera:: compare_edge_points - showing error. Can anyone help me here please? Header file: #ifndef main_h #define main_h #include <iostream> #include …

Member Avatar for tinstaafl
0
390
Member Avatar for can-mohan

Hi All, i am curious to know how to set the value (value=10) through B's constructor in below programme. below is example of multiple inheritance. As construction always happens from right to left so it always call the 'C' class's constructor and set the value 20 but as per my …

Member Avatar for can-mohan
0
474
Member Avatar for kenshinbatto92

hi, so i am currenty working on a program that needs to ask the user for student name, and test score. it must use parallel arrays and must sort the scores ascending order from lowest to highest, with corresponding student name entered. and it must average the amount of scores …

Member Avatar for mapsonyllaer
0
1K
Member Avatar for zekstein

Hello there ! I wrote a dll( using MINGW and Codeblocks ) that should do the "background work" of my app. I have an interface build in Microsoft Visual C++ 2015. Is posible to control some TextBoxes, or Buttons( enable/disable ) or ProgressBars, or opening a new Form from the …

0
249
Member Avatar for alyssa.wilkins.77

Hello, I am trying to add a feature to a lab I am working on where I have to have a way to show images of the 20 pen widths the Easy Paint Lab can do. I am trying to use a ComboBox from Qt in order to do that. …

Member Avatar for mapsonyllaer
0
1K

The End.