49,756 Topics
![]() | |
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 … | |
A programmer has no control over data submitted as input to his/her program but does have control over the format of output display. Explain, with brief coding examples, how the precise positioning of data output is possible on the screen for different types of data. State the language and version … | |
The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks. I'm using Windows 7. Googling gave me some controversial suggestions: 1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32) 2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths … | |
Okay guys, I have been working on this project for about 2days now and it appears i can't do it as i keep getting errors when i try tp compile the program. Please can anyone help? Sunshine.com is an online children clothing store exclusively for baby and toddler. The store … | |
So here is my WORKING code. My problem lies in the output when I enter "0" or "00" for the hour in 12 midnight. No matter what it still outputs a 0 for midnight. (I want it to convert it to standard time.) I know it is something easy that … | |
so im trying to find the min, max, range, mean, median, and mode. The max number is right but the min isnt. Once that is corrected, i can get range and mean easily. Also, i have no idea how to get mode and median. Im guessing the values in the … | |
How can I delete the old entries from the .txt file and replace them with the new ones? Like : I have a text file that has "123" in it, when I try to change the txt file it just adds the new text, I add "abc" to it and … | |
Hello, I made a program that finds all the words in my .txt file and shows them to the screen, but now I want to make it so that I can pick a word from the .txt file and replace it with something else. For example : teksts.txt has the … | |
Write a program that lets the user to enter datain a 4 X 3 matrix of integers, and then determine and return the largest element exist in the desired row.The program calls the following functions, which you have to implement: getData – accept a matrix with its size and fill … ![]() | |
Hi, I want to know what is the best way to represent a graph in C ++ (the best method) I note that I want to program two algorithms (in the field of traffic assignment and balance of users in the network) that deals with large scale networks (+ 1000 … |
The End.