No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Ask Me
- Interests
- Football,Table Tennis,Music
20 Posted Topics
Re: Another way to get the substrings of the given string with spaces as delimiters can be [code] #include<string> #include<sstream> using namespace std; string givenString="This is the string to be split"; stringstream s; string temp; s<<givenString; while(s>>temp) cout<<temp<<endl; [/code] | |
Re: Its decision finally going to be taken by her, But all those signing here(I too) want you to stay here for their own benefits;) and choice TOO ..It always pleasure to read your all posts..there are too informative most of the times!!! | |
Re: By definition of maps compare what are you doing right now and what do you want it to do.May be what you want is [code] map<vector<vector<int> >,int > m; vector<vector<int> > vvi; int i; m.insert(make_pair(vvi,i)); [/code] Hope it helps! | |
Hi.. I have nearly learnt c++ ..and I want to learn java as i suppose softwares solutions are usually provided in java..:?: ...I know nothing about java.I saw the tutorials ..but the were not introductory..can someone help....??? Thanks in advance. | |
Hi.. Could any one tell me about... 1) What is top-down approach(POP) and bottom-up approach(OOP) and the difference between them.. 2) Different types of containership (might be with exs..) Thanks for the help | |
Re: [quote=robase]I need some help to do the following Count all spaces written to the output file Count all alphabetic characters in the output file [code]include "stdafx.h" #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("checkIn.dat"); if (myfile.is_open()) { while (! myfile.eof() … | |
Re: What is the problem ..specify that..and put brackets in the formula to avoid confusion and miscalculation | |
Re: [quote=qgirl]I am suppose to write a c++ program that show 1. shows the different breakfadt items offered 2. allow the customer to make more than one selection 3.allow the user to select multiple orders of a particular type 4. calculate and display the bill This is what i've got so … | |
Hello... I found about the site through my friend. It has been a very useful site with posts ranging from the beginners to experts..A nice thing is the community is it tries to change the attitude of the programmers :) Well I am registered in another community too..but I think … | |
Can only the thread starter mark he thread as solved..I suppose yes along with administrator..So any method for making everyone mark solved after writing thanks i.e. after problem is solved.... It wastes time reading a long thread and then see that its already is solved.. | |
Re: try and use strlen and then display accordingly ..then might be your lovely program may run!!!! | |
Re: Think According to your code what will happen in foll condition if the first word entered is second largest second is largest and third one is smallest..... | |
Re: Write The code according to your thinking..when and how do you calculate manually..simple when the user enters see if there is a overdrawing ..if yes then deduct 35 and display the balance(i.e. after -35 and not -fwithamount)..dont allow -fwithamount.. if no then allow the normal procedure hope you get it!! | |
Re: hello madonnamama, please try and be specific in your problem. whether it is a logical or whatever error you get point it out..try and shorten your program by using more for loops and switch statements.. | |
Re: [QUOTE=Acidburn][code] void program(string &sym) { stmt(sym); //cout << sym; if(sym!="$") { cout << "Parser failed" << endl; } else { cout << "PARSE COMPLETED" << endl; return; } } [/code] in the text file from what its reading is as follows: read ; $ [/QUOTE] so the input is $ … | |
Re: [QUOTE=YoTaMiX]Code : [CODE]int func(char s1[], char s2[]) { int i=0; if (s1[i]!=s2[i]) return 0; if (s1[i]==s2[i]) return 1+func(s1[i+1],s2[i+1]); }[/CODE] /QUOTE] >>if (s1[i]!=s2[i]) return 0; here think what happens if the first character does not match does it remain the type of function you want.. and you need sum kind of … | |
Hi everyone... I have a workshop of asp.net in my college on saturday. I am interested in atending it .. so can anyone just give me basic details of asp.net... what is it.. what to use for.. practical uses.. i know nothing about i :?: t...so please if you can … | |
Re: hi comwizz ;) , n hi 2 every1 else readin d reply :) . m a new member in the club.i dont get exactly wat u hve typed.... but i see in the foll code u has used j as a variable n incremented i... so look out.. /* for(j=0;j<l_no;i++) … | |
Re: hi jobe, even if the problem may be large better post the problem and your program... there are lot more learning c++ and already know c++ without Acc c++... so better post it.. bye | |
Hi... m a new member n just started to learn c++. so please help me out... its simple I read in 1 of the replies that #include<iostream.h> is obsolete.... n one can use #include<iostream> But wen i tried it in d program it does not included file.. expectin replies... :twisted: … |
The End.