49,761 Topics
| |
Do you think the C++ Programmer Primer is a good book and will teach me alot of information? | |
I'm trying to port some code written in MS Visual C++ 8.0 (the version is copyright 1998, I know that for sure.) into MS Visual C++ 2005 Express. I've been having trouble trying to translate the code though. I've been using #include<random> as a header to generate random numbers. After … | |
I am writting the fallowing program: The program is working find; however I can't get the funciton to calculate the total and the tax. can someome help me please. Here is the code... [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iostream> [/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<string> [/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip> [/COLOR] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] showMenu(); [/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std; [/COLOR] [COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] menu = … | |
Hi, I am writing code in c++ for sending and receiving messages through ports. I have written code for opening port as hComm = CreateFile(portname,GENERIC_READ | GENERIC_WRITE, 0, 0,OPEN_EXISTING,0,0); this is done , but Now I need to send the message to be send to Port. also need to get … | |
Are there any ways to create a two dimensional array within a "struct" data structure? | |
hello I'm making chess in c++. I have to submit a report and it should include system development life cycle and detailed design....if some one cud please help me out wid it.... plz mail me at[EMAIL=<snip> sukhmani | |
Hello everyone, i just signed up with Daniweb hoping you guys give help me out. I'm reading c++ primer plus(4th edition) and needed some help with a program exercise on chapter 9. well here it is. 2. This the namespace [code] namespace SALES { const int QUARTERS = 4; struct … | |
AHMMM... HI guyz.. ladies and gentlemen ... thank you for responding at my 1st post hir in daniweb site...ahmmm.. i really apreciated it.. please give me some suggestion..comments and solutions to this problem briefly... heres my codes... MY PROBLEM is.. how to configure the country full name and its coordinate … | |
So in class we're making a pong game using the curses.h library. So far I've managed to make the ball move around and bounce, hit the paddle, determine the number of blocks/misses, and so forth. The only trouble I've had is having it dynamically update the number of blocks and … | |
what does subversion mean? how could I apply this in my programs? thanx... | |
Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the length of my queue. I started getting compilation errors when I included a length … | |
hi there ! im new here and i wish to stick around for a good while !! and would like to ask you ! can u help me with this (i need this code to change a bit ! but still work in same way!! (im using c++) plz anyone … | |
could someone please explane what a pars error is in C++? Thank your consideration. Dick | |
I have these two class and I have to make the Dynamic3DArray class a template. I started it but now I am lost and I do not know where to go or what to do. I tried looking online but nothing I find I can seem to understand. Can someone … | |
I originally joined this site almost a year ago so i could find out the name of the GUI library that's in most compilers. Didn't get much help back then. But I hope that will change. I'm making a sudoku game in C++, so obviously I need a matrix (or … | |
Hi. I'm currently working on a program that requires me to use arrays. Does anyone know a good tutoring site that I can go to?? Thanks! | |
For any of you who have posted at my previous questions [COLOR=darkorange](this is mainly directed towards Ancient Dragon) [/COLOR][COLOR=black]you know that I have a tendancy to ask about things I have nearly no knowledge of.[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]This time is no different, I wish to know how to send a string … | |
When I run this code (Visual Studio 2005), I get the following compiler errors and can't fix this no matter what I do: c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C2143: syntax error : missing ';' before '<' c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(24) : see reference to class … | |
Hey, Please i need help with prime numbers... i have been cracking my brain for the problem since two days ago..... I used this test code but there is a problem with it [code] for( number=3; number<=1000; count++){//to test number 3 to 1000 if(number%2 != 0){//to skip even numbers for(int … | |
I'm just getting started with classes and objects, and having a little trouble. I just filled out some of the basic parts of the program, because I figured I'd have trouble with the class/object implementation. I get the error "error C2228: left of '.determineSalary' must have class/struct/union type" in regards … | |
Hi all, I am a self learner and getting dificulty to solve this. Can any body help me out and let me know where I am going wrong. Thanks in advance............................... Write a program that can be used by a ski resort to keep track of local snow conditions for … | |
Hello all , I was experimenting with athis program using vectors. The code below works, but is not my original intent. Instead of arbitrarily adding 4 numbers, I wnted the program to keep taking numbers and growing the vector dynamically as needed without pre-allocating the resources. i couldn't figure out … | |
Could someone check my code as to why my print function is not working? Also my pop member function is getting an error in main. [code] template<class Type> void Novice<Type>::Print() { while(! IsEmpty()) { std::cout << topPtr->item; topPtr = topPtr ->next; } } template<class Type> void Novice<Type>::Pop(Type &y) { if(IsEmpty()) … | |
Hi all; I've to use a dynamic array(2D) in my program in C. I've read some tutorials about this and I understood its mental.But still there exist a few points which I didn't understand. Here is a code: [code=c] int main(){ int **a, x; a = (int **)malloc(sizeof(int) * 10); … | |
Hello, i want do some coding with libtiff. My environment is: win2000 DevC++/Mingw 4.9.9.2 i installed the devpacks for libtiff, libz, libjpeg i got some code, but compiling i get a linker error: undefined reference to _ _fxstat64 undefined reference to mmap64 undefined reference to munmap these functions are part … | |
Hello! I have written written my own class, which includes a header file and a .cpp file. I have also written the driver for this program. Everything looks fine to me, but I am receiving about 20 random errors. I will post my code for all 3 files but I … | |
Hi, I have a parallel array of size 10 with several different size numbers in them. Within my program I put a series of cout statments for the different array indexes so that was known, and here they are: [code]cout << classes[0] << " " << boxes[0] << endl; . … | |
Hello there, I think I have a weird problem with a program I'm writing, specifically, a function to create a file. I made the following program just to test the important part of the problem, which is that it won't create the file. Here's the code. [code] #include <fstream.h> #include … | |
I'm getting this error from this code. I never seen this before. [code=c] #include <cstdlib> #include <string> #include <iostream> #include "../incl/rect.h" #include "../incl/position.h" using namespace std; // function prototypes void displayRectangleAttributes( const RectangleShape &r ); void displayRectangleAttributes( const RectangleShape &s ); string convert( const color &c ); // int main() … | |
well the problem is i want to write the person's name from preson class to instructor class using inhertiance, i have come up with the following code but gives error .. can someone tell me what am i missing or what can be done. its like sharing from person class … |
The End.