49,766 Topics

Member Avatar for
Member Avatar for William Hemsworth

Hi all, I'm a very early user of Daniweb, and after a long break, and I'm hoping to participate a bit more in this forum again. I'm here specifically for some advice before starting a new project of mine. I'm an experienced C++ / Win32 developer, but seem to be …

Member Avatar for rproffitt
0
436
Member Avatar for honelign

guys please help me i have an assignment to register students in c++ with the following first name middle name last name id sex age year section the id have to be sorted include chapters interactive with user thanks!

Member Avatar for ddanbe
-1
121
Member Avatar for chris ig

I have been trying to compile this code but all my attempts failed, can someone please explain to me what's the meaning of randvar in this code: int upper_range = 255; for(int i=0; i<256; i++){ upper_range -= i; int delete_list_entry(temp_head, randvar); }

Member Avatar for deceptikon
0
150
Member Avatar for Seth_3

Using function write a program to take two arrays of integer numbers and multiply each corresponding values and put the result in a third array.

Member Avatar for rproffitt
0
72
Member Avatar for benbee

This program should calcuLate users amount of watts consumed based on their appliances and the aprroximate number of hours each appliance is used in a day, week or month. The basic requirements are as follows: Give user option of selecting predefined home appliances or entering their own and corresponding watts …

Member Avatar for luff
0
773
Member Avatar for Good Bye

Hey, I just started learning C++ a couple of days ago and I'm interested in making an automated bot for an MMORPG ie. Runescape, MU Online, Silkroad Online, Last Chaos etc. It would be for personal/private use, so only I would use it. I was wondering, is there a quick …

Member Avatar for Nihat_1
0
3K
Member Avatar for STEPHANO_1

write the program in c++ to define a class called toString with the following data member, class variable str1 and str2 member function get string, compare string, and concatenate String

Member Avatar for rubberman
0
421
Member Avatar for Mohamed_88

Dear All, I need your asistance. I need to develop an application that takes input from text box into an array and calculcate the values (using Visual c++ GUI development). I really need yoru help. Thanks

Member Avatar for thines01
0
809
Member Avatar for Devon_4

void change(char* input){ memset(input, 'a', strlen(input)); } int main(){ char* p = "foo"; cout << p << endl; change(p); cout << p << endl; }

Member Avatar for deceptikon
0
158
Member Avatar for Ehsanullah_1
Member Avatar for Mohammad_33
Member Avatar for rproffitt
0
87
Member Avatar for Bob

In C++ we provide names for the entities we create, the variables, functions and types in our programs. These names, or identifiers, are required to conform to some simple rules. [b]Valid Characters [/b] An identifier must start with a letter and is comprised of a sequence of letters and digits. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Maha_5

Hi Friends I am new to c++ coding, please tell me, i need to create project, if any body can help me, which condition we use the class, when we use the struct, how can use the function, how can think and get some idea, see brother i am study …

Member Avatar for rubberman
0
194
Member Avatar for thinkerman

Hello. I'm having trouble with creating a program based on Prim's algorithm. This is the program and got the following error: #include<iostream> #include<stdio.h> #include<conio.h> using namespace std; int weight[20][20],visited[20],d[20],p[20]; int v,e; void creategraph() { int i,j,a,b,w; cout<<"\nEnter number of vertices"; cin>>v; cout<<"\nEnter number of edges"; cin>>e; for(i=1;i<=v;i++) for(j=1;j<=v;j++) weight[i][j]=0; for(i=1;i<=v;i++) …

Member Avatar for Aiman_1
0
1K
Member Avatar for azeez_2

Write a program, which will imitate an ATM machine. The program will ask for a password. Assume that only password 123456 is accepted. If the password is correct, display the following menu Menu ATAM Bank ABC 1. View Balance 2. Deposit 3. Withdraw 4. Transfer Fund Your choice : _______ …

Member Avatar for thines01
0
619
Member Avatar for zurena

hai. anyone can help me ? I run my coding but it be invalid option even I already declare my coding. Can I know which part I wrong ? #include <iostream> #include <string> using namespace std; void printintromenu(); void login(); void mainmenu(); int main () { cout << "Welcome To …

Member Avatar for thines01
0
770
Member Avatar for Miguel_7

#include<stdio.h> #include <iostream> #include <string> using namespace std; int main() printf("Password: \n"); if (scanf_s("Hello")); printf("Good Job \n"); string Migas; cin >> Migas; else (scanf_s("Hello")); printf("Wrong!"); return 0; // Help please I don't know what to do! I've been trying to learn C language and I can't find the probrem here! …

Member Avatar for tinstaafl
0
156
Member Avatar for kashif_4
Member Avatar for Nantha_1

hi i am a beginner with c++. i have a csv file. i want to read particular set of values from a particular column. how can i do it. if possible kindly help me with some sample codes. thanks in advance

Member Avatar for DeanMSands3
0
2K
Member Avatar for Yohanes_1
Member Avatar for can-mohan

Hi All, I am looking for a design approach to implement TCP socket server which is going to serve requests based on multiple ports. (1) port1 : dedicated for video streaming (2) port 2: dedicated for audio streaming (3) port 3: dedicated for data streaming. In above scenario do i …

Member Avatar for rproffitt
0
560
Member Avatar for chrisschristou

hello, i just set goal of mastering algorith and i just get started i have an algorhtm for insert sort and i when i write it in c it is not sorting this is the algorith for j D 2 to A_length key = A[j] // Insert A[j] into the …

Member Avatar for rproffitt
0
423
Member Avatar for Eric_19

#include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { cout << " WELCOME TO GPA CALCULATOR \n\n"<< endl; int x, nument; float GPA, TotalHrs = 0, GEP = 0, CrHours, X, Y, TotalPts; char Grade, A, B, C, D, E, F; char choice = 'Y'; cout << …

Member Avatar for Eric_19
0
311
Member Avatar for Giga_1

A [n] [m] matrix of natural numbers (2 <= n, m <= 100) is given by the fine A [i] [j] at each passing point (i, j). You are required to enter the first line of the first line from the n-string line. In addition, moving from the current drawer …

Member Avatar for Reverend Jim
0
115
Member Avatar for Wiki_Tiki

Hi, I need help playing a sound in Visual C++ 2008. (Windows Forms App). I've tried many things searching on google, I used this method: [CODE]PlaySound("beep.wav", 0, SND_LOOP|SND_ASYNC);[/CODE] Then I get the error, "'PlaySoundW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR''. Can anyone help me play …

Member Avatar for sahana_3
0
689
Member Avatar for can-mohan

In below code i am writing file contents in backup serialize file through boost serialization library, but what i observed that every time i need to store all the data in file then only i would be able to read the entire data. so in case if i perform single …

Member Avatar for can-mohan
0
330
Member Avatar for Leeroy_1

Write a C++ program implementing the use of Object Oriented Programming that would simulate a supermarket cash register receipt. The program should start by displaying the Supermarket's Name and business motto ... for example BRODIES - SERVICE, VALUE , SATISFACTION. Then goes on to ask the user enter the customer …

Member Avatar for rubberman
0
2K
Member Avatar for Josh_3

I am learning to code and found interesting task, but i do not know where to start in solving it. So i have a file with some titles and comments which need to be placed under the right title. So the first line of the input contains a number N …

Member Avatar for tinstaafl
0
446
Member Avatar for Supremo_1

I want to create a program that enables user to input 90 entries (90 questions' answer ranging from A to D)(1 answer per Question) and when it feeds the input, the program checks the entries with its randomly generated answer keys. (+4) for every correct entry (-1) for every wrong …

Member Avatar for rproffitt
0
178
Member Avatar for yosri_1

hi all, im realising motion detection that compare two successive frame saved in directory , using OpenCv but, the code is successfully debugged, but when i run the app it displays an exception, any help please ![fd.png](/attachments/large/4/15ef48aa38ace106bfefbeb623106185.png "align-center") my source code #include <iostream> #include <fstream> #include "opencv2/opencv.hpp" #include "opencv2/highgui/highgui.hpp" #include …

Member Avatar for rproffitt
0
3K

The End.