49,756 Topics

Member Avatar for
Member Avatar for amila.dulanjana

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 & & & & & & & & & & & & & & & …

Member Avatar for amila.dulanjana
-2
93
Member Avatar for DS9596

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 …

Member Avatar for SalmiSoft
0
204
Member Avatar for rudolph.skinny

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 …

Member Avatar for rubberman
0
66
Member Avatar for DS9596

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 …

Member Avatar for tinstaafl
0
155
Member Avatar for ankit,joy

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

Member Avatar for sumitlubal_1
0
230
Member Avatar for cassie_sanford

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]

Member Avatar for NathanOliver
0
439
Member Avatar for hellocsprogram

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:)

Member Avatar for StuXYZ
0
636
Member Avatar for DS9596

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 …

Member Avatar for DS9596
0
402
Member Avatar for sam ss
Member Avatar for tnd2491

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 …

Member Avatar for L7Sqr
0
192
Member Avatar for Builder_1

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...

Member Avatar for iamthwee
0
160
Member Avatar for zandiago

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 …

Member Avatar for NathanOliver
0
9K
Member Avatar for BenWard

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 …

Member Avatar for BenWard
0
1K
Member Avatar for Builder_1

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 …

Member Avatar for SalmiSoft
0
129
Member Avatar for johans22

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 …

Member Avatar for johans22
0
207
Member Avatar for jitendralenka

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 …

Member Avatar for ddanbe
0
194
Member Avatar for ztdep

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 …

Member Avatar for mike_2000_17
0
137
Member Avatar for Sarkurd

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) { …

Member Avatar for Sarkurd
0
290
Member Avatar for LATCH808

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 …

Member Avatar for richieking
0
137
Member Avatar for koleanu

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 …

Member Avatar for BenWard
0
401
Member Avatar for it@61@sec

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 …

Member Avatar for it@61@sec
0
308
Member Avatar for syedarslanrizvi_1

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 …

Member Avatar for syedarslanrizvi_1
0
229
Member Avatar for Alxprog

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 …

Member Avatar for Alxprog
0
672
Member Avatar for phexee

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 …

Member Avatar for Moschops
0
129
Member Avatar for TObannion

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 …

Member Avatar for TObannion
0
234
Member Avatar for LATCH808

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 …

Member Avatar for LATCH808
0
162
Member Avatar for latrodectuss.imvu

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 …

Member Avatar for latrodectuss.imvu
0
303
Member Avatar for latrodectuss.imvu

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 …

Member Avatar for Moschops
0
10K
Member Avatar for robbia.gulnar

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 …

Member Avatar for iamthwee
0
108
Member Avatar for abdelfetah.laouzai

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 …

Member Avatar for mike_2000_17
0
117

The End.