49,761 Topics
| |
1. //program to write the information of patients registered 2. // and physician available in the hospital.The program asks 3. //the user to register physician,register patient, 4. //list all available physicians and lisit all registered patients 5. // depending on the interest of the user. 6. #include<iostream> 7. #include<cstring> 8. … | |
Hi All , there is an application for 8051 processor that when u write ur code in asm , and then convert to hex file , [URL="http://chaokhun.kmitl.ac.th/~kswichit/easy1/easy.htm"]this application [/URL](EZDL.4) , it Write ur programm to the Microntroller . apparently , this win application written in C++ . thanx for any … | |
I recently got into coding dll's and now I'm interested in having my own injection routine code to spare time and effort instead of using general injectors. However it seems impossible for me to find a source to study that actually does the job. I've been all over the net … | |
I've been writing a Python module which contains a few classes. As I have come to use the module in earnest it has become clear that I need to create a _very_ large number of instances of these classes. This is using more memory than I would like. Speed is … | |
hi I wanna ask about virtual function.. why we use it & when? and what is the different between friend function & member function in class?? :) | |
Hi, I'm trying to make a program that prints a solid square of asterisks based on the side size entered by the user. The code builds fine but it doesn't work when I try to run the program. I get some code (looks like hex)? Please help! [CODE] #include <iostream> … | |
Hi, I have a data I want to make fix length records Like suppose:- [CODE]one two three four one two three one[/CODE] In this case the fixed length should be of the maximum string length which is of the first line. My code below is giving creating faulty fix lengths. … | |
How do I fill a part of the view (in mfc vc++)with a color.Like say,I just drew a circle,how do I fill it with some color? | |
Hi! I was just wondering if any one could show me some example of how a function of this would look like? Heres the description: Write a program with a minimum of a function, which is used to locate and after returning x-th smallest number in an integer. Ex: given … | |
Hi again! I have these four different if-then that I hope someone could help me with. [CODE] int i, j; cin>> i>> j; if (condition) ( court << "The condition is true!" <<endl; )[/CODE] Create conditions so that the condition is true if a) j is not more than 5 … | |
The program asks the user what they want to do by selecting their choice from the MENU. even in case 1. the program asks the user to input physician name ,but as I do it only works for single character for example.if I input physician name <Sisay> the loop goes … | |
I have some kinda problem each time i create a vector of strings. There is no error if I create vectors of other data types such as int, double, etc. Though there's no error...but there's warnings...and sometimes the program hangs if i do sortings. Here's an (without sorting but still … | |
Hello guyz!!! Please help me to search a records in text file. The text file written of this records: Ben 2010-0001 300.00 John 2010-0003 400.00 Mike 2010-0002 190.00 I want to input only the employee id and it will display the name and salary if that record is existed. Here's … | |
This question is bugging me for past 3 months. I have no clue how to do it , though i am not programmer. But worse thing is coder who created software for me , got no clue. I even launched this project of sending reg keys 4 times to 2 … | |
I am doing a program to get a sample infile.txt & ouput to outfile.txt I encountered alot of probs which I can't solve now. I am having issues reading from infile.txt & display the correct result in outfile.txt Pls enlighten me further. The program have to submit this Tue. My … | |
With regard to the following code. I have only included Memory.h in ClassA.cpp, but ClassB.cpp still seems to be able to see it. How do i make it so that ClassB does not use the operator new in Memory.h, but the usual one? Am am I right in thinking it … | |
Hey I'm trying to tell a remote process to run a command using (the other processes) command line (like cin). currently i use createremotethread and inject some asm into the process, but the thread sometimes conflicts with other threads and crashes the program. so now i am trying to use … | |
I am Making a STACK class which could hold a Binary Tree Nodes. I have defined a class Node. Then made a linkedlist classs. and finally the stack class. All are Template based. But during compilation it is giving me the following error. error: expected constructor, destructor, or type conversion … | |
hey xpert i'm class 12 cbse student...unfortunately i'm not able to get the output from my project. the project is based on bank employee detail.........i'm gettin the output ,but the thin is xcept aading records of the employee i'm not able to do other operation like modifiaction,deletion,listing...!!!!!!! your will be … | |
I'm writing a program that writes the Summary Information in the Properties dialog box for some files that I've created. In other words, when you right click on a file, click properties, and go to the summary tab, the fields such as: Title, Author, Category, and Comments should have some … | |
when a window is not active (eg it is minimized, hidden, or under other windows) it does not receive mouse click messages. I am going to write a program that produces a few circular waves around mouse pointer whenever the user clicks. my program is always hidden & so it … | |
why in this code the "codeArray[]" is used?? what does its really means?? [CODE] #include <iostream> using namespace std; void FunctionTwo (int codeArray[]){ cout<<codeArray[1]; } int main() { int codeArray[3] = {1,2,3}; FunctionTwo(codeArray); } [/CODE] Thank You for helping... | |
Plan and code a guessing and betting number game, as described by the text below and the sample output but do not write any functions (other than main). An appropriate welcome message with your name in it should be shown at the start of the program. The user starts with … | |
Some background. We all used the string class, but some of you might not know that string is just a typedef of basic_string. In fact here is the typedef you might find when looking in the XString library. [code] typedef basic_string<char, char_traits<char>, allocator<char> > string; [/code] This code snippet shows … | |
I'm trying to write a very simple program to print out in the terminal the first 10 entries in a long binary file composed of floats. The idea is to make this work something like 'head' in the linux terminal (but for binary files). The problem I have is I … | |
An unsigned long(9999999000) returns 1410064408. Any explanation to it? | |
Hi, I'm supposed to write a code of my TSP assignment using brute force algorithm. Although there are still some darkness about how to do it. I know what is TSP but I don't know how to start it. Let's say that we have 4 cities(A, B, C, D). Using … | |
Greetings to all. I'm having an error that occurs whenever I try to build a project in Dev C++. I can compile an individual source file fine. I have tried reinstall. I only have this error on my laptop (Vista). Everything worked fine on my other computer (XP). I have … | |
Hello People, I took a class in C++ about a year ago and really liked learning to write code and working with with programs. I did not do very well in the class, in fact i ended up with a C-. Recently I decide that I wanted to try agin, … | |
I've been trying to compile a very simple c++ code ; when trying to compile on codeblocks it says : error - stray '\312' in program [CODE] #include <string> #include <iostream> using namespace std; int main() { char letter1, letter2; string lastName; cout << "Enter your two initials and last … |
The End.