Forum: C++ Feb 10th, 2008 |
| Replies: 3 Views: 3,001 Another way to get the substrings of the given string with spaces as delimiters can be
#include<string>
#include<sstream>
using namespace std;
string givenString="This is the string to be... |
Forum: C++ Feb 10th, 2008 |
| Replies: 2 Views: 566 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
map<vector<vector<int> >,int > m;
vector<vector<int> > vvi;
int i;... |
Forum: C May 16th, 2006 |
| Replies: 2 Views: 1,013 Thanks..I understood the approaches.I understand the what is containership and I now understood in context to containers(as the name suggests).. but what I intended to know was the types in the... |
Forum: Java May 16th, 2006 |
| Replies: 4 Views: 1,219 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... |
Forum: C May 16th, 2006 |
| Replies: 2 Views: 1,013 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..)
... |
Forum: C++ May 14th, 2006 |
| Replies: 1 Views: 835 You can include ctype.h and it has functions isspace and isalpha which will help you ...and you need to extract character by character. |
Forum: C++ May 4th, 2006 |
| Replies: 4 Views: 1,187 What is the problem ..specify that..and put brackets in the formula to avoid confusion and miscalculation |
Forum: C++ Apr 27th, 2006 |
| Replies: 2 Views: 947 Get a switch loop working with a do..while. According to the choice increment the no of items of a particular type...finally sum up all and display..
Also can ask while taking order the no of... |
Forum: DaniWeb Community Feedback Apr 22nd, 2006 |
| Replies: 12 Views: 2,082 hey DMR wat do you mean;) |
Forum: DaniWeb Community Feedback Apr 21st, 2006 |
| Replies: 12 Views: 1,839 OK wekk i knew that and so lets end the thread here..thanks for solving the problem the thread is solved!! |
Forum: DaniWeb Community Feedback Apr 21st, 2006 |
| Replies: 12 Views: 2,082 actually not solved but solved thanks!! |
Forum: Geeks' Lounge Apr 21st, 2006 |
| Replies: 68 Views: 7,004 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... |
Forum: C++ Apr 12th, 2006 |
| Replies: 4 Views: 2,469 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..... |
Forum: C++ Apr 12th, 2006 |
| Replies: 18 Views: 3,317 Seeing your posts I believe You are one of the best around and I am here to learn so can you plz guide me to improve my code?? |
Forum: DaniWeb Community Feedback Apr 12th, 2006 |
| Replies: 12 Views: 1,839 Hey but what I meant was that if u can understand in what context the thanks was said and I was refering to the thanks said on the achievement of attaining the solution..I thought u would... |
Forum: DaniWeb Community Feedback Apr 11th, 2006 |
| Replies: 12 Views: 1,839 I am sayin on the basis that the person has posted thanks,said the problem is over, or I got the answer... |
Forum: DaniWeb Community Feedback Apr 11th, 2006 |
| Replies: 12 Views: 1,839 wat m tryin 2 say is that is ther no method for making people mark ther own problem solved threads as solved..sumthin compulsory |
Forum: DaniWeb Community Feedback Apr 11th, 2006 |
| Replies: 12 Views: 1,839 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....
... |
Forum: C++ Apr 11th, 2006 |
| Replies: 18 Views: 3,317 well I am using a turbo compiler and through it hte following code works
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char *p; |
Forum: C++ Apr 11th, 2006 |
| Replies: 18 Views: 3,317 show ur input and output ..or exactly the error.. |
Forum: C++ Apr 11th, 2006 |
| Replies: 18 Views: 3,317 What error is coming...some logical error might be?? does it happen that it is being printed in the dictionary order?? |
Forum: C++ Apr 11th, 2006 |
| Replies: 18 Views: 3,317 try and use strlen and then display accordingly ..then might be your lovely program may run!!!! |
Forum: DaniWeb Community Feedback Apr 11th, 2006 |
| Replies: 12 Views: 2,082 |
Forum: DaniWeb Community Feedback Apr 10th, 2006 |
| Replies: 12 Views: 2,082 reply about the point 2# time suggestion ;) |
Forum: C Apr 10th, 2006 |
| Replies: 4 Views: 1,265 |
Forum: C Apr 10th, 2006 |
| Replies: 4 Views: 1,265 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... |
Forum: DaniWeb Community Feedback Apr 9th, 2006 |
| Replies: 12 Views: 2,082 Hey Dani..Hi..
Well I went through that poll of yours in the same forum as in this..and so i suggested you to keep the subforums. I think you wanted to make all the forums one level deep..that is... |
Forum: DaniWeb Community Feedback Apr 8th, 2006 |
| Replies: 12 Views: 2,082 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... |
Forum: C++ Apr 8th, 2006 |
| Replies: 1 Views: 1,136 so the input is $ and so read your if else condition properly in the function program.. |
Forum: C++ Apr 6th, 2006 |
| Replies: 16 Views: 3,475 I tried and ran your program in my compiler which is turbo c++... your second code and it ran perfectly... |
Forum: C++ Apr 6th, 2006 |
| Replies: 16 Views: 3,475 >>actually later you will learn that array is a type of constant pointer..no need to worry right now.
>>when you define an array it reqiures the no of elements at the time of compilation..... |
Forum: C++ Apr 4th, 2006 |
| Replies: 16 Views: 3,475 I suppose it is NOT required in such a short post!!!
It is READABLE & COMPREHENSIBLE for the NORMAL!!
EDIT::
HEY AHLUKA
I AM SORRY ...REALLY SORRY :o FOR WHAT I TYPED...IN A HASTE I... |
Forum: C++ Apr 4th, 2006 |
| Replies: 16 Views: 3,475 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... |
Forum: C Apr 3rd, 2006 |
| Replies: 9 Views: 1,607 i have tried the code using ++s1 ..it will run..
but some changes are required..well when u compare s1 and s2 the char is not compared so change to *s1 and *s2..also after this the program... |
Forum: C Apr 3rd, 2006 |
| Replies: 9 Views: 1,607 I have not compiled and ran the code...but see that when you increment s1 and s2 use ++s1 so that it moves the pointer and then passes the arguement.
I have a different compiler and so i shall try... |
Forum: C Apr 2nd, 2006 |
| Replies: 9 Views: 1,607 hey yotamix,
in your post u said you were asked to count the chars alike in the string..did u mean same continuously from the first char. |
Forum: C Apr 2nd, 2006 |
| Replies: 9 Views: 1,607 [QUOTE=YoTaMiX]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]);
}
/QUOTE]
>>if (s1[i]!=s2[i]) return 0; |
Forum: ASP.NET Mar 2nd, 2006 |
| Replies: 2 Views: 1,454 Thanxs tgreer...for the info..
HackWizz |
Forum: ASP.NET Mar 1st, 2006 |
| Replies: 2 Views: 1,454 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... |
Forum: C++ Feb 21st, 2006 |
| Replies: 16 Views: 6,439 Yes,I am sorry I forgot to mention that..!
For the warning ... After the program runs completely on the output screen I have "Null Pointer Assignment" written...
That was what I was asking.. Is... |