49,761 Topics
| |
In most modern languages, there are two fundamental approaches to repeating an action: either *iteration*, in which an action is placed inside a special-purpose structure which causes the action to be repeated, or *recursion*, in which a general-purpose function calls itself (or another function which in turn calls the earlier … | |
so i am new to c++ and my teacher told me to make a hotel management programme... well to make it more cool looking i wanna add those arror keys scroll selection this " --> " when press up key it goes to the first option, down to the other … | |
I need to generate 40 random numbers between 50 and 100 using rand(). How do I do this? cout << sizeof(a) << endl; for(int i = 0; i < 40; i++) { if(rand() % 1000+1 >= 50 && rand() %1000+1 <= 100) a[i] = rand() %1000+1; } I was doing … | |
Companies using IBM's Rational and Tivoli product will breathe easier today, thanks to new, integrated versions of nine tools that the company says will facilitate communication and closer collaboration between software development and support teams in the enterprise. What's more, prices will remain where they are, and the updates are … | |
Write a C++ program that reads a set of eight temperatures values and display the number of HOT, WARM and COLD records according to the following classification HOT >35 warm Between 27-35 cold <27 by using if statment | |
Well I have created this one and on my computer it is working. I would like to hear about some alternative solutions. INTRODUCTION This time I have one algorithm, but to understand it we need to consider a few terms. First of all, we should be familiar with the pangrams. … | |
Hey guys so I'm having an issue with my program. Some information about my program it stores a const char* str converts it to int which is in ascii then it runs a test on the number and converts it back to a string. Then it will also add these … | |
I have some .cpp and .h files residing in path ~/NetBeansProjects/myApplication main.cpp person.cpp person.h and I have my cppunit .cpp and .h files residing in path ~/NetBeansProjects/myApplication/tests TestCase.cpp TestCase.h finalresults.cpp assuming that I am at ~ and I have cd to directory /NetBeansProjects/myApplication in my terminal I want to do … | |
| my question is , where & when are `static` and `extern` used ? |
kindly tell what is #pragma warning(disable: 4996) in the above program????and how can we cout the locations of each vowel in the sentence.. | |
hi every one am a beginner and need help with a guessing game am writing an any one help me out ? | |
Should be written with the program which will be programmed lotto game in which the generated 7 random numbers in the range of numbers from 1 to 39 (valid numbers are from 1 to 39). Generating numbers must be stored in a vector. Design of the program will be: - … | |
the text file looks like: one hello hi twenty-five billion fifty maths three thousand and two output: count the number of text numbers: 4 please Give me any idea.. | |
design a program that will check the format for telephone numbers. telephone numbers should be entered as a string w/ the first three character followed by a dash and the last four numbers.. please help i need an answer on this..its a simple string. | |
Dear programmer, A pharmacy needs to automate drug inventory management system. Every drug has chemical Name, Chemical Composition, date of manufacturing, expiry date, and country of origin, quantity, category and others. The pharmacy has a policy to dispose expired drug before use. However, it is not an easy task to … | |
Design and implement a class named "Vector 5D" using C++ which stores a 40 hypothetical vector having 5 components, you may assume these components as V[1], V[2], V[3], V[4] and V[5] . The class should use array to store these components. The class should have necessary constructors and member functions. … | |
I have a method in foo class that needs to be initialized in my main.cpp and inside another method of foo.cpp. basically my example has a mainPage then will allow to user to do addition or subtraction depends on their choice. after the addtional/subtraction method is done, it will go … | |
Hi, I am currently writing a library for dynamic use, and in it I have some string functions. This particular one returns a substring of a given string from the rightmost, determined by a given count. I just get the feeling that I'm missing some error checking and would like … | |
could anyone tell me what are the max values that can be entered in turbo c++ gotoxy function..... the help says that (35,25) is the bottom right position in the window but i can enter text even upto x-coordinate 50.. what i want to do is enter text at y- … | |
I need a simple c++ code that prints the semantic errors of the compiler. Can anyone help me please? | |
do u have any code to find a system of two linear equations with two variables?? | |
How do I pass a single row of a 2 dimensionsl aarray to a function? #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; // ------ Prototypes ------------------------------------------------------ double calcNums(double[]); // ****** MAIN ************************************************************ int main() { double nums[2][5] = {1,2,3,4,5,6,7,8,9,10}; calcNums(nums[1][5]); return 0; } double calcNums(double nums[1][5]) … | |
How to create a class in visual studio 2012? | |
i know use the some functions for put an image on window: void setImage(string FileName) { HBITMAP hImage =(HBITMAP) LoadImage(NULL,FileName.c_str(),IMAGE_BITMAP,20,20,LR_LOADFROMFILE); HDC image = CreateCompatibleDC(NULL); SelectObject(image,hImage); BITMAP bitmap; GetObject(hImage,sizeof(BITMAP),&bitmap); BitBlt(GetDC(this->hwnd),0,0,bitmap.bmWidth,bitmap.bmHeight,image,0,0,SRCCOPY); } but i get 2 problems: 1 - the image isn't showed with original size :( ; 2 - after 2 … | |
Qn. Given the following pseudo code, write a program that executes it. (20 marks) read a read b compute x=a*b+2 compute y=a-b total=x2+y*(x+a)*(y-b) print total Solution:vv | |
In which **real** situations have you seen C++ usage for web applications wth PHP? I've looked throught the forum, I've asked uncle Google and I know that: - PHP extensions can be written in C/C++ - there is a great amount of C/C++ libraries you can use in PHP projects … | |
Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, Window (Yes/No), Projector (Yes/No), Available(Yes/No). Instructions: Create functions that allow you to add data to the attributes of the classroom. Create functions that allow you to print out … | |
I have no idea in how to make a simple database using C++. Please share some ideas or LINKS in how to make a simple database using C++. thanks in adnvance! |
The End.