49,766 Topics
![]() | |
`Inline Code Example Here What is the output of the following code: int x; int*p; int*q; p = new int [10] ; q = p; *p = 4; for (int j = 0; j<10; j++) { x = *p; p++; *p = x + j; } for (int k = … | |
Why can we virtual destructors but can't have virtual constructors? I have searched like anything. I got confused a lot after reading few articles on web. Please explain with some good example. Thanks in advance. | |
I have just finished a merge and sort code for two seperate files. My two inputs are: File 1 Adams C Benton A Jones D Haley A King B Margaret F File 2 Barnes A Charles B Johnson C William D and it keeps doing this for my out put … | |
I'm having some trouble attempting to implement the constructors for each class. I have this constructor for the class Transaction. Is this correct ? Transaction::Transaction(QString type, QDateTime datetime) : m_Type(type), m_DateTime(datetime) { } AND how do i implement the constructor for the class Deposit ? Is this correct ? I'm … | |
Hi all.. I saw a part of codes which I unable to understand.. pleaase all the expert teach me ya.. below is the part of codes.. UINT A; USHORT B; USHORT *C; CString D; if(!sscanf_s(D, "0x%x", &A)) sscanf_s(D, "%d", &A); *(C + B) = A; //<= what is the meaning..?? … | |
To print this pattren using c++ code 123417181920 --567141516 ----891213 ------1011 | |
HELP:How to transmit data with ZIGBEE using visual studio c++ Two xbee series 2: XBEE 1-connected to a pc(which transmits data to my other xbee) XBEE 2-receives data;connected to a LCD. Thanks in advance. | |
how can i put this in a flowchart form? need for my project and where will i put all the void? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int … | |
write a program to be used in a supermarket to display an item togetter with the price and to add the price and balance shown on the screen where neccessary | |
is void a declaration, and are there more other than the int, char, float, string? | |
I have a text file that represents a book , this first line of it for example is P.G. Wodehouse, "Heavy Weather" (336 pp.) [PH.409 AVAILABLE FOR LENDING] So there is authors name, title, number of pages and if the book is available. As they are not all seperayed by … | |
My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but here's a sample of it: 0 943 0 5 0 107 2 401 0 299 The first column is snowfall … | |
declaration error appearing on/after `{` below void order() please help what is my error? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int choice; printf(" === \n"); printf(" ======== \n"); … | |
InputFile.txt Bea Sanchez Junior Math OPS HIGH 17 90 Nicole Sanchez Freshman Science OCC HIGH 13 98 Billy Cruz Senior English OPS HIGH 17 80 #include <iostream> #include <string>; #include <fstream> using namespace std; struct StudentNode{ string firstName; string lastName; string gradeYear; string subject; string schoolName; int age; int grade; … | |
Hi All, I saw some code where a `sem_init` was called with a value of 0. I didn't quite understand what this meant. I understand that semaphores can be used to protect shared data, in that we allow just one thread to access the data. And, the way to do … | |
Hi, i was working on corba project using java, now i want to do it on c++. but i don't know how to compile the idl file in c++. I'm using dev-c++ for c++. So what software should i have do compile the idl file? | |
Hello All! I'm now creating a windows form application with login function. User need to input the id and password into two textbox. After clicking the "Login" button, the programme will compare the inputted id and password with a .txt file, if they match with each other, show a message. … | |
i need your help i want to write a program which copy one folder or a file from one location to another location in c++??? | |
Hello All; I want to display logs in the following format as below:- XY,1,1114,ABCDEF,d1744783-0681-4f0c-adee-83277f5e4b85:286,192.168.33.211\n where:- XY is servername. ABCDE:- UserName. I want to display this specific log from the multiple logs of different server with different name. How to do that using threads ?? | |
My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but here's a sample of it: 0 943 0 5 0 107 2 401 0 299 The first column is snowfall … | |
a c++ program the insert new element at the end of a linked list, and allow a user to search for specific item in the linked list. pseudoode for insrtion of new elements at the end of the list | |
Create a program that will ask for a two numbers and use the selected operators. How can i create this program without using switch statement? need some help.. | |
I am working on a project and I need one CmakeList.txt file, Config file, spec file. I searched a lot. tutorials are telling how to make these files and all. Please tell me from scratch what they are and what is the use of these files? Please provide links also … | |
When reading any beginning manual on C++ an array is introduced as follows: float A[10]; That format is valid, in that it compiles and seems to work just fine -- for a while. Later on in the manual we learn to allocate/release memory using the new and delete keywords. So, … | |
Write a C++ program that asks the user to enter the password. The password to this program is "password". If the password is correct, display the following message: "CORRECT!!" "ACCESS GRANTED" Else display: "Incorrect Password" "Please enter correct Password" Use a do.......while loop to complete the above task. | |
Write a c++ program to compute Number of visits for salesman per month, where he takes 60 minutes in each visit and 15 minutes to move from visit to other. Then compute the total profit for this salesman if you know that the return profit for each visit is 500 … | |
Hello everyone!! I am doing simple project on turbo c, i have made some codes for moving circle. While moving the circle it erases the previous backround design made beyond the playing area like scoring box and others. i need to check the coordinates of the cirlce and stop that … | |
Write a program which finds the factorial of a number entered by the user. (check for all conditions) (Beginner). Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 … | |
write a program that takes a three digit/two digit/one digit number as an input and displays the number in words |
The End.