49,761 Topics

Member Avatar for
Member Avatar for MustafaScript

I started learning python a few days ago, i want to learn both python and C++ What is your advice ?

Member Avatar for rubberman
0
200
Member Avatar for keshavbhusal1
Member Avatar for mike_2000_17
0
106
Member Avatar for PulsarScript

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 …

Member Avatar for StuXYZ
0
196
Member Avatar for cypherscouter13

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 …

Member Avatar for cypherscouter13
0
437
Member Avatar for bob.clyde.75

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 …

Member Avatar for iamthwee
0
345
Member Avatar for Dani

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 …

Member Avatar for mohmedd
0
542
Member Avatar for nate9603

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

Member Avatar for nate9603
0
244
Member Avatar for prince.qureshi.94

plz write a program in c++ for inserting a node in sorted link list at starting , middle and end. thank you.

Member Avatar for Moschops
-2
92
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
94
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
67
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
156
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
657
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
412
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
197
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
145
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
407
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
309
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
230

The End.