51,593 Topics

Member Avatar for
Member Avatar for Mahi_6

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

Member Avatar for John_165
0
498
Member Avatar for Mian_7

#include<iostream.h> #include<conio.h> class Saltax { float x,t; public: Saltax() { t=x=0; } void get(); void perform(); }; void Saltax::get() { cout<<"Enter the salary:"; cin>>x; return x; } void Saltax::perform() { if(x<=1000) t=0; else if(x>1000&&x<=2000) { t=x*5/100; } else if(x>2000&&x<=3000) { t=(x*4/100); } else t=(x*3/100); return t; } void main() { …

Member Avatar for John_165
0
175
Member Avatar for rigz

Can anyone help me with this: I made a program where the user will choose a product from a menu and i want after the products that the user chosen will be output also below where there is like a "receipt-like" or a summary of what the user bought. I …

Member Avatar for Sunny_17
0
11K
Member Avatar for shroudead

I have an assignment to create a card game that compares to dealt cards between players to see who has the highest valued card. It must first be determined by the cards value, then only if it is tied, the suits value. The code below is what I have so …

0
307
Member Avatar for nimeshghelani

hello, i recently joined the USACO's training gateway [url]http://ace.delos.com/usacogate[/url] I made the first problem([URL="http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride"]http://ace.delos.com/usacoprob2?a=n4y3olVXOJ9&S=ride[/URL]) and it ran successfully in my dev-cpp compiler. but the online grader threw some runtime error. it was like [COLOR="Red"]Compiling... Compile: OK Executing... > Run 1: Execution error: Your program (`ride') exited with signal #6 (abort()). …

Member Avatar for STEAMForward
0
427
Member Avatar for Dawit_4

The reverse program shown in the slides of chapter 13-1 (also present in the book) reads from a file/command line using system calls and outputs the lines in reverse order on the terminal. The last line is swapped with the first line , the second last is swaped with the …

Member Avatar for rproffitt
0
359
Member Avatar for Joseph_44
Member Avatar for rproffitt
0
263
Member Avatar for Marco_10

I have a 2D array of characters (m x n) and i am trying to find all possible pattern that have a fixed length (example 5 characters) I have no clue how to start this if anyone could point me in the right direction that would be great!

Member Avatar for JamesCherrill
0
363
Member Avatar for Mostafa_19

#include "StdAfx.h" #include "CanonCamera.h" int CanonCamera::numOfCameras = 0; CanonCamera::CanonCamera(void) { liveView = false; camID = numOfCameras; numOfCameras++; windowName = "Camera "; windowName += '1' + camID; windowName += " Window"; EdsCameraListRef cameraList = NULL; EdsGetCameraList(&cameraList); EdsUInt32 camCount = 0; EdsGetChildCount(cameraList, &camCount); if(camCount==0) { std::cout<<"No Camera Found"<<". Press Any Key to …

Member Avatar for Mostafa_19
0
306
Member Avatar for Rushabh Verma

I have a C# project that creates a COM object for use with a POS terminal. Before I give it to the customer, I want to make sure that it will work as a COM dll. The RegAsm says it works. using System; using System.Runtime.InteropServices; namespace POS { [Guid( "0135bc5c-b248-444c-94b9-b0b4577f5a1a" …

0
273
Member Avatar for abdallah mohamad

hello everybody who can help with this task Now I will talk little about monoalpahapit cipher This is cipher is based on substitution the characters with another characters So in the encrypt.java file it counts how many the characters appeared in the cipher text , so in the picture that …

1
471
Member Avatar for kinzaajmal

![getline_error.PNG](/attachments/large/4/e8952660a152c2d6d38a928db76a92cc.PNG)

Member Avatar for Dani
0
735
Member Avatar for anis_1

Hi i'm Anis. I want to ask how i can attach image from database in FPDF?

0
291
Member Avatar for Retrojay17

Using loops, write a C# program that asks the user to enter repeatedly an integer number, it stops when the user enters -1, then the program should display how many numbers were entered, their the sum and their average.

Member Avatar for rproffitt
0
365
Member Avatar for A'mirul

Hi guys, I need help in doing what this code do but in Linux. Basically its a code to create keystroke about 5 seconds after the code is running. Below are the code in c++. Thanks on advance. int main() { // This structure will be used to create the …

Member Avatar for rproffitt
0
388
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

Member Avatar for JamesCherrill
0
487
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

0
219
Member Avatar for amvx86

Hey everyone, I'm looking to add a block / function within a C++ application that will search for open windows. For instance, wordpad and notepad. If either are open perform an action. I'm doing this within win32 API but my question is this. If I create something as such, this …

Member Avatar for rproffitt
0
614
Member Avatar for Yakob Tamrat
Member Avatar for Reverend Jim
0
389
Member Avatar for Mr.Beast

Create a new file with the following code in main(): a for loop that prints the numbers 75 to 125 a for loop that prints the numbers 50 to 30, in reverse order a while loop that prints the numbers from 66 to 111 a while loop that prints the …

Member Avatar for plenty.groover
-1
349
Member Avatar for Dee_2_dee

#include<iostream> using namespace std; int main () { int arr[14], n, i, sum = 0; cout << "Enter the size of the array : "; cin >> n; cout << "\nEnter the elements of the array : "; for (i = 0; i < n; i++) cin >> arr[i]; for …

Member Avatar for rproffitt
0
1K
Member Avatar for plump23$

The library optimezedr should determine if a collection of books is in ascending or desending order.Your solution must read books from a text file and produce 2 additional text files one in ascending order and one in Descending order. then your solution will indicate if your original text file in …

Member Avatar for chuckc
0
569
Member Avatar for evilguyme

so far i have this code.. [CODE]#include "stdafx.h" #include <iostream> #include <windows.h> #include <string> using namespace std; int main () { const int r1 = 175; const int g1 = 163; const int b1 = 134; HWND hwnd = FindWindow(NULL,"Test - Microsoft Visual Studio"); SetForegroundWindow(hwnd); HDC hdc = GetDC(hwnd); POINT …

Member Avatar for toneewa
0
7K
Member Avatar for Tim_18

Hello, I am very new to programming as I am only a few weeks into my C# class. I have a project and after reading and reading my book, sadly I am stuck. Here is what the project calls for: I need to create a program that converts inches as …

Member Avatar for smerilatt
1
3K
Member Avatar for Urfa2

Input: grid[][] = {"axmy", "bgdf", "xeet", "raks"}; Output: Yes a x m y b g d f x e e t r a k s Input: grid[][] = {"axmy", "brdf", "xeet", "rass"}; Output : No The general idea of what output should be. I have already coded the grid: # …

Member Avatar for Urfa_2
0
551
Member Avatar for Urfa2

Need help modifying this code to add to my code. My code creates a grid but does not check if a word exists or not yet. Also, it should be user interface, user types in word, and computer outputs yes or no. // C++ program to check if the word …

Member Avatar for JamesCherrill
0
388
Member Avatar for Kaushalya15

/* SPRPTA Bus Ticket Reservation System C++ Software Development Project */ #include <iostream> #include <fstream> #include <cstdio> #include <conio.h> #include <cstdlib> #include <stdio.h> using namespace std; int count01 ; // class Passenger class Passenger { string str_City, str_ContactNumber, str_UserName, str_Password, str_name ; protected: string str_NIC ; public: Passenger(){} Passenger(string name, …

Member Avatar for Yashwanth_1
0
8K
Member Avatar for Urfa2

Need help to edit this code to allow user to find words in the grid that are touching horizontally, vertically, and diagonally adjacent. For example, the board: Q W E R T A S D F G Z X C V B Y U A O P G H J …

Member Avatar for rproffitt
0
362
Member Avatar for Urfa2

Need help to edit this code to allow user to find words in the grid that are touching horizontally, vertically, and diagonally adjacent. For example, the board: Q W E R T A S D F G Z X C V B Y U A O P G H J …

Member Avatar for rproffitt
0
452
Member Avatar for Lee_20

Victor and Francis are looking to buy a house in a new development.After looking at the several of models,the three models they like are colonial,split-entry and single-story. The builder gave them the base price and the finished area in square feet of the three models.They want to know the model(s) …

Member Avatar for Lee_20
0
1K
Member Avatar for sobaan30

INTERSECT(p1,p2) 1 answer <----() 2 while p1 not equal Nil and p2 not eqaul Nil 3 do if docId(p1) = docId(p2) 4 then ADD (answer, docId(p1)) 5 p1 <--- next(p1) 6 p2 <---- next(p2) 7 else if docId(p1) < docId(p2) 8 then p1<--- next(p1) 9 else p2<--- next(p2) 10 return …

Member Avatar for Dani
0
429
Member Avatar for kshahnazari

I have an HDC file(that is taken by screen that I want to save it to any image file (prefer Bmp) , the thing is I don't really know the format and any function that I find for saving takes to many function inputs (that must be maximum 2). Any …

Member Avatar for Tajuddin_1
0
5K
Member Avatar for iranano

In the follwong program a class-type temporary is cast to a refrence and they changed: struct A { int a; A() { a = 100; } }; void f(A& x) { x.a = 200; }; int main() { f((A&)A{}); } No errors in Visual Studio and GCC. But is it …

0
276
Member Avatar for tun712

I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of …

Member Avatar for tun712
0
869
Member Avatar for varie_nyoka15
Member Avatar for rproffitt
0
221
Member Avatar for differentiation

Hi, I've been playing a game from a few years back (I really enjoyed it) and I found that it was open source on github. I would love to make my own version and see how it goes. I have experience with python as a hobby, and I've had a …

0
356
Member Avatar for Abi_2

Hey, I am in desperate need of some assistance with this Baffles coding. I do not know where to begin and I am completely confused with the instructions https://www.daniweb.com/programming/software-development/threads/324780/baffle-game-c#js-quick-reply the link above is a link to the old thread as a reference. I am using the c++ language and the …

Member Avatar for Alexander_17
1
2K
Member Avatar for santhosh_8

**Create a student class which has following functionality:** - Initialise a student with mandatory parameters - Create a student with name, email and phone number - Add a list of subjects based on which class he is - Add a function to calculate his percentage based on marks scored ***I …

Member Avatar for Reverend Jim
-1
3K
Member Avatar for Murali_3

Hi , Im looking for c++ design for tools like abode photoshop. Can you point me any URLs/source code where i can refer c++ design for photoshop?

Member Avatar for Reverend Jim
0
311
Member Avatar for Kelvin _1

Write a C++ program that would depict car pooling is of much advantage to the environment and to the user . NB:Enforce security in currency output.

Member Avatar for rproffitt
0
667
Member Avatar for Weird Nerd

Hey everybody, I was just wondering, how do you create Lens Distortion in OpenGL? As in, the rendered image looks bloated or sucked in when you implement it. I would typically want it in a simple format that works nicely and doesn't eat up too much CPU. As an extra, …

Member Avatar for WaszStary
0
2K
Member Avatar for Fernando_14

What useful plug-ins / debuggers for Visual Studio do you use (for Windows)? P.S. I know Visual Studio has a good debugger)

Member Avatar for bob.clarke.16
1
3K
Member Avatar for ddanbe

Why is it that C# disappeared from the Programming menu? Something to do with upcoming changes?

Member Avatar for Dani
0
2K
Member Avatar for ammysh

Hi, im still new in c++ so i'm happy if anyone can help me Hi, is anyone know how to search two text file and the output will be - show which text file - line number - the word itself currently what i did is i need the user …

Member Avatar for AndrisP
0
358
Member Avatar for open2join

Hi Pobably it is going to be repeated question but I wasnt able to find such thread. I just would like to do sql through C++ and I have 2008 ms database. What are free libraries available for doing such job? Thanks

Member Avatar for rproffitt
0
350
Member Avatar for Aaron_17

plz someone help me with this problem. i have uploaded the code file down Make a class fraction () with a numerator and a denominator. Create a constructor and overload some operators so that the code below can run on

Member Avatar for Reverend Jim
0
385
Member Avatar for FriQenstein

Greetings. I'm working on a small project using Visual Studio 2017. Basically I'm taking a small console based Banking Software program and porting it to a GUI based windows application. I'm having issues getting access to certain variables from within a private function. EX: MyForm.h has the following code: class …

Member Avatar for rproffitt
0
427
Member Avatar for Aziz_6
Member Avatar for Aziz_6
0
273
Member Avatar for sadada

## Hey, ## I crated a program which can search a text for a string and gives you every line which conatins that string back. Now I want to create another text file with the output. But I cant get it to work. Actually I have no problems with creating …

0
369
Member Avatar for KLane

[CODE] //I need to make a class that calculate the mean and standard deviation. I have to test my program with an external file containing about 300 data. My program doesnt return the correct valuesAny help? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Member Avatar for mellguth
0
1K

The End.