49,757 Topics

Member Avatar for
Member Avatar for aexi

Calculating Average and high/lowest test score Hello, I am getting frustrated because I am currently trying to figure out how to solve this program: Write a program that prompts the user for test scores (doubles). The user enters -1 to stop the entry. After all of the test scores have …

Member Avatar for jonsca
0
209
Member Avatar for green-fresh

today when I tried some of member functions which i read about them in a cpp course i found in my c++ compiler (which is visual c++ 6) this error: error [COLOR="Red"]C2228: left of '.length' must have class/struct/union type[/COLOR] when i used this member function: [CODE]str_name.length()[/CODE] instead of strlen() function> …

Member Avatar for jonsca
0
103
Member Avatar for tennis

If I declared a static variable in a header file, and the header file is included in a couple of .c files. Is there any problem? Thanks

Member Avatar for mike_2000_17
0
194
Member Avatar for kfernandez

I need to write a program for my intro class that counts the characters in book i must be able to enter at least 3 books. I can get 1 but when it get to the second it cannot open..help! [CODE]#include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for kfernandez
0
67
Member Avatar for boos800

I am working on a hw assignment, and am following a template given by my prof. However, I keep getting an 'argument not declared in scope' error, even though his works perfectly. Here's the code: [CODE] #include <cstring> #include <iostream> namespace cop3530{ int linear_probe(int i, std::size_t cap){ return (i % …

Member Avatar for mrnutty
0
272
Member Avatar for Jacobah

Hi I am using visual C++ 2010 My dialog include button and using event handler I am jumping to request function my problem is that: When I am going back I need to go back directly to specific point. How can I do it? longjump? [CODE]Main() { . . . …

Member Avatar for Jacobah
0
188
Member Avatar for empror9

hello, i have a small project which ask the user to input value of 'x', then show sin(x),cos(x) and tan(x) using this fourmla [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16080&stc=1&d=1280001204[/url] and the project is says that i can use this fourmla to minmise the computation and increase the efficiency [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16081&stc=1&d=1280001204[/url] so my first question, when i …

Member Avatar for mike_2000_17
0
5K
Member Avatar for noora000

Hello, I need to write a programm in C++ to send a sms from a PC to a mobile phone as a part in my project, so can you please help me? Reegards, Noora

Member Avatar for usamakarim
-1
1K
Member Avatar for johnnyturbo3

Hi, I'm new to C++ but I have a Java background. Up until now I have been using header files to define my external classes. However, I've been reading a book, C++ How to Program, and they use the header as an interface (define the prototypes of a class, I …

Member Avatar for mike_2000_17
0
7K
Member Avatar for programmerC++

I need to write a program that will ust the rand() function that will generate pseudorandom numbers between 1 and 10. Using a loop,the program should prompt the user for a value until the correct number is enhtered.

0
24
Member Avatar for Hand

Hello I'm trying to make a window with Windows API. Whenever I run my application, the buttons look like Windows 98 buttons. How do I make the buttons look like XP buttons on Windows XP and Win7 buttons on Windows 7? My compiler is Mingw. [CODE]CreateWindowEx( 0, "BUTTON", "OK", WS_TABSTOP …

Member Avatar for Ancient Dragon
0
211
Member Avatar for Dimesh

Al salamo Alykom And hi.. Thank you for reading my topic ------------------------------ i want to do a program to do like these option Alt+f2 , Ctrl+r , Enter , Insert , Num Lock , Esc, Tab, (the start button) etc.... i need to call windows service to do these like …

Member Avatar for mike_2000_17
0
66
Member Avatar for Nulled

I have had horrible experiences with this forum, but I'm going to give it another go. What is the point of learning C++? I am only a beginner but what is the point? You learn all of C++, then what... you can make a console program whopee! I mean, when …

Member Avatar for Yojimbo_Beta
0
227
Member Avatar for renar

anyone Please give me an example code of sorting a records from Z-A. Can someone point me to some good tutorials so I can learn how to write and compile Turbo C program?

Member Avatar for Ancient Dragon
0
257
Member Avatar for mikenable

Hi all, I'm having a lot of difficulty trying to get this program to compile. I'm pretty new to C++, but what I've come up with so far makes logical sense to me, and I don't understand what the message "Request for member 'displayBoard' in 'game', which is of non-class …

Member Avatar for mike_2000_17
0
290
Member Avatar for alex-VX

hi I'm trying to create a player class for irrlicht the main game file calls it like this [CODE=c++] CPlayer cPlayer; player = cPlayer.Create();[/CODE] the thing is that the function must return the player so the function must be scene::IAnimatedMeshSceneNode*. player header [CODE=c++]#ifndef __C_Player_H_INCLUDED__ #define __C_Player_H_INCLUDED__ #include <irrlicht.h> using namespace …

Member Avatar for mike_2000_17
0
272
Member Avatar for yasirjani

I have made the treasure hunt game using 2D array. where '#' are the walls '*' is the border of the game. i want to place '@' as tresure at random postion between the spaces of 2D Array of size [20][20]. i know i have to use #include<time.h> time_t t; …

Member Avatar for yasirjani
0
105
Member Avatar for Kesarion

What I want to do is get my screen into a pixel array(array or rgb structs). I got a program running that loads a .bmp and does this but I want to skip the manual printscreen and loading and get it straight into an array. I searched a lot for …

Member Avatar for Mephesh
0
237
Member Avatar for crapgarden

Is this: A)[CODE]while (!isLegal(move, board))[/CODE] the same thing as: B)[CODE]while (isLegal(move,board) = !!)[/CODE] ?

Member Avatar for crapgarden
0
143
Member Avatar for madzam

I try to modify the below code by using the Arrays but unable to success , would someone help me please. Thanks [CODE]//Outputs the lowest, highest, and average of inputted temperatures //using an array structure #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main() { //input variables float …

Member Avatar for Andreas5
0
158
Member Avatar for Andreas5

I finally got this exercise working and i just need someone to tell me im awesome. Or just some feedback or tips on what i can improve(probably alot:)).[QUOTE]Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic …

Member Avatar for Andreas5
0
122
Member Avatar for ichigo_cool

Okay. I created a program to create a character, and it uses a random number generator to initialize the Character classes strength and dexterity. Here's the character class constructor. Since the random number generator is based on time, both strength and dexterity have the same value when they're initialized. Is …

Member Avatar for mrnutty
0
238
Member Avatar for Qu4n7um

Well I'mm 14 years old and I'm very interested in learning some programing languages like c++ and so on . I don't know were to start at , or what to do i have no money to go buy books to learn , if any one could point me on …

Member Avatar for ichigo_cool
0
182
Member Avatar for aukeebler

What did I do wrong? It won't does not work for my choices... [CODE]#include <iostream> using namespace std; //function prototypes void displayMonthly (double[]); void displayTotal (double[]); int main() { //declare variables and array int choice = 0; double rainfall[12] = {0.0}; //get rainfall amounts for (int x = 0; x …

Member Avatar for PatrixCR
0
63
Member Avatar for computerdummy30

I am supposed to write a food menu program for this one summer class an i have been trying for the past 2 hours to figure it out. Directions: Write a program which allows the user to choose a beverage, sandwich and side order from a menu. After the choices …

Member Avatar for EngSara
0
86
Member Avatar for jiglypop

can anyone give me the source code of CAST 128 encryption algorithm written in c++ language?... I really need this for my thesis.

Member Avatar for mrnutty
0
59
Member Avatar for so0lid

Hi everybody, I am trying to make the real substr function in c++ which its a member of String Class. Here what I have done: [code]void substr(char x[], int n, int n2){ char *p; p = x; for(int i=0; i<=n2; i++) *(p+i) = *(p+i+n); *(p+n2) = '\0'; // I can …

Member Avatar for mrnutty
0
96
Member Avatar for rowley4

I need to write a program that implements the reverse function using a recursive solution by removing the first character, reversing a sentence consisting of the remaining text, and combining the two. I have written this code below. I have two problems. 1, I am getting a fatal error on …

Member Avatar for rowley4
0
326
Member Avatar for digital_dizasta

Question 1 Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive from …

Member Avatar for mrniceguy03
0
3K
Member Avatar for RStartin

Hi everyone, I just started doing C++ coming from a java background. I'm writing a discrete event simulator at the moment and need to put 'job' objects into a priority queue and sort them by their next job time- i.e. shortest job time first. I first tried doing the following: …

Member Avatar for RStartin
0
382

The End.