Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for SolidSora

I'm trying to write a program that prints out all prime numbers from 1 to 300. It isn't working the way I want it to. Right now it appears to have caused an infinite loop. Here is my code. [CODE]#include<iostream> #include<iomanip> using namespace std; int main(){ for(int i=0; i<=300; i++){ …

Member Avatar for Mahfuz_1
0
307
Member Avatar for sahil1991

hello frndz, i was trying to implement a client server communication example.her's the code [CODE] import java.net.*; class client_server_communication { private static int client_port=4444; private static int server_port=4476; private static int buffer_size=1024; private static byte[] buffer=new byte[buffer_size]; private static DatagramSocket ds; private static byte buff[]=new byte[buffer_size]; public static void server() …

Member Avatar for NormR1
0
257
Member Avatar for sahil1991

hello frndz, i was doing this program and then i encountered this strange problem... it is a program in which i want to open two text files and then compare it.. It is giving me two errors: 1)variable f1 might not be initialised. 2)variable f2 might not be initialised. and …

Member Avatar for NormR1
0
135
Member Avatar for sahil1991

hello frndzz... just wrote a piece of code in c++....bt this didnt create any .DAT file as expected.....dun knw wats wrng.... #include<fstream> #include<iostream> using namespace std; class person { int age; char name[40]; public: void get() { cout<<"enter age:"; cin>>age; cout<<"enter name:"; cin>>name; } void show() { cout<<"age is:"<<age<<endl; cout<<"name …

Member Avatar for daviddoria
0
132
Member Avatar for sahil1991

cananyone tell me wats goin on in these files???? especially the 1st,3rd and 5th..... i hav tried a lot but cudnt figure out wats going on in the above mentiones files...my job is to prepare code for it.....anyone plz help! [URL="http://incognito.co.in/programs.zip"]http://incognito.co.in/programs.zip[/URL]

Member Avatar for Ancient Dragon
0
114
Member Avatar for nips

hey guyz.i have a c++ code using structure arrays.I want to sort the records by id and by age(using 'sort' function)and by name (using 'sortN' function). My problem is i cant figure out how to pass the records to the relevant functions from the'main' function and also how to get …

Member Avatar for sahil1991
-1
53
Member Avatar for sahil1991

hi to all, can anyone tell me about streambuf and filebuf classes...i got to know that ios contains a pointer to streambuf....so it must be something important ,right?.....

Member Avatar for L7Sqr
0
58
Member Avatar for sahil1991

hi, can someone help me with psudoprotocol in javascript..i mean what is it and how does it work exactly?

Member Avatar for Airshow
0
62
Member Avatar for sahil1991

hello, i have a dev c++ compiler and i want to install the allegro on it...... i tried few methods but they didnt work out.... can anyone tell me how to do it,plz?

Member Avatar for Peter_morley
0
71
Member Avatar for sahil1991

hi frndzz i want to set up allegro on my dev c++ compiler........and have no idea bout it... can anyone help me about it??

0
62
Member Avatar for sahil1991

hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some …

Member Avatar for sahil1991
0
208
Member Avatar for sahil1991

I was implementing this algorithm of parsing a mathematical expression....but dint meet the required result........i have restricted the string to take one digit numeral only i think i am suffering because of this type conversions between int and char...but don't know what to do... here's the code.. //parsing.cpp #include<iostream> #include<conio.h> …

Member Avatar for vinayakgarg
0
102
Member Avatar for sahil1991

hi frndzz..... i was doing some coding in c++ and realise the importance of understanding the basics of data structures.......so i thought of working on it... but,i dont know any good book for it..... it 'll be good if i can find links for some good ebooks ........ thanx in …

Member Avatar for Narue
0
163
Member Avatar for sahil1991

hi to al i was doin some programming till i encountered this problem in the followin code... i am nt able to find anythn wrong with the code bt it's nt showing the right result. #include<iostream> #include<conio.h> using namespace std; class person { char* name; public: void get() { cout<<"enter …

Member Avatar for fmadsen
0
108
Member Avatar for sahil1991

hi to all, i was looking for some objective type questions on c++ on the internet............ i got few but some with wrong answers and some with no answers at all....... i would love to hav some e-book on it or a larger question bank with answers........suggest me some links …

Member Avatar for Ancient Dragon
0
168
Member Avatar for sahil1991

hi, i hav borland 5.02 compiler running on my win7 64-bit compiler,it is not supporting <graphics.h>header file,can some1 tell me plz hw to fix this problem?......... thanx in advance

Member Avatar for mike_2000_17
0
182
Member Avatar for sahil1991

hi friends, i was doing functions and i encountered this thing that automatic variables are stored as stacks and static,global as heaps.I am in a bit confusion about these terms......can someone help me out...plz

Member Avatar for mike_2000_17
0
127
Member Avatar for sahil1991

hi friends, i have done programming in c++ and now thinking to start some new language........ i considered java initially but now i am also thinking about python but,the problem is i dont kno anything about python(especially features,powers).. so plz guide me about it and also i wud like to …

Member Avatar for sahil1991
0
105
Member Avatar for sahil1991

hi friends, check this program beneath....... \\program to fin integere part and fractional part of given real number... #include<iostream.h> #include<conio.h> void intfrac(int,float&,float&); void main() { float number,intpart,fracpart; cout<<"enter any real number:"; cin>>number; intfrac(number,intpart,fracpart); cout<<"integer part is:"<<intpart; cout<<"\nfraction part is:"<<fracpart; getch(); } void intfrac(float n,float& intp,float& fracp) { fracp=n%1; intp=n-fracp; } …

Member Avatar for sahil1991
0
137
Member Avatar for sahil1991

hi, i know structures are basically used for holding data members whereas classes can hold both functions and data members. but contrary to the definition of structures can they also hold functions?? i read that they can but there wasn't any explanation about it. hopefully,some of few can come up …

Member Avatar for sahil1991
0
102