51,593 Topics

Member Avatar for
Member Avatar for lilneppy

what is identifier in c++? giv example what is reserved word? example? data types? example? declarations? variables? assignment? expression?

Member Avatar for thekashyap
0
91
Member Avatar for mankichi
Member Avatar for mankichi
0
88
Member Avatar for vladdy19

I have a Class Personnel and a sub-class Student how could i change a pointer pointing to Personnel and have it point to Student? I'm trying this [code=cpp] Personnel *person=NULL; PersonnelNode *node=NULL; PersonnelNode *temp, *prev; Student *s=new Student(); while (temp != NULL) { person = temp->getNode(); if (stricmp(name,name)==0){ prev = …

Member Avatar for ~s.o.s~
0
172
Member Avatar for alembic21

Hello all, I am attempting to write a program that will read in, from a file, an unknown number of 4 digit integers into an array (not more than 150 numbers). From there I will be performing various calculations on those numbers. Listed below is what I have for reading …

Member Avatar for vijayan121
0
123
Member Avatar for Hamrick

I was playing with a bunch of new things today and came up with this. Did I do anything wrong? [code=c++] /* binary class manipulator Print values or strings as binary by Kimberly Hamrick */ #include <iostream> // for C++ I/O #include <string> // for C++ strings using namespace std; …

Member Avatar for Hamrick
1
208
Member Avatar for slacke

I am working on a code which has several processes forked(). (linux - KDevelop) The processes after they were created runs paralell in the background. I want to read on a command line (like cinn >> kill=1 ) which tells the main process to kill all the childs and the …

Member Avatar for slacke
0
105
Member Avatar for sowmi

Hi All, I am trying to implement the concept of function pointer in C++. While compiling i got some errors which I couldnt figure out the reason . So,Please let me know what changes should be done for resolving that error. I am trying to execute one particular command function …

Member Avatar for vijayan121
0
156
Member Avatar for SHWOO

I'm trying to implement a function to copy one instance of a stack into another instance of a stack. The result should be two identical stacks. It only outputs blank lines. I Implementation [CODE] #include <cassert> #include <iostream> #include <string> #include "linkedStack.h" using namespace std; void linkedStack::initialize() { destroyStack(); } …

Member Avatar for SHWOO
0
166
Member Avatar for vladdy19

I've written a program that keeps a linked list of Personnel. The Personnel can be of the type Student(inherited from Personnel) each student has the name and id from Personnel and a Queue of type books. Everything works except it doesn't display the list of books. please offer any help …

Member Avatar for Ancient Dragon
0
116
Member Avatar for Hamrick

I wrote strlen() for practice but it's really slow. Even if I copy the code from my compiler and run it, it's still slow. This is my test. [code=c++] /* strlen_comp Comparing my and Visual C++'s strlen by Kimberly Hamrick */ #include <assert.h> // for result tests #include <string.h> // …

Member Avatar for Hamrick
0
295
Member Avatar for bops

Hey, I have installed Kubuntu linux recently and I am looking for a compiler with an IDE to use with it. Does anyone know of any of these that will run on this OS and that I can get for free? Thanks.

Member Avatar for JRM
0
100
Member Avatar for quintoncoert

I have both smartwin and devc++ on my computer. I am trying to develop a graphical user interface but when i try to import the smartwin.h file it fails. This is because the dev c++ can not see it. It says no such file or directory. The devC++ standard library …

Member Avatar for Hamrick
0
164
Member Avatar for bvgsrs

I am getting compile error C:\Dev-Cpp\Myproj\array.cpp cannot convert 'int (*)[3]' to 'int*' for argument '1' to 'int GetValues(int*)' at the lines indicated in Red. [code=C] #include <cstdlib> #include <iostream> #define MAX 3 #define MIN 0 using namespace std; //int a[MAX][MAX]; int i,j; int Display(int *a) { int n=2; for (i=MIN; …

Member Avatar for Salem
0
113
Member Avatar for vladdy19

I delcared an enum type in my program: typedef enum {freshman, sophmore, junior, senior }level; then i declared a variable level x=freshman; how can i increase the enum type to go from freshman to sophemore etc.

Member Avatar for Ancient Dragon
0
160
Member Avatar for vladdy19

I'm having trouble writing a Queue class using Book structures i keep getting this error where tried to assign the pointer front and rear to the next or previous link in the queue here is my entire Queue class i have highlighted the parts that gave me the errors <AD: …

Member Avatar for Ancient Dragon
0
200
Member Avatar for ZachH26

I'm quite new to C++ and programming and general and I have a question about arrays. I realize this has been asked before but it has never been sufficiently explained, nor have I ever even been able to use the code given. I work with the standard C++ library and …

Member Avatar for ZachH26
0
380
Member Avatar for Brent.tc

I want to know how to remove the EWX_TOPMOST property from a window. Example: I have a window 900x900 that is relevently important, 810000 pixels is quite a bit of wasted space, and I need to get to another application, but the "big window" is very persistant in thinking it …

Member Avatar for WolfPack
0
90
Member Avatar for vladdy19

along with that error i also get these for that same line error C2143: syntax error : missing ';' before '{' error C2447: '{' : missing function header (old-style formal list?) here is that line of my code [code=cpp]class Queue{ //Number 2 protected: struct Book *front; struct Book *rear; public: …

Member Avatar for WolfPack
0
564
Member Avatar for vladdy19

these are the errors that i'm getting i dont' know whats wrong because most of it is given by the instructor any help with these errors will be greatly appreciated c:\documents and settings\compaq_owner\my documents\visual studio 2005\projects\book.cpp(12) : error C2236: unexpected 'class' 'Queue'. Did you forget a ';'? c:\documents and settings\compaq_owner\my …

Member Avatar for Salem
0
212
Member Avatar for banderson777

Hello, I'm a bit new at in-depth IE programming, and am having a bit of trouble with a couple of IE browser extensions (getting them to talk to each other). The first one is a C++ Browser Helper Object (BHO). I have a class (MyClass) that has a method called …

0
54
Member Avatar for unclepauly

hi, im creating a win32 dll using VS.NET 2005. actually im creating a COM component so i need to implement DllRegisterServer. The problem is that when i call regsvr32 on the dll, i get the error 'the dll was loaded but the dllRegisterServer entry point was not found'. Now, the …

Member Avatar for unclepauly
0
322
Member Avatar for bvgsrs

I have downloaded dev c++ IDE for C++ programmming and do have windows MediaCentre OS. Now to go for some widgets like buttons or textboxes in my program do I need to install gtk+ how would openGl with GLUT help me in this regard ? Do I have to download …

Member Avatar for ~s.o.s~
0
104
Member Avatar for quintoncoert

I have three questions about MFC and their use in Visual C++ 2005. Firstly. Can one actually use the MFC in C++? I have taken a look at the internet and almost all the information seems to indicate that it, along with win API, is for use with C. There …

Member Avatar for Narue
0
197
Member Avatar for stonecoldstevea

One-dimensional arrays in a function Ten students do a multiple choice assignment consisting of twenty questions. The lecturer wants to display their names and the mark obtained by each on the screen. Write a program to help him. Declare two global constants, namely NR_STUDENTS (set equal to 10) and NR_QUESTIONS …

Member Avatar for JRM
-3
103
Member Avatar for phalaris_trip

Hi, I'm basically trying to create captions that will go under an image in my project.. the problem is that if the caption line is too long, it will get chopped off... so I'm trying to write a function that will re-chop a string with endl's according to the width …

Member Avatar for phalaris_trip
0
96
Member Avatar for quintoncoert

can someone please tell me what i am doing wrong here? My program does not print any output after the attempted bucket sort. It only prints before. It is almost as if it does not run to its end.

Member Avatar for quintoncoert
0
130
Member Avatar for gaasha

I made an SDI application. I want to invoke it by clicking a button on a dialog in another application. I am using VC++ and tried including the header file of former [CODE]#include "..\TypingEditor\TypingEditor.h"[/CODE] and then creating its object with 'new'. [CODE]CTypingEditorApp *te = new CTypingEditorApp();[/CODE] But there are errors …

Member Avatar for Ancient Dragon
0
120
Member Avatar for ridhimasatam

i hav classA hence A.h and A.cpp,i hav declared some member variables in A.h and defined/initialized them using object of class A in A.cpp.now i hav class B hence B.h and B.cpp ,now i want to use class A's same object and its member variables (which i hav already initialized) …

Member Avatar for thekashyap
0
63
Member Avatar for kylcrow

I was asked to help make some test scripts at my work, and they use VBScript to write all their code. I pretty much only know c/c++ how hard would it be to learn VBScript if I am decent at c++? And does anyone have preference to which website they …

Member Avatar for ~s.o.s~
0
115
Member Avatar for daddy89

I made an identical thread for PHP/MySQL, so I figured I would do it again, not only because I need to know, but so it can be stickied and others can use it. Please recommend: Tutorials Schools Books Etc. By the way, I'm speaking of C++, not C or any …

Member Avatar for hinduengg
0
144
Member Avatar for sadaka

Good morrow everyone, I have read a couple of threads regarding libraries and was getting the impression that I have to install libraries in order to link executables successfully. [COLOR=Green][I][B][U]Is this true that I have to first install libraries such as Mingw32 or CygWin into my drive in order create …

Member Avatar for Narue
0
92
Member Avatar for Hypnotik

Hello everyone. I'm working on the infamous TicTacToe program. I have created a class(TTT) with it's private and public members. The program is human v. computer. In the hmove function I ask for the coordinates (0,0;1,2; etc.). I'm not sure how to pass the user selection to the printb function …

0
65
Member Avatar for ridhimasatam

hi, if i hav member variables of a say class A defined and initialized in a class A how do i access its variables in a classB which is in diff file

Member Avatar for thekashyap
0
68
Member Avatar for jan1024188

Hello, I have a server and client file. In Client I have [CODE]WSADATA WsaData; SOCKET Socket; [/CODE] In server I have [CODE]WSADATA xxx; SOCKET yyy; [/CODE] This is same in both files: [CODE]sock_addr.sin_port = htons(1234);[/CODE] Will this connection be established?

Member Avatar for jan1024188
0
153
Member Avatar for bvgsrs

Hi, I have the basic knowledge in C++ and C. I am now looking for workign on some game programming. Well, in C++ how can I get those buttons, text boxes frames etc as we have in Java or VB. would you suggest me some books or links also, that …

Member Avatar for bvgsrs
0
2K
Member Avatar for mahix

We want to build a C++ program to help a professor in grading a True/False class test. The description of the system is as follows: • The students’ IDs and their answers are stored in a file. • The first entry (header line) in the file contains the number of …

Member Avatar for Killer_Typo
0
175
Member Avatar for bploog

Hi, DaniWeb Subscribers! I need to learn Cocoa with XTools quickly. I am reading Apple's Obj-C Prog Language manual and another book on Cocoa programming. I also looked at the examples provided by the ADC. I am still overwhelmed. I'd like to get the most simple example of the following …

Member Avatar for bploog
0
128
Member Avatar for jez5758

Hi Im having a problem with thr icon for my C drive it doesn't show what it should be and when you double click on it it goes straight to search. Im running xp with sp2. HELP!!!!!!!!!!!!

Member Avatar for iamthwee
0
57
Member Avatar for jan1024188

Hello, I d like to know how to call Blue screen of death under Windows Xp/Vista. (link to tutorial appreciated)

Member Avatar for Ancient Dragon
0
179
Member Avatar for tonik69

Hi! I have the DEV-C++ and i want to install the Sparselib++ library. I have ever install a library again and I don't know what have to do.The foolowing instuction cannot help me. Can someone help me with e easiest way to install this library.It's very important fotm me. thanks! …

Member Avatar for Sturm
0
204
Member Avatar for jan1024188

Hello, I edited a source code I found on a net and now it compiles well. I get a linker error. [CODE]1>Linking... 1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main 1>C:\Users\jan\Documents\Visual Studio 2005\Projects\YAST server console\Release\YAST server console.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Users\jan\Documents\Visual …

Member Avatar for jan1024188
0
160
Member Avatar for smiles

Hi !!! I am doing a first C++ program, the way is getting the best choice between choices by comparison, here is my code [code] #include <iostream.h> #include <conio.h> #include <stdio.h> int main() { int i,n,m,k,j,tem,te; struct ways { char w[20]; } myArray[15],temp; int a[8]={0}; int b[8]={0}; textbackground(1); textcolor(15); cout …

Member Avatar for smiles
0
96
Member Avatar for jan1024188

Hello, I have made a "server" using winsocket. Its a console application and I already added wsock32.lib to liker. Here is error I get (by linker) [CODE]1>Linking... 1>server.obj : error LNK2019: unresolved external symbol __imp__mciSendStringA@16 referenced in function _main 1>server.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function …

Member Avatar for jan1024188
0
531
Member Avatar for superlox3

I have the following code for a slot simulator that I am trying to make; however the if statements don't seem to be working. Could someone please help me find out what is wrong? [code=cplusplus] // Slot Simulator.cpp : Defines the entry point for the console application. /* (%) Cherries.1 …

Member Avatar for Ancient Dragon
0
110
Member Avatar for aasi007onfire

i know some basic programming in C... now C++ is a necessity for me.... i dont have any problem with syntax... my problem is i want to know what all i must study to get accustomed to C++ i.e. the concepts that C++ has and C doesn't....

Member Avatar for vijayan121
0
166
Member Avatar for zandiago

Product expiration dates are often encoded using numbers and letters which encode the month day and year. A common technique is to use letters instead of numbers in the dates. Assume that ACME Bakers encodes the months using letters "A" through "L", each digit of the expiration date as the …

Member Avatar for zandiago
0
118
Member Avatar for Knightfall13x

i am using visual studios 8 and have added the Platform sdk include and library files to visual studios. and i am when i debug my programs i get the following errors. (the program is just a simple shell program) the code for it is as follows: [code=cplusplus] // include …

Member Avatar for Ancient Dragon
0
121
Member Avatar for zandiago

I need to write a C++ program that can be used to calculate the date of any Easter Sunday which can be computed as follows; Let X be the year for which it is desired to compute Easter Sunday. Let A be the remainder of the division of X by …

Member Avatar for zandiago
0
358
Member Avatar for Cleong

can someone give me some example code to develop a multitasking program consists 3 lines. lines one produce A and B where line 2 receive A and line 3 receive B... im new in C , can someone show me a example for reference.. TQ

Member Avatar for Ancient Dragon
0
31
Member Avatar for tomotao

everything seems to go fine except when i get to the search. either the program runs with a runtime error ,and it cannot be excuted. [code] /***************************************************** Program Filename : post.cpp Date : May 27, 2007 Purpose : NC code convert Input from : a cls data file Output to …

Member Avatar for tomotao
0
355

The End.