51,593 Topics

Member Avatar for
Member Avatar for mustefa_1

write c++ programming that calculate electricity bill with persons name and id

Member Avatar for JamesCherrill
-1
422
Member Avatar for Blank_1

Hello, I'm trying to create a character array that would find the absolute value of each value. Ex. Candadite: 111111 / Target: 444444. abs(1-4)(1-4)(1-4)(1-4)(1-4)(1-4) answer: 333333. I have the code running, but I get a consistant answer of 700, even when I move to a new Target set. If anyone …

Member Avatar for kes166
0
658
Member Avatar for robertslots

I installed OpenCV on my older Ubuntu machine [](https://onlineslotscasinoz.com/) today. Now I wanted to try this library once. That's why I wanted to try the following code: #include <stdio.h> #include <opencv2/opencv.hpp> using namespace cv; int main(int argc, char** argv ) { if ( argc != 2 ) { printf("usage: DisplayImage.out …

Member Avatar for rproffitt
0
145
Member Avatar for ryantroop

Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, this is just a .h, .cpp, and main cpp but it's still a lot of lines) that wont just be …

Member Avatar for ryantroop
0
3K
Member Avatar for Gunjan_5

# An orders class def __init__(self, order): # Initialise self.ID = order.order_id self.kits = [] kit = {} for x in order.kits: # Add kit kit['Type'] = x.kit_type kit['Objects'] = x.objects self.kits.append(kit)

0
184
Member Avatar for Alex_79
Member Avatar for ddanbe
-1
182
Member Avatar for tensity

This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? …

Member Avatar for Hunter_2
0
2K
Member Avatar for Marcus_5

Hello dear forum members, I am brand new in C programming and have to program an "X" as homework[ ](https://domywriting.com/) (see attached picture). The edge length of the "X's" should be entered by the user, ie the "X" should be arbitrarily large or small. Can someone help me with the …

Member Avatar for Reverend Jim
1
3K
Member Avatar for Henry_21

My name is Henry and am new here. I travelled a lot to reach here looking for a project and or coding for web based online church management with employee online in and out record and monitor.

Member Avatar for Reverend Jim
0
99
Member Avatar for ryantroop

Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know …

Member Avatar for ryantroop
0
302
Member Avatar for tina.2826
Member Avatar for Shubham_12
-1
4K
Member Avatar for Varun_14

I bought new esp8266 WiFi module ....if I run example program blink its working but if I upload Wi-Fi http client program I am getting some strange output in serial monitor like ???!°^∆ I thing some encoding problem pls help me out

Member Avatar for Varun_14
0
260
Member Avatar for esedee

Hi.. Am actually trying to write my final year project on how to use Android phone as remote control for pc.. Pls can anybody put me through on what to do and how to start it because am a newbie trying to build an android app.. Thanks

Member Avatar for Mridula_1
0
420
Member Avatar for mahdi2592

I have three objects in a class (channelManager) that i need to call in my main class in order to output a message but i can't seem to know how since i'm not a c++ expert. I think my porblem is that i don't really understand the arguments of these …

Member Avatar for ravenous
0
313
Member Avatar for James19142

Inside of a class template having parameter `typename T` the compiler generates an error concerning 2 functions. `T` does not seem to be recongnized as the template class parameter it was declared as. template <class Return, class ...Args> void executeOnAll(Return (T::*function) (Args &&...), Args &&...args) { for(T &s : *this) …

Member Avatar for James19142
0
1K
Member Avatar for Stefano Mtangoo
Member Avatar for Cristi_1

So i made this bank account, i would like to display the total intrest and total balance i have been struggaling with it as i am a beginner to c++ If somebody could be able to help me simplify the code and add the totals would be great this is …

Member Avatar for rproffitt
0
2K
Member Avatar for whitejag

I bought a web site a few months ago thinking that I could go to a community tech school. I have not found the classes that I need. So I don't know how to build it. Help?

Member Avatar for rproffitt
0
201
Member Avatar for Venkatesh_13

Hi, I am testing a Tcp client C# windows form application I am able to send data to Tcp server Software(Hercules 3.2.8) But when i sent data from Tcp server to windows form then i am getting the following error: System.InvalidOperationException: Cross-Thread operation not valid: Control 'MessageList' accessed from a …

Member Avatar for rproffitt
0
1K
Member Avatar for super-duper

Hey, what's up guys, Can anyone explain what ADT is? How do you know when you are using it? When? Why? I mean, in a simpler way than some books define it. P.S. I am not even sure if my questions are valid :D Thanks!

Member Avatar for rucha_1
0
2K
Member Avatar for Waleed_4

I have to create a program that asks a person to enter numbers (1-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! I get an error on all the case numbers and I dont …

Member Avatar for Reverend Jim
0
608
Member Avatar for Mady_1

``//this program show the implementation of a sigle class #include<iostream> #include<conio.h> using namespace std; class Example //class is reserved keyword and "Example is the name of class { public: int first_value; int second_value; //these are data member of class with "public access modfire" void setValue(int f,int s) //here i used …

Member Avatar for rproffitt
0
448
Member Avatar for hello__1

Hi can anyone help me fix my code, i keep on getting erros and option 4 for my main menu will not work. Problem asks: Write a program that can be used by a small theater to sell tickets for performances. The theater’s auditorium has 15 rows of seats, with …

Member Avatar for Reverend Jim
0
392
Member Avatar for Anshika_1

my c++ code is giving error syntax declaration int hang(void) { const int maxl=80; const int maxt=5; int lfill (char,char[],char[]); void unitunknown (char[],char[]); int m2(void); int m2 () { \\the syntax declaration is here char unknown [maxl]; char letter; int nwrong=0; char word[maxl]; char words[][maxl]= { "india", "pakistan", "australia" , …

Member Avatar for tinstaafl
0
251
Member Avatar for Abenezer_1
Member Avatar for rproffitt
0
161
Member Avatar for Addison111

LoadLibray returns 0 when I'm trying to load a dll file. I'm using Visual Studio 2017 #include "App.h" #include <windows.h> #include <iostream> using namespace std; typedef int(__stdcall *f_funci)(unsigned char, unsigned int); int main(int argc, char **argv) { SetDllDirectory((LPCWSTR)L"C:\\xmrig-master\\build\\Debug"); HINSTANCE hGetProcIDDLL = LoadLibrary(L"asm.dll"); if (!hGetProcIDDLL) { cout << "could not load …

Member Avatar for rproffitt
0
854
Member Avatar for i dont know

Hello all, i need your help regaring this code, which is in python and i need to convert it into mips?? register $s0 holds the base address of list my_data, $s1 holds the length of the list my_data, register $s2 holds the base address of list my_data2 and $s3 holds …

Member Avatar for rproffitt
-1
3K
Member Avatar for jalanderful

Hello, I am supposed to write a code in MIPS to do the following below. Basically, you enter an integer, and it should check to see if it is a palindrome, and if not it will output the number, and keep adding the numer backwards to it, outputting it, and …

Member Avatar for Farah_3
0
1K
Member Avatar for sidra_3

please help meon this one. Application user Create an account: user name, age phone number, address, and password. User can login with user name and password after that user can add data max three or for record ie. Country name, city name, house number, total member in the house, bequest, …

Member Avatar for rproffitt
-1
227
Member Avatar for ViperVenomHD

Hi guys. I am trying to create a program where the user inputs an integer and the program will cout the nth prime number. Unfortunatly when I try to cout just the nth prime number it doesn't work. However theoretically if I have the program print out all of the …

Member Avatar for tinstaafl
0
871
Member Avatar for Adeniyi_3
Member Avatar for Reverend Jim
0
100
Member Avatar for Marwa_3

Write a program to read a literal string ptr1 for no longer than 20 characters. Then use a function whose task is to all contents of ptr1 t ptr2 except for the letters n, f, a.

Member Avatar for rproffitt
0
90
Member Avatar for vishalonne

Hello Everybody I want to print the value of alternative element of a 2D array. For Example- 23, 54, 76 37, 19, 28 62, 13, 19 Output should be- 23 76 19 62 19 I am trying to get this output since 5 hours. Here is my code - #include …

Member Avatar for DIVYANSHI MANGAL
0
1K
Member Avatar for Muhammad_122
Member Avatar for Usama_9

I declare an integer and input value from user when i check this program i give the value 40,000 its a overflow but program generate no any type of error why?

Member Avatar for JamesCherrill
0
211
Member Avatar for Godwin_3

urgent need: write a computer program in c++ that solves a linear simultaneous equation of 10 variable

Member Avatar for Reverend Jim
-1
672
Member Avatar for Sam David

Project C++: A player engine for RPG fighting Hello everyone, I'm beginner programmer and got a task to finish but I'm lost. Please help me to start the project: An engine is needed to create a player and non-playable character objects. Players will require an inventory of Weapons, Armor, and …

Member Avatar for Sam David
0
498
Member Avatar for ckide

i like c++, Is C++ enough to bring me a job or should i study something else?

Member Avatar for rubberman
0
483
Member Avatar for Petar_1

NEED THE CODE FOR THIS: The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in C++ that achieves this. The program is in a number of parts. …

Member Avatar for rubberman
0
326
Member Avatar for Harish_8

I have developed a player v/s player game for tic tac toe..but can't understand the logic for AI ..can someone please include the AI segment in my code because i so much need it for my school project #include<iostream.h> #include<conio.h> #include<string.h> char grid [3][3]; void display_grid() { for(int i=0;i<3;i++) { …

Member Avatar for JamesCherrill
1
565
Member Avatar for zaka_1
Member Avatar for Bob

[B]Intro[/B] This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand(). [b]rand() and RAND_MAX [/b] The C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need …

Member Avatar for JamesCherrill
3
53K
Member Avatar for Black Magic

Hey, i was just mucking around and improving my code etc and made a calculator, it's not the best calculator in the world, it only can handle 1 or 2 numbers but i think it's good my self :).

Member Avatar for Reverend Jim
0
5K
Member Avatar for roaa_1

define an array with 12 month/rows and 31 days/columns for a year's temperature data in a main function. One subtask is to write a function and call it from main reading a text file with mean temperature data of one year and store read data into this array. For example, …

Member Avatar for khai_2
0
622
Member Avatar for Paul Brian

convert from: loops properly convert to: loops back to from (should just loop back to convert to:) need some guidance #include<iostream> using namespace std; int main() { int num; char ch='y'; int amount; int choice1,choice2; while(ch=='y'||ch=='Y') { do { system("cls"); cout<<"\t\t|DLSL CURRENCY EXCHANGE PROJECT |"<<endl; cout<<"convert currency from: "; cin>>choice1; …

Member Avatar for tinstaafl
0
248
Member Avatar for jnneson

Hello, Please, i dont know why my implementation is failing the testDemo Fucntion.. Below is the full code. it is Failing operator < .... testLessThan interface: #ifndef DATE_H_ #define DATE_H_ #include<iostream> using namespace std; class Date; ostream &operator<<(ostream&, const Date&); istream &operator>>(istream&, Date&); class Date { private: int month; int …

Member Avatar for jnneson
0
312
Member Avatar for victoria_5

im trying to write a c program that asks a user for a string and send it to a function that counts the total number each of vowel and total number of all vowels but i am getting 0's for all can someone tell me why? #include <stdio.h> int countvowels(char[]); …

Member Avatar for ddanbe
1
227
Member Avatar for abdisa
Member Avatar for Paul Brian

#include<iostream> #include<fstream> #include<string> #include<windows.h> using namespace std; void mainMenu(); void viewtable(); int main() { mainMenu(); return 0; } void mainMenu() { int num; char ch='y'; while(ch=='y'||ch=='Y') { do { system("cls"); if(cin.fail()) { cout<<"Invalid Input..."<<endl; cin.clear(); cin.ignore(500,'\n'); } cout<<"\t\t|DLSL CURRENCY EXCHANGE PROJECT |"<<endl; cout<<"\n\n"; cout<<"1-View Latest Global Currency Exchange Rate\n"; cout<<"2-Update …

Member Avatar for rproffitt
0
4K
Member Avatar for Tyron_1
Member Avatar for Reverend Jim
0
360

The End.