49,762 Topics
![]() | |
Create a C++ console applications to compile the following statistics on a list of integers: minimum value; maximum value; median value; arithmetic mean; absolute deviation variance (of a discrete random variable); standard deviation (of a finite population); mode (including multi-modal lists). … | |
I started learning python a few days ago, i want to learn both python and C++ What is your advice ? | |
| |
Hi, how can i avoid of key beeing inserted into wrong location.If i do lets say 3 numbers ,5 digits long like 12345,23445,56745 and choose location 45,they will be inserted to location 45,but if try to insert 67452 to the same location it will be inserted,but i need it to … | |
I am trying to compile the files below. The PosLin.cpp contains the SurTriAuto and SurTriPosRotAndQ functions below. Before adding SurTriPosRotAndQ, it compiled fine, but when I added SurTriPosRotAndQ, I am getting "invalid use of incomplete type ‘struct PosRotAndQ" error messages I was thinking I could try moving SurTriAuto and SurTriPosRotAndQ … | |
I have a code that suppose to prompt a user for thre numbers and output them in ascending order but i get the wrong results for example if i put in 476 it output 764 and i am trying to fix this and add the comments of havigng it prompt … ![]() | |
This is a program I just recently completed for a computer science course. Given a 2D grid, where every path between two gridpoints has a weight (path length) associated with it, this program computes the shortest path from (1,1) to (m,n). You are only allowed to move up and to … | |
I've compiled a working program, for whatever reason, is returning 0 values for the output. I'm not sure why this is happening. I've been troubleshooting this for hours and I can't figure it out. Any help would be much appreciated. Here is the full program's code: #include "stdafx.h" #include <iostream> … | |
plz write a program in c++ for inserting a node in sorted link list at starting , middle and end. thank you. | |
Write a java program to obtain the following shape. You must use while loops in Java to generated the output. Note: The & sign is line 3 has been purposefully removed. how to do this & & & & & & & & & & & & & & & … | |
The output comes out wrong it should be different: //This is what I have Enter a sentence: Today Is Thr Jan, 2015 Number of uppercase letters.........2 Number of digits....................2 Number of vowels....................2 Press any key to continue . . . //The output should look like this: Enter a sentence: Today … | |
In this assignment, we will build a class to save 10 integers into an integer array. This class should be able to complete the following operations: (1) Initialize the assay (assign value for each elements) (2) Print out the value for all elements in the array (3) Sort the array … | |
Not working right, else is getting error. #include <iostream> #include <iomanip> #include <cmath> #include <string> using namespace std; int main() { // Declare variables below here int CORRECT, WRONG; double a, b, correct, result; char choice, answer; cout <<"Let's practice addition or subtraction with random integer numbers <100"<<endl; cout <<"---------------Math … | |
Hello, Please tell me how to implement multi threading in C++ on Ubuntu 10.10. The compiler I use is GNU 4.5.2. I have some knowledge of multi-threading in Java. Explain with some codes if possible. Or please give the URL of any useful stuff | |
My friend and i were having a discussion the other day and we were having a heated argument about how to make that dang diamond pattern in C++ code...does anyone remember how to make that thing? like this?[TEX] * *** [/TEX] | |
Hi I am wondering how you would create a program for the knight tour instead of using recursion using a stack. I just want the ideal behind using a stack/queue instead of recursion please no code:) | |
How would I fix something like this: It is without the is a vowel or is not a vowel, still doesn't work but how do I fix it? This is what it Today Is Thr Jan, 2015 Enter a sentence: #include <iostream> #include <iomanip> #include <string> using namespace std; int … | |
Hello All, How can i filter the logs from a particular server and display that using a C++ code. I have logs coming from multiple server and i want to display logs from only one server. How to do that ?? How should i apply filter in c++, with a … | |
kindly someone to tell me one advantage of a stack backed by a dynamic array over a stack backed by a linked list and one advantage of a stack backed by a linked list over a stack backed by a dynamic array... ![]() | |
Good day: My infile contains the following: [CODE] U Apple Pie 1.29 A Bacon Burger 3.45 V Burrito 2.09 S Cheeseburger, Double 3.59 W Cheeseburger, Regular 2.95 Y Chicken Nuggets 1.87 H Chicken Sandwich 3.33 C Chili, Bowl 2.12 X Chili Dog 2.29 N Chocolate Milk 0.98 D Coffee 1.09 … | |
Hello, I thread hijacked earlier today... probably shouldn't have, sorry if that annoyed anyone. Anyway I have an issue using LookupAccountSid in a visual studio 2013 project running on Windows 7 Pro x64. First of all, it works perfectly in debug, but doesn't work when built for release. What I … | |
if i were asked a secret question between 1 and 1 billion by asking yes/no question of the form "is the number less than X? " what algo should i use to efficiently find the secret number? using the algo what will be the minimum number of questions if asked … | |
Got an array 350x550 of type integer. There are groups of connected or single elements with value 7 in some areas of the array. I need a c or c++ code that identifies each group or element and returns each group's total element(s) plus location of each element in the … | |
Hi, Thanks for DaniWeb for its contribution. I was looking for a understandable example to the problem "How marshalling happens when it comes C# from C++ specially for structure", And i am glad that i got a nice example in this forum. However, i am in problem when it comes … | |
Dear friends: i define a function "funtion1", i put the declaration in the "funtion1.h" #ifndef FUNTION1_H_INCLUDED #define FUNTION1_H_INCLUDED #include <stdio.h> #include <stdlib.h> double funtion1(double ,double ); #endif // FUNTION1_H_INCLUDED and write the function body in the file "funtion1.c" The following is my main file, but when i compile it in … | |
I have some confusion about Copy Constructor. Why this program crashes if we remove Copy Constructor `MyString`? #include <iostream> #include <cstring> using namespace std; class MyString { private: char* Buffer; public: // constructor MyString(const char* InitialInput) { cout << "Default constructor: creating new MyString" << endl; if(InitialInput != NULL) { … | |
so i tried sorting arr2 from lowest to highest value, but it only gives me 4 values and then the rest are zero. Any thoughts on how to fix this? #include <iostream> #include <iomanip> using namespace std; int main() { cout << fixed << setprecision(1); float userMin; float userMax; const … | |
Hi, I am having a C++ application. It works fine when I run it in Debug mode, and debugs the code. But when I execute it in comand line mode I get an Unhandled exception. Unhandled exception at 0x77012016 in test.exe: 0xC0000005: Access violation reading location 0x6cfd018d. [CODE] LPTSTR getFileDetails(LPTSTR … | |
I have a C++ program with a main routine which reads arguments from command line: int main(int argc, const char *argv[]) In my system I have defined some aliases in my bash environment which abbreviates directory names. Example: alias dst='home/username/Documents/test' alias src='home/username/Download/test' My program is called "dircopy" and I want … |
The End.