49,757 Topics

Member Avatar for
Member Avatar for Sph_1

im having a issue with a code on AuthServer.cpp giving me the error above, can u help me fix it ?? //----------------------------------------------------------------------------------- // Auth Server //----------------------------------------------------------------------------------- #include "stdafx.h" #include "AuthServer.h" #include "mysql.h" Database* db_acc; Database* db_log; CAuthServer::CAuthServer() { m_pMasterServerSession = NULL; m_pClientAcceptor = NULL; m_pServerConnector = NULL; } CAuthServer::~CAuthServer() { …

Member Avatar for rproffitt
0
212
Member Avatar for Abby_4

Hello! I know it isnt very appropriate, but I have already posted this question on stackoverflow. However, this is a very time sensitive issue and I still need a great amount of help with it and havent gotten any responses there. With that said, I hope that you guys may …

Member Avatar for rproffitt
0
51
Member Avatar for Damien_6

Hello, I hope someone can help because I am really confused :( I have some code that I am ruuning on an Arduino to start a race - Take your marks, Get set, Go - type of thing and some LED's that act in a very similar way to the …

Member Avatar for Rahul_111
0
120
Member Avatar for AmerJamil

i have a question that. is it not possible that main do not return any value, and the returning value of main is void, why returning value of main should always be int, when we write [code] void main() { } [/code] mostly people here on DANIWEB ask to write …

Member Avatar for EricStens
0
2K
Member Avatar for Hank40

error: expected unqualified-id before '{' token ![Screenshot_2021-03-04_at_8_42_59_AM.png]( https://static.daniweb.com/attachments/4/51fafe4f14ed095fd30745da3cbad862.pngg Hi guys I need your help. I am learning C++ on shell. I am trying to make it so you can make and answer. Can you help me?

Member Avatar for rproffitt
0
52
Member Avatar for maaru1903

Is there a standard algorithm that can output the difference time (in seconds) and use it to print the minutes, hours, numbers? I would appreciate it if you show this algorithm in Flowgorithm app.

Member Avatar for rproffitt
0
57
Member Avatar for Noobie*

I am a first year student who only knows common codes. I have created a simple cashier program wherein you will only type the number assigned to your order (used of arrays) and calculate the total of the orders,change etc. It was all clear on that part but I am …

Member Avatar for John_165
0
48
Member Avatar for pags920

My assignment in my class is to create a palindrome program for any given string. The main function is supposed to call an integer function named InputString that reads the characters of length n and it needs to determine if its a non-zero length. If this is so, another function …

Member Avatar for gravity_1
0
2K
Member Avatar for harkw002_UniSA

Unable to open file with fstream. it always seems to jump to the else statement and gives me the error message "Error: can't open input file ". I have included in the header file [CODE]#include <iostream> #include <fstream> #include <sstream>[/CODE] and in the class file i have the following code …

Member Avatar for Sandy_9
0
11K
Member Avatar for gabby_1

#include <iostream> using namespace std; int rankfun(double left, double right){ int rank; if(left < right){ rank =-1; } else if(left > right){ rank = 1; } else{ rank = 0; } return rank; } int main(){ double number1 = 1.7; double number2 = 2.3; int result; result = rankfun(number1,number2); cout …

Member Avatar for Khalil Cooper
0
2K
Member Avatar for Dervish1

I'm trying to learn how to do some simple things with MFC - I'm not used to the toolkit. I want to load a png image from disk and display it at a chosen location in the program's window, but am getting a debug assertion error: atlimage.h Line: 1624 Expression: …

Member Avatar for rproffitt
0
219
Member Avatar for Binita

c++ function to calculate your sock size aa your weight in pound divided by height in inches and the result of that calculation nultiplied by by 3.1

Member Avatar for rproffitt
0
33
Member Avatar for paulinakos22

I am a beginner currently working on an assignment that has C++ open a text file containing data such as : [253, 676, 114] [527, 160, 277] [364, 193, 169] [246, 651, 378] [536, 479, 695] [569, 548, 83] [117, 387, 543] [294, 753, 702] [651, 296, 284] [600, 498, …

Member Avatar for cedricowen
0
178
Member Avatar for Michael23++
Member Avatar for Phoeboo

Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, #include<stdio.h> #include<conio.h> #include<iostream.h> float choice2(); float choice3(); float ball[11]={1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000}; float mypin; float withdraw, deposit; int transaction, myaccount; char transaction1; main() { pin:{ system("cls"); printf("Enter pin …

Member Avatar for Mexxyy028
0
6K
Member Avatar for Luka_1

I have never learn python and i need to write one small program in it. I have C++ code so can someone convert that code to python code ? code: #include <stdio.h> int N; struct { int y, x1, x2; } platforme[100]; int spusti(double x, int y) { int rez …

Member Avatar for Adina_2
0
72K
Member Avatar for gazoo

Hello everyone, I have a code that use function to find and remove all occurrences of a string within a string (substring pending) and return the number of removals: I need to remove "xyz" in "abdxyzdxyz" the result should be "abdd" and a return of 2 removed. I used the …

Member Avatar for Vishal_36
0
1K
Member Avatar for riotburn

So its fun when you have questions for hw but neither the teacher nor the textbook show you how to do the HW question. Anyway, I have my base class, a derived class, and class with composition of the derived class. I am not sure how to create the constructor …

Member Avatar for Odumenya12
0
649
Member Avatar for Muhammad_255

You will need to develop a command line menu driven program that does the following . • Printing and Working of the Menu: ****************** Welcome to the Array Functions ****************** 1. Enter e to Enter an English word 2. Enter p to print the already entered English word 3. Enter …

Member Avatar for rproffitt
0
111
Member Avatar for reidenreyes78

Design a program to compute the gross pay of worker named michael bryan given that michael bryan worked 80hours to php67.97 per hour

Member Avatar for rproffitt
0
37
Member Avatar for Tima_2

Hey, Im working on the UNO game in python and am almost done with the rest of the code but I am not able to print the UNO logo as of yet. Please help. I need to submit my work tomorrow.

Member Avatar for rproffitt
0
35
Member Avatar for slapme

compute tax. Please help me out on my tax rate calculation. Really confusing. Create a class TaxReturn with data elds suitable for holding a taxnumber, first name, family name, annual income, current address, and residency status along with the tax rates: For Residents Income Tax Rate 0 - $6,000 Nil …

Member Avatar for Olivia Alex
0
229
Member Avatar for Royvip

I need a software that can automatically log into a series of accounts to a website, available data acount list, we need software to automatically log in continuously to check whether the account is alive or dead and check. check nickname in the game, and amount in the account

Member Avatar for Dai_6
0
153
Member Avatar for Jeon_2

Write a program that prompts the user to input (word/statement), Accepts only letters. The program then: 1.Remove all the vowels from the (word /statement) then output the (word /statement) without vowels. 2. Outputs the number of vowels. 3. Convert the lowercase vowels letters to uppercase and vice versa. Conditions: 1. …

Member Avatar for knight84
0
147
Member Avatar for TheofaniaLiv

So i have to create a programm that reads 7-49 numbers and makes all posible combinations (6 number each) from the given numbers. Do you know how can i do this? I dont ask for the code ready but i cant think of a way i can create the combinations.

Member Avatar for rproffitt
0
254
Member Avatar for peru60220

i have tried below as python but got error while calling result = kth_element_finder(arr1,arr2,arr1+10,arr2+5,k) i want the given cpp code in python, can you help me out on this please cppcode: int kth(int *arr1, int *arr2, int *end1, int *end2, int k){ if (arr1 == end1) return arr2[k]; if (arr2 …

Member Avatar for rproffitt
0
77
Member Avatar for Diala_1

Score calculation 1.1 Write a function in Matlab that accepts the degree of writing as input arguments bg and the degree of work be and return the final degree bt, which is calculated as o average grades of work and writing with the following exceptions: i. If the grade of …

Member Avatar for rproffitt
0
26
Member Avatar for kittycat07us

Hi, I'm having trouble with creating a program to split a number into there own separate digits and then multiplying the digits to create another number. The program will repeat itself until there is just one digit.. The main thing I'm having problem with is figuring out how I could …

Member Avatar for Hassan_39
0
11K
Member Avatar for lilindiekid

Write a program that checks the pressure of soda cans coming from a production line using a function. For each soda, the pressure value must be CLOSE to its ideal value. However, due to manufacturing problems the pressure value from can to can. First, the program will read the number …

Member Avatar for rproffitt
0
86
Member Avatar for anas_abuhajar

hello.. can anyone help me to converting this algorithm to High Level Language C++ ![Screenshot_(107).png](https://static.daniweb.com/attachments/4/801ae0f7416d69e6dd0f92d7ecce8cf6.png)

Member Avatar for rproffitt
0
100

The End.