49,761 Topics
| |
So I am trying to wrap my head around link lists and the theory is there but the magic isn't (at least in my program)... my problem runs with the void traverseRecord() function. For some reason it automatically shows all the nodes. Maybe I haven't totally grasped the concept of … | |
I am good in different languages, that is: Java, python, C#, VB.NET, php, javascript I have been programming for a while now it's about 2 and half years but the issue is when I focus on one language I tend to concentrate on it more than the others which leads … | |
Write a complete C++ program for WorldParking Sdn Bhd. to perform the following: a. Write a return-value function named calcCharges() to calculate and return the parking charges for the customers. The company charges a RM1.00 minimum fee to park for up to one hour. An additional RM0.50 will be charged … | |
Write a complete C++ program for WorldParking Sdn Bhd. to perform the following: a. Write a return-value function named calcCharges() to calculate and return the parking charges for the customers. The company charges a RM1.00 minimum fee to park for up to one hour. An additional RM0.50 will be charged … | |
can you please tell how you would invert the mouse control so that up is down, left is right etc. | |
Dear software developers, We are researchers aiming to understand developers' knowledge needs and program comprehension. Our intention is to support practitioners in selecting tools that can facilitate developers' tasks. Moreover, we hope that our research results in the development of new tools that are customized to the actual needs of … | |
Help, how can I create a MULTILEVEL QUEUE ALGORITHM program? I tried it but it crashes, does not build... It would be okay if its in other language. HERE IS THE SNIPPET CODE SAMPLE (c++): --------------------------------------------- //Enter Number of Process cout<<"\nEnter the number of Processes:"; cin>>n; //INPUT Arrival, Burst, and … | |
if i have X,Y(10,20) and the speed is 2, will be: X = X + 2 Y = Y + 2 ? same goes for Z or it depends on direction?(Y or X rotation) | |
How to find rectangle and triangle length, height and base | |
` #include<iostream> #include<cmath> #include<iomanip> #include<fstream> #include<string> using namespace std; int main() { const int num=10; double a[num],b[num],c[num],disc,x1[num],x2[num],qe,x,realpart,imaginarypart; char answer; do { for (int index=0; index<num;index++) { cout<<"Enter coefficient of a (a>0): "; cin>>a[index]; cout<<"Enter coefficient of b: "; cin>>b[index]; cout<<"Enter coefficient of c: "; cin>>c[index]; qe=a[index]*(pow(x,2))+(b[index]*x)+(c[index]); disc=(pow(b[index],2))-(4*a[index]*c[index]); if (disc>=0) { … | |
i'm learning Math for 3D... for now i can draw a plane and convert 3D to 2D(the screen is 2D): Private Function ConvertPositon3DTo2D(Position As Position3D, World3DSize As Size3D) As POINTAPI Dim ConvertedPosition As POINTAPI Dim PosZZDepth As Long PosZZDepth = Position.Z + World3DSize.Distance If (PosZZDepth = 0) Then PosZZDepth = … | |
Am still at school and am doing programming, and I choose these forum because it will be helpful for me in gaining the knowledge and experience on c++ and many other programming language. | |
How to add meeting host/meeting controler How to allow meeting host to set another person as host How to add signing with account https://jitsi.org/jitsi-meet/ | |
Hi all, I am new to C++, I am studying a C++ code and would like to learn how to implement it in Python. I encountered the following: 1 unsigned short arr1[2]; 2 unsigned int * arr2 = (unsigned int *) arr1; I tried to write a C++ code to … | |
I have to make a program that reads the number of seats and stores it in a two dimensional array. The empty seats is hashtag and if the user buys a seat it becomes *. The odd rows have 15 seats and even have 20. When I purchase a seat, … | |
Program specification 1-generate then income file.txt file. 2-print list of employees which match a givn last name. 3-print payroll summary 4-exit program | |
#ifndef CIRCUIT_H #define CIRCUIT_H #include <iostream> using namespace std; class Resistor { public: void setResistance(double); double getResistance(); double GenerateRandomCircuit(); double calctotalResistance(); void GenerateQuiz(); int op[7],res[8]; private: double r; }; #endif // CIRCUIT_H #include "Circuit.h" #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; void Resistor::setResistance(double r1) { r=r1; … | |
Hi, could you please let me know what should I learn first about programing? I mean, may be I need to learn HTML, C++, Java, read a specific book, I don't know where to start and hope you can show me the way, please!! I would really appreciate it | |
A.Employee and ProductionWorker Classes Design a class named Employee. The class should keep the following information in • Employee name • Employee number • Hire date Write one or more constructors and the appropriate set and get functions for the class. Next, write a class named ProductionWorker that is derived … | |
I have a class which is sort of like a repository, and every time I write to the zip archive using this command, the prior activity is overwritten. /// <summary> /// Insert file into existing archive file. /// </summary> /// <param name="fullPath"></param> /// <param name="stream"></param> public void InsertIntoFile(String fullPath, Stream … | |
Love the idea of the program. Im quite interested in seeing how to get something like this to work. Is there any chance someone could add a working version to the code snippets section or possibly send me a working snippet in PM? Im trying to educate my self and … | |
| **how to let add &subtract methods work at main!! ** #include<iostream.h> class complex{ private: double real,imag; public: complex();// default constructor complex(double r,double i) { real=r;imag=i; }; void complex::setComplexNumber(double r,double i) { real=r;imag=i; } complex complex::add(complex x) { complex a; a.real=real+x.real; a.imag=imag+x.imag; return a; } complex complex::subtract(complex x) { complex s; … |
| hey , if i wanna write this code by " while" loop , what the steps to do that ?? #include<iostream.h> char *TESTmarks(char *t){ char marks [] = {'.',';',':','!',',','?'}; char *newm=new char [strlen(t)]; for( int i = 0;i<strlen(t);i++) { for(int k = 0;k<=7 ;k++) { if(t[i] == marks[k]) t[i] = … |
Write amodularC program that accepts by keyboard input five(5) user-scoresof the PS5 gaming console. The program must repeatedly request from eachuser,ratingson thefollowing factors of the PS5 gamingconsole:•cost,•games, •backward compatibility, and •screenresolution. All factorsare to bescored using a scale of 1 to 5where 5 represents the highest rating on a factor … | |
| ,can anyone help me to find what's the problem with this programming code! it's work so well !but there two methoods didn't work ((the max salary method and sum salary )) at (main)... Especially the output results . there's no errors \\ i have no idea how to solve it … |
I am unable to run a serial comm library in visual studio for a 64 bit machine target. It works fine for x86 bit. I have attached my source code and visual studio solution file. Some one please help. | |
i am trying to get gstreamer to capture frames and have them put into a picture box on a glade form , this is my Code snippet so far , can anyone give me come guidance GstCaps *caps = gst_sample_get_caps(sample); // Get a string containg the pixel format, width and … | |
Hi all pls help me with the soln to this probelm, the catch is the interface (menu) needs to be Built in C++ as well. any suggestions would be of great help as well. thanks It is a system written using a structured programming language (e.g. C, Turbo C) that … | |
double Node::ConvertChar(char key[]) { double value; value=atof(key); return value; } void Node::ConvertFormula(string formula,int resistor,vector <Resistor> &Res,vector <double> &OpArray){ int Operator=resistor-2; resistor=resistor-1; int length=formula.length(); int j=length-4; double resistance; while(length>0) { char temp[3]; int x=1; for(int i=2;i>=0;i--) { temp[i]=formula[length-x]; x++; } resistance=ConvertChar(temp); Res[resistor].SetResistance(resistance); resistor--; while(j>0) { if(formula[j]=='+') { OpArray[Operator]=-1.0; }else { OpArray[Operator]=-2.0; … |
The End.