49,761 Topics

Member Avatar for
Member Avatar for Ranniel
Member Avatar for priyamtheone

I'd like to know how the following programme on pointer written in C can be written in C#, especially how to use the keywords in the C programme like &i and \*p in C#. Please clarify. #include <stdio.h> void f(int *p, int *q) { p = q; *p = 2; …

Member Avatar for JamesCherrill
0
118
Member Avatar for damiennorris

Hello, I hope someone can help because I am really confused :( I have some code that I am ruining 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 rproffitt
0
438
Member Avatar for @jassmine97

hello, i barely know how to use python and i need to write a cubic spline interpolation code in python for my programming assignment . I have C++ code but i know nothing about c++ so can someone help me to convert that code to python code? this is a …

Member Avatar for rproffitt
0
200
Member Avatar for Laith_5
Member Avatar for Laith_5
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
222
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
53
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
121
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
49
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
233
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
180
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
651
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
36
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
154
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
148

The End.