12,253 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Sunnyfish

Hello all. I'm relatively new to libcurl C++, and I have been hopelessly stuck. Bit of a background for this app. It is very legacy, having been made in the early 2000s. LPSTRs abound. It looks in FTPs for files from suppliers (who have an SFTP they interact with and …

Member Avatar for Dani
2
213
Member Avatar for seth_yu

[Click Here](https://github.com/codecat/catsight) Thank you very much if you can provide compiled Windows binaries or converted VS projects that are preferred

Member Avatar for rproffitt
0
141
Member Avatar for Sky_

3. Using repetition control structure (do while loop), prepare a program that can receive employee id and working hour(s) for three (3) employees. The program able to: i. calculate Overtime Payment using formula Overtime = Working hours * 35.00 for each employee ii. calculate Total Overtime Payment for all employees …

Member Avatar for dwellfox
0
146
Member Avatar for gil.nickson

hi, please help me how can i convert this C++ code to C source code ... please help ..... this is the URL http://cppforschool.com/project/super-market-billing.html i dont understand this though please help ... :(((((((

Member Avatar for f200196
1
39K
Member Avatar for Ashton21

The purpose of the program is to tell the user that the weekly salary is in on of three ranges, less than 200, between 200 and 800 and greater than 800. I need help knowing the error/s and need to add and use one additional preprocessor directive that might help …

Member Avatar for toneewa
1
168
Member Avatar for bdl365

I am having difficulties writing the program. the program should ask user for a positive integer and print a factorial table. for example - Give me a positive integer: 5 1! = 1 = 1 2! = 2 x 1 = 2 3! = 3 x 2 x 1 = …

Member Avatar for Muhammad_331
0
2K
Member Avatar for isyae

hi guys, i dont know why when i run the code, its shows my txt is not found, here i attached the txt.file and the coding :) i just follow the coding in the example that lecturer given, but yeah as i mentioned before, the txt cannot be found :( …

Member Avatar for toneewa
0
83
Member Avatar for isyae

how to solve no 2 problem? i dont know how to do that, someone please help me :( ![Screenshot_(146).png](https://static.daniweb.com/attachments/4/f137f737ff1b4a1f20895f08f9246695.png)

Member Avatar for isyae
0
99
Member Avatar for tdba.316

Hi~ I've been stuck with this exercise for quite a few days. It's in a book I'm currently self-studying, C++ primer plus. It is as follow: [CODE]/* Write a program that uses an array of char and a loop to read one word at a time until the word done …

Member Avatar for Toniolo
1
1K
Member Avatar for Jash_1

Hello, I tried to make game where you can determine the winner by inputting their scores i'm just confuse how to count the wins of one team here's my code: #include <iostream> #include <string.h> using namespace std; main(){ int p1, p2, a=4; int wincount=0; string team1, team2; for (int j=0; …

Member Avatar for Schol-R-LEA
1
234
Member Avatar for Chloe_6

#include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; struct staffTWB { string staffName; int staffProf; }; void printEntry(staffTWB); int main() { string staffName; int staffProf; while (staffName != "done") { cout << "Please enter a staff name(done to leave the program):" << endl; getline(cin, staffName, '\n'); if (staffName == "done") { …

Member Avatar for Dani
0
48
Member Avatar for Saba_12

i have to write to the output Write to the output the sequence of division remainders of these numbers over a small integer but sorted in the non-decreasing order.i wrote a code for remainder but i cant write for them to sort. Here is the code: #include <iostream> using namespace …

Member Avatar for gce517
1
99
Member Avatar for Nicole_18

How to draw this cat with: Rendering fill Suitable primitives Aligned texture ![Screenshot_20220402-020429_Office.jpg](https://static.daniweb.com/attachments/4/e9a4f2eda3f42e689b0de42dcd9465ba.jpg)

1
272
Member Avatar for humbug

i have made a program in school that chooses a random number and you need to guess it. you put in a number and it says higher or lower. the only problem is that i can't set RAND_MAX and its a 4 or 5 diget number (havent figured it out …

Member Avatar for yw_046
2
29K
Member Avatar for MICKLUFFY

The first line of an input file, called tons.txt, only contains a single number between 1 and 9. Write a C++ program to input the number of tons from the input file and print out the equivalent in pounds, ounces, kilograms, and grams, to an output file, called report.txt. Also, …

Member Avatar for ivy.inc.Hugh
0
44
Member Avatar for federerforehand

I do not know where to even start :'( can someone please write the code so I can see the process and I can do other problems that are similar to this... For this programming project, you will create a program that will both design and implement a class that …

Member Avatar for Jerry_23
-2
4K
Member Avatar for existinglady

hello, can someone help me, when I put the codes from my book and edited them to use filestream, I encounter an error #include <iostream> #include <fstream> #include <string> using namespace std; struct nodeType { string info; nodeType *link; }; int main() { nodeType *head = NULL; nodeType *newNode; nodeType …

Member Avatar for Roy_264
0
6K
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; int main() { int a,b,c, ope; cout<<"enter a value" << endl; cin >> a; cout<<"enter b value" <<endl; cin >> b; cout<<"enter operation (+ - * / and %)"; cin>> ope; if (ope == +) { c=a+b; cout<< c; break; } if (ope == -) …

Member Avatar for Hamza_53
2
45K
Member Avatar for Dmiller071

Hi all, I've started to dive into OpenGL w/C++ to expand my library knowledge but I had a few questions. I've been following a tutorial online that basically walks step by step through the compiler linking, functions, and basics of an OpenGL program. I really would love to create some …

Member Avatar for oussama_5
0
223
Member Avatar for cambalinho

i have code for write on console and change the text color and backcolor and clear screen(and much more) inside of a nice class console. these function change the text color and back color: void SetColorAndBackground(int ForgC, int BackC=0) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) ); } but is there any way for …

Member Avatar for Mendoza,
1
4K
Member Avatar for din_hilmi

hello, i'm newbie here and also in programming world. so I would to request help from pros here. my question is, how to print out number entered in random in ascending order WITHOUT USING ARRAY AND FUNCTION? let say the user key in 4, 56, 31, 90, 11 and the …

Member Avatar for Aditya_47
0
44K
Member Avatar for TheBeast32

Hi, how would I use mouse_event to simulate the mouse wheel? I can only do clicks. [Code=C++] void Left_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0); } void Right_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); …

Member Avatar for Oliver _2
1
512
Member Avatar for Hussein Halem
Member Avatar for Alamir Rangel
Member Avatar for fugnut

I would like to have the user enter ctrl-z to end the program...can someone tell me how to insert this into the following program? [CODE]//Program to calculate greatest common denominator of two integers #include <iostream> using namespace std; int calcGCD(int, int); int main() { int a, b, res; cout <<"This …

Member Avatar for mohammad reza_1
0
7K
Member Avatar for saadbangashh

I am beginner and still learning c++. So this was a question in my assignment to make a horizontal bar chart something like this, Example: Input: N1=>8 , N2=>6 , N3=>2 , N4=>10 , N5=>9 10 * 09 * * 08 * * * 07 * * * 06 * …

Member Avatar for dbfud1988
0
997
Member Avatar for ssharp77

In need of some help with a programming project which reads text from one file and places it in a 2nd file, which will be identical to the first file with the exception of any string of two or more consecutive blanks being replaced by a single space/blank, eliminating extra …

Member Avatar for Dhushanthan
0
933
Member Avatar for ytgaamer

I am making a tic tac toe game, and have completed it. Now I am trying to implement a library to my code and I chose ncurses, because it seems easier to add and will allow me to change the color of the input for the game. However, I can't …

Member Avatar for rproffitt
0
146
Member Avatar for ComSciNum7

I'm having trouble with these functions made for a C++ hash table...any and all pointers in the right direction would be greatly appreciated! EDIT: table.h is the problem file, but I included node.h just in case! // FILE: table.h #ifndef TABLE_H #define TABLE_H #include <cstdlib> // Provides size_t #include <string> …

Member Avatar for tinstaafl
0
149
Member Avatar for agrbinoo.albaker

Write a C++ program that inputs a wavelength and then displays the associated light color. If the wavelength is shorter than 400 nm or longer than 700 nm, display the message “Wavelength outside visual range”. Classify boundary wavelengths as the lower-wavelength color. For example, label a wavelength of 424 nm …

Member Avatar for braian44
0
718

The End.