49,757 Topics

Member Avatar for
Member Avatar for ganesh_c

Are there any ways to create a two dimensional array within a "struct" data structure?

Member Avatar for Lerner
0
48
Member Avatar for sukhmani

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

Member Avatar for stymiee
0
90
Member Avatar for phatee

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 …

0
63
Member Avatar for rapperhuj

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 …

Member Avatar for thekashyap
0
87
Member Avatar for sasucker

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 …

Member Avatar for sasucker
0
729
Member Avatar for squinx22

what does subversion mean? how could I apply this in my programs? thanx...

Member Avatar for squinx22
0
97
Member Avatar for maverick786

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 …

Member Avatar for John A
0
197
Member Avatar for tosik

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 …

Member Avatar for Ancient Dragon
0
141
Member Avatar for CRD

could someone please explane what a pars error is in C++? Thank your consideration. Dick

Member Avatar for Aia
0
100
Member Avatar for chubbywubba

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 …

0
69
Member Avatar for the_glitch

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 …

Member Avatar for iamthwee
0
227
Member Avatar for naya22

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!

Member Avatar for Matt Tacular
0
76
Member Avatar for Brent.tc

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 …

Member Avatar for ~s.o.s~
0
93
Member Avatar for nikkidee

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 …

Member Avatar for nikkidee
0
191
Member Avatar for addicted

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 …

Member Avatar for thekashyap
0
88
Member Avatar for treble

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 …

Member Avatar for treble
0
95
Member Avatar for C++freak

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 …

Member Avatar for John A
-1
104
Member Avatar for JRM

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 …

Member Avatar for JRM
0
112
Member Avatar for maverick786

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

Member Avatar for John A
0
102
Member Avatar for FoX_

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

Member Avatar for FoX_
0
127
Member Avatar for jannico

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 …

0
55
Member Avatar for RaCheer

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 …

Member Avatar for iamthwee
0
167
Member Avatar for R6er

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

Member Avatar for R6er
0
254
Member Avatar for Yoshidex

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 …

Member Avatar for Yoshidex
0
95
Member Avatar for nottoshabi

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

Member Avatar for Ancient Dragon
0
156
Member Avatar for raj157

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 …

Member Avatar for raj157
0
118
Member Avatar for revenge2

Hello there, I have started learning c++ and the book im reading shows different ways of writing the "hello world" programme, i just want to know how and why these are different. [CODE] #include <iostream.h> int main (); int main () { cout <<"hello world!!"; return 0; } [/CODE] in …

Member Avatar for jbennet
0
162
Member Avatar for nandakishore

i am receiving and sending data between pc-chipcon board through serial port .the incomming data is link quality packet.i want to check the value of link quality and by observing the value i should send another signal to increase power in the chipcon board . iam having problem with the …

Member Avatar for Salem
0
199
Member Avatar for kpack08
Member Avatar for Salem
0
204
Member Avatar for katzumi_r

hi, im new in programming and C++ and i have a homework and i need a little help on how to do it will u please just tell give me some suggestions on what i should do and ill try to do it myself This is what i have to …

Member Avatar for vijayan121
0
152

The End.