49,756 Topics

Member Avatar for
Member Avatar for faisaly

Pleae pass the comments on "It is said by some people that insertion and deletion operations in Heaps make them less preferable than Binary Search Trees"

Member Avatar for Salem
0
221
Member Avatar for vadan

hai i have an application running on AIX 5.2 in C++ when iam trying to execute the application, everything is going fine, but on exit its getting core dumped, and the stack trace is as shown below Illegal instruction (illegal opcode) in . at 0x0 ($t1) warning: Unable to access …

Member Avatar for Salem
0
170
Member Avatar for masterjiraya

I have here the the cpp file named as clock [code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; #include <cstdlib> int main() { // ofstream constructor opens file ofstream outClientFile("clients.dat", ios::out); if(!outClientFile) { cerr << "File could not be opened" << endl; exit(1); } cout << "Enter the …

Member Avatar for masterjiraya
0
108
Member Avatar for cam875

lets say for some reason you needed to draw a very small image and plot each pixel indivudually with code using directx. Is this possible and pick out that pixels colour and everything or do you need to use a supported format like a .bmp or something. all help is …

Member Avatar for cam875
0
180
Member Avatar for Agni

Hi, has anyone used the mdb debugger in solaris? I need to debug a core file on a client Machine which has neither dbx nor gdb. i could only find mdb, unfortunately i've never used mdb and it's kind of tricky. i dont know if people still use it these …

0
70
Member Avatar for wenny86

this is my assignment question. You must implement a simulation program to model air traffic among a collection of airports, as discussed in class. There are two important extensions that will be made to the model. First, in addition to arriving aircraft using the runway, departing aircraft must also use …

Member Avatar for ArkM
0
2K
Member Avatar for a1159538

HI guys i am a beginner c++ programmer so hopefully this one will be easy for the gurus. i am trying to write a class to do matrix multiplication and then use it. In the class are 5 functions: one to define the dimensions of the matrix two to enter …

Member Avatar for a1159538
0
164
Member Avatar for QuantNeeds

I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void …

Member Avatar for QuantNeeds
0
410
Member Avatar for QuantNeeds

Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // …

Member Avatar for QuantNeeds
0
1K
Member Avatar for jkrege03

Hi, I'm in need of some help on a project I'm doing for a class. In this project were creating an inventory management system for a soda pop company. The menu's and initial part of the program has already been created, my job is to take three fields, sku, quantity, …

Member Avatar for ssaurabh
0
1K
Member Avatar for wenny86

This is the code. I'm having problem in comparing the Now and arrival time(atime) of plane. To get the result the number of plane on the air. urgent.this code have to pass up on tuesday. thanks! [CODE]#include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <cmath> using namespace std; int …

Member Avatar for VernonDozier
0
96
Member Avatar for henpecked1

Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot …

Member Avatar for ArkM
0
2K
Member Avatar for CoolGamer48

To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of …

Member Avatar for Prabakar
0
89
Member Avatar for pavel989

does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right?

Member Avatar for pavel989
0
141
Member Avatar for Motvel

The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include …

Member Avatar for Motvel
0
150
Member Avatar for gispe

hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If …

Member Avatar for gispe
0
75
Member Avatar for Jennifer84

I really wonder how it is possible to put text to a label from one Form to another. So From Form8, I want to reach label23 on Form7. I have tried out this below, but the compiler says: 'Form8' : undeclared identifier 'form8' : undeclared identifier left of '->set' must …

0
61
Member Avatar for tootypegs

Hi, I have a console application that works fine. The users puts in the path of a folder and my program looks at every file in that folder. This is exactly what I wanted only now I'm moving it over into a GUI. Im using borland c++ builder 6 and …

Member Avatar for Ancient Dragon
0
93
Member Avatar for gispe

hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the …

Member Avatar for Prabakar
0
87
Member Avatar for michael1201

ok so im checking a 9x9 soduku game and i need help checking the part where the 3x3 boxes are all cheked. i cant seem to output the errors for the 3x3 box check can someone help me out. i want it to output which box that has the error …

Member Avatar for Salem
0
193
Member Avatar for Manutebecker

I did Hello world about a month ago, (my first language was BASIC), and now im onto things like Templates and I got all of my classes pointers and filing stuff down fine...Im trying to get OpenGL and SDL going (I'm already doing pretty good with the Allegro library). Idk …

Member Avatar for Tigran
0
133
Member Avatar for cam875

Is it possible to code the client application using winsock API so it can run for windows but the server with berkeley socket API so it can run for linux. I mean will they be able to establish a solid connection even though the socket API's and OS's are different. …

Member Avatar for cam875
0
152
Member Avatar for venomlash

Does anyone know a good way to get a bitmap (or other picture file format) and put it on the screen using OpenGL??? I mean, that kinda thing is hard enough in the sissy, user-friendly syntax of JAVA. Anyone?...anyone?...Bueller?

0
115
Member Avatar for manzoor

[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected …

Member Avatar for manzoor
0
509
Member Avatar for nikki123

Develop a program in C++ which takes input a file of C Language and process all #define (i.e. #define MAX 100, than replace every occurrence of MAX with 100). (Macro value 100 can be an expression also.)

Member Avatar for Salem
0
109
Member Avatar for jerryjerry

hello everyone, My doubt is related to access specifier. There is one code snippet - [code=cplusplus] class Base { public: explicit Base(); static int object_count; protected: int id; }; class child: public Base { public: child(int val) : id(object_count++){} }; [/code] This code is giving compilation error that id is …

Member Avatar for jerryjerry
0
288
Member Avatar for gispe

hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int …

Member Avatar for gispe
0
70
Member Avatar for Hannahlv

Hi everyone! I'm doing my project related to socket programming. The send and receive part I got problem. The code is below : Server side: [CODE] printf("Handling client %s\n",inet_ntoa(their_addr.sin_addr)); if (send(new_fd, "Menu\n", 5, 0) == -1) //(1) perror("send"); if(send(new_fd, "1. A.mp3, 2. B.mp3, C.mp3\n", 26,0) == -1) //(2) perror("send"); if(send(new_fd, …

Member Avatar for Salem
0
126
Member Avatar for EngSara

Hi... [code]// read the whole file through one line at a time while(getline(in, line)) { // check does this line start with the tag string 'SER(FIT):' ? // note: there must be no tabs/spaces at the start of the line if(0 == line.find(tag)) { // yes it does, then use …

Member Avatar for Salem
0
87
Member Avatar for CoolGamer48

Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like …

Member Avatar for CoolGamer48
0
78

The End.