49,761 Topics
| |
I was assigned to write a program that will verify a password entered by the user. The program should verify that the password has 6-10 characters and atleast 1 uppercase, 1 lowercase, and 1 numeric digit. The program runs, but will only display the length of the password entered and … | |
hi i'm new and i've got this problem i can't figure out when overloading the assignment operator for a queue object. here's what i've got so far: [CODE]nodeType<Type> *current, *newNode, *last; //pointers for adding nodes bool doneOnce=false; if(this!=&otherQueue){ //no self copying destroyQueue(); if(otherQueue.queueFront==NULL) //if queue is empty, save some time … | |
What are some good exercises for an experienced programmer new to C++? I have found lists and suggestions on the web, but they are always simple or I have already completed them in other programming languages like C or Basic. Something that will help with learning modern C++ is best. | |
I need to modify my linked list to hold integers instead of strings by modifying the Node, List, and Iterator class. Don't know how to start this. This is my code. [CODE]#include <string> #include <iostream> #include <cassert> using namespace std; class List; class Iterator; class Node { public: /* Constructs … | |
Hi there, I'm in the process of moving some code into Visual C++ 2008, the code works fine when compiled with Mingw however crashes when compiled with VC++: [CODE=c++] s_cell **cell; *cell = (s_cell *) malloc(sizeof(s_cell) * MAP_X); for(int loop = 0; loop < MAP_X; loop++) { cell[loop] = (s_cell … | |
| 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 … |
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> … | |
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 | |
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() { … | |
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 % … | |
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() { . . . … | |
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 … | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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; … | |
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 … | |
Is this: A)[CODE]while (!isLegal(move, board))[/CODE] the same thing as: B)[CODE]while (isLegal(move,board) = !!)[/CODE] ? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.