49,761 Topics

Member Avatar for
Member Avatar for Schol-R-LEA

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 …

Member Avatar for Ancient Dragon
1
2K
Member Avatar for Vikram Sehgal

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 …

Member Avatar for Ancient Dragon
0
318
Member Avatar for mixelplik

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 …

Member Avatar for Moschops
0
659
Member Avatar for EddieC

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 …

Member Avatar for Ancient Dragon
0
336
Member Avatar for rmsh92

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

Member Avatar for 2384443
0
203
Member Avatar for keerthychandran
Member Avatar for Learner010
0
123
Member Avatar for duskoKoscica

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. …

Member Avatar for duskoKoscica
0
350
Member Avatar for Sasquadge

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 …

Member Avatar for Banfa
0
616
Member Avatar for Danny_5

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 …

0
57
Member Avatar for ArashVenus
Member Avatar for Ancient Dragon
0
223
Member Avatar for Builder_1

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..

Member Avatar for Ancient Dragon
0
159
Member Avatar for katongo360

hi every one am a beginner and need help with a guessing game am writing an any one help me out ?

Member Avatar for ArashVenus
0
184
Member Avatar for maryyy

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: - …

Member Avatar for NathanOliver
-1
112
Member Avatar for parivallal.j

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..

Member Avatar for richieking
0
93
Member Avatar for pangandagf

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.

Member Avatar for richieking
0
97
Member Avatar for tesfaye.mulu.71

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 …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for Shyam_2

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. …

Member Avatar for iamthwee
-1
391
Member Avatar for thomas_14

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 …

Member Avatar for thomas_14
0
507
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
292
Member Avatar for joydsouza90

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- …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for sehrish20

I need a simple c++ code that prints the semantic errors of the compiler. Can anyone help me please?

Member Avatar for richieking
0
152
Member Avatar for bbub
Member Avatar for gerta_1
Member Avatar for duskoKoscica
0
534
Member Avatar for mixelplik

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]) …

Member Avatar for mixelplik
0
683
Member Avatar for PulsarScript
Member Avatar for cambalinho

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 …

0
70
Member Avatar for ivan.dyadi

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

0
121
Member Avatar for nowewiesci

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 …

Member Avatar for pritaeas
0
149
Member Avatar for priya.chitroda

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 …

Member Avatar for james.opdyckeii
0
125
Member Avatar for ryanpalma0794

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!

Member Avatar for Ancient Dragon
0
354

The End.