424 Posted Topics

Member Avatar for aaronight
Member Avatar for JRM
0
2K
Member Avatar for Agni

Guys i have a design where in i have 6 classes called 1)HttpServer 2)ParserClass 3)InputInterface 4)Cartonization 5)OutputInterface and then i have a 6)Manager class. HttpServer gets the request xml as a string in request body. ParserClass parses the string xml and stores value in variables. inputInterface inserts the values in …

Member Avatar for ithelp
0
106
Member Avatar for superjacent

when you declare a function as const, it implies that you cannot change the state of the object inside that function. that means you cannot change the value of any member variable inside the function and you cannot make a call to any non-const function either. that is y its …

Member Avatar for superjacent
0
208
Member Avatar for Jboy05

where's the code? also this algo will always work only for 4 digit numbers, with a little more effort you can convert it to a general code for any no. of digits in the number..

Member Avatar for Jboy05
0
105
Member Avatar for shadowfire36

[CODE]#include <iostream> #include <fstream> using namespace std; int main () { //variables declared for fstream ifstream indata; ofstream outdata; //files to open and to close indata.open("c:\\data.txt"); outdata.open("c:\\results.txt"); char line1; int line2a, line2b; char val1[4],val2[4]; char delim = ' '; indata>>line1; cout << " The ASCII value of your character is …

Member Avatar for VernonDozier
0
336
Member Avatar for ITprincess
Member Avatar for vze2zv5v
Member Avatar for LisaLLL

but you needed to re-insert the 84 char string again into the new string..rt?

Member Avatar for Agni
0
69
Member Avatar for kadajett
Member Avatar for brk235
0
107
Member Avatar for moffett018@aol
Member Avatar for moffett018@aol
0
89
Member Avatar for darkprogrammer

that was a very stupid answer indeed. what he wanted was some kind of suggestion from personal reading. i.e. if you had used some book which you found really good you could have suggested that, instead of trying to be extra smart ...

Member Avatar for Salem
0
109
Member Avatar for MKQ

dude your code is too difficult to read, next time please indent it properly and put in CODE tags however i can make out that you have not overloaded the operators in your class. The operator funtions need to be declared as member functions of your class got it?

Member Avatar for Duoas
0
107
Member Avatar for vinsudhir

i guess what you want to do is create variables of type tree, for that you dont need to do typedef. you can say [CODE] tree banyan; tree apple; or else struct tree{ int height; int width; int weight; } banyan, apple; [/CODE] and they will be two separate variables …

Member Avatar for Agni
0
105
Member Avatar for eesti44

when you include one file in more than one places it might cause a redeclaration problem. to avoid that put ur includes in guards with ifndef and endif preprocessor directives. eg: person.h [QUOTE]#ifndef PERSON_H #define PERSON_H class person { \\\ }; #endif[/QUOTE] and then wherever you include this file, do …

Member Avatar for Agni
0
218
Member Avatar for koculan

if you post the code that YOU have tried then we can help you in debugging and solving the problem. but you cant just expect spoon feeding here.. ps: i just got ripped left-right-center for trying to solve a similar thread

Member Avatar for Ancient Dragon
0
151
Member Avatar for rajachi
Member Avatar for jalo3030

whats the use of the const global variables? y r u re-declaring them in main? just think whats the objective of the code, what will be the min number or variables required,their types and usage and then re-write the code.

Member Avatar for JRM
0
306
Member Avatar for jonathanasdf
Member Avatar for jonathanasdf
0
146
Member Avatar for loushou

just type 'resize + array' in the search text box and you will find the answer.

Member Avatar for Narue
0
86
Member Avatar for Agni

hey guys ... Are there any people out here who've done their masters in comp science? .. need to know whats the best time to go for a masters? how easy or tough it is?? and most importantly how useful? i have a bachelor of engineering in electronics but i'm …

0
40
Member Avatar for Ajuddy

[QUOTE=Ajuddy;516742]HI, I am still new in this language. i would like some help. i need to write a program that finds an avarage marks of "y" students by rerunning and terminating the program. i need this in a 2 dimensional array to store a roll number and marks of the …

Member Avatar for Agni
0
133
Member Avatar for RohitSahni
Member Avatar for Agni

Hi, i'm a c++ programmer and for the first time i had to do some xml parsing in my code. i have been able to do that succesfully using the xercis library, fetching the value of each tag from an input XML file, however my concern is that what if …

0
52
Member Avatar for Agni

hi... i'm a c++ developer n mainly looking to enhance my knowledge through this forum .... -rajat

Member Avatar for zandiago
0
31

The End.