Search Results

Showing results 1 to 40 of 44
Search took 0.01 seconds.
Search: Posts Made By: Sky Diploma ; Forum: C++ and child forums
Forum: C++ 34 Days Ago
Replies: 9
Views: 354
Posted By Sky Diploma
apart from what A.D said, to get a little technical, you may want to try the peek() function. Check if that character is an alphabet or a number. if its a number . take in the number with the >>...
Forum: C++ Oct 27th, 2009
Replies: 6
Views: 255
Posted By Sky Diploma
Well this program is not as complex as it seems to be.

for(i=1; i<=100; i++)
The first for loop runs from 0 to 100, and runs a test for checking whether its prime or not.

Then in the...
Forum: C++ Oct 25th, 2009
Replies: 4
Views: 521
Posted By Sky Diploma
http://www.daniweb.com/forums/announcement8-2.html

The answer to all your so called queries!!
Forum: C++ Oct 21st, 2009
Replies: 3
Views: 321
Posted By Sky Diploma
Remove the declaration of the variable int i=0; from line 14 and place it in between 33-34 or 34-35.

The problem is that the scope of the variable which retains the value of 11 after the first...
Forum: C++ Oct 5th, 2009
Replies: 5
Views: 227
Posted By Sky Diploma
Well, we appreciate that you are trying to put-in effort. But We would require you to make an attempt at cracking the solution yourself. Then when you have an attempt, we could then come in and get...
Forum: C++ Oct 5th, 2009
Replies: 4
Views: 321
Posted By Sky Diploma
I would say that this is supposed to be a C question and even that it is poorly written. Whats your question ?
Forum: C++ Oct 5th, 2009
Replies: 5
Views: 227
Posted By Sky Diploma
Firstly you are looking at different operations.

1) Maintain A Database, That's pretty much done, when you have a excel spreadsheet which you can later convert into CSV (Comma separated Value )...
Forum: C++ Oct 5th, 2009
Replies: 21
Views: 690
Posted By Sky Diploma
for(int i = first; i->link != NULL; i = i->link)
Check Line 4 in the code in your post. it consists the above code.You have declared variable i to be of type int then you use the -> operator ....
Forum: C++ Sep 16th, 2009
Replies: 8
Views: 341
Posted By Sky Diploma
FIrstly Please Donot Send PM'S asking for people to solve your problem. There are high chances that many will just Ignore your problem and you will not even get suggestions to your problem.
The...
Forum: C++ Sep 16th, 2009
Replies: 7
Views: 493
Posted By Sky Diploma
It is not that you are creating 5 strings of size 35, But actually Creating an 2-d array of 5 rows and 35 columns.

The size of the string is not constant and can extend as much as possible ,until...
Forum: C++ Sep 11th, 2009
Replies: 4
Views: 329
Posted By Sky Diploma
< SNIPPED > AS I learnt it provided misleading steps to the OP. </SNIPPED >
Forum: C++ Sep 8th, 2009
Replies: 6
Views: 336
Posted By Sky Diploma
http://www.cplusplus.com/reference/clibrary/cstdio/printf/

This is a complete explaination of the printf function . you will notice that %x or %X is denoted to show the hexadecimal notation.
...
Forum: C++ Sep 4th, 2009
Replies: 1
Views: 220
Posted By Sky Diploma
>>zup pipz??
Voilation 1:NO L33T TALK PLEASE!!

>>i want to create a anti virus using batch file..
Oh, Great, I hope you succeed in your attempt but one question...
" How Is This Related to C++...
Forum: C++ Sep 1st, 2009
Replies: 2
Views: 137
Posted By Sky Diploma
Are you sure if your code compiles, Its your 13th post and The Lack of Code Tags make this program a lot more messier.


for (i=0; i > 30;++)
{
array[i]=AccumalatedValue
cout<<array[i]<<endl;...
Forum: C++ Aug 18th, 2009
Replies: 7
Views: 581
Posted By Sky Diploma
Well, Its quite simple, Use the same formula that you have in the existing code, But just change all the instances of '5' with a variable.

For Eg:

for(i=1; i<=5; i++)
This could be...
Forum: C++ Aug 15th, 2009
Replies: 13
Views: 655
Posted By Sky Diploma
A Small change would be .....


str2.erase(val,val);

to

str2.erase(val,1);
Forum: C++ Aug 14th, 2009
Replies: 1
Views: 209
Posted By Sky Diploma
inpa >>(name)>> (visit_duration) >> doctor;
your doctor class does not have a >> operator overloaded, hence the compiler places that error.

You can either define the operator, or change the value...
Forum: C++ Aug 8th, 2009
Replies: 18
Solved: Employee Class
Views: 990
Posted By Sky Diploma
Well, You have misunderstood the basic concept of a class


Employee Name[3] ={ "Susan Meyer", "Mark Jones", "Joy Rogers"};
Employee Idnumber[3] ={ 47899, 39119,81774};
Employee Department[3]...
Forum: C++ Aug 2nd, 2009
Replies: 5
Views: 311
Posted By Sky Diploma
Wow......... Nice Assignments......... Have fun solving ;) (http://www.daniweb.com/forums/announcement8-2.html)
Forum: C++ Jul 29th, 2009
Replies: 4
Views: 214
Posted By Sky Diploma
Well I cant..........But I guess you can help yourself with some basics.
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
Forum: C++ Jul 28th, 2009
Replies: 3
Views: 324
Posted By Sky Diploma
if you are using a c++ string , I guess you can use the find function.

http://www.cplusplus.com/reference/string/string/find/
Forum: C++ Jul 12th, 2009
Replies: 7
Views: 758
Posted By Sky Diploma
Firstly the error in your code is due to this.


cout<< listNumber << ". " << theRace.raceName << endl;

Basically in which here is the trouble

theRace.raceName
Forum: C++ Jul 5th, 2009
Replies: 7
Views: 2,501
Posted By Sky Diploma
So I guess you will have to user a parser to deal with it,

We can do this :

1) Take the number into a string,
2) Check if it has only digits in it, use isdigit...
Forum: C++ Jun 30th, 2009
Replies: 12
Views: 513
Posted By Sky Diploma
Yes, The Program will not work for any number greater than 9.

Instead of editing your previous code, try to take in what we can from the previous code and write new code.

Think of a 3- Modeled...
Forum: C++ Jun 30th, 2009
Replies: 10
Views: 442
Posted By Sky Diploma
che_che

Check out the programs comments..


I guess that's what the output will be.
Forum: C++ Jun 18th, 2009
Replies: 1
Views: 624
Posted By Sky Diploma
http://www.chris-lott.org/resources/cmetrics/

Maybe that will help.

I never used it , but found it in the search results of google.
Forum: C++ Jun 16th, 2009
Replies: 4
Solved: Organising code
Views: 311
Posted By Sky Diploma
This is what organising is all about.

First to get rid of the string error, Include string in the header file.

Next, You can either put all your class declarations on the top of your header...
Forum: C++ Jun 7th, 2009
Replies: 5
Views: 309
Posted By Sky Diploma
Lol use the automatic programme completer.
That is available here:
http://www.daniweb.com/forums/announcement8-2.html

The above post was in regard to the title of your thread.

Now, I would...
Forum: C++ May 10th, 2009
Replies: 11
Views: 463
Posted By Sky Diploma
if ((totalMarks=90) && (totalMarks <= 10)){
cout << "The grade is A"<<endl;
}
else if ((totalMarks=80) && (totalMarks <= 89)){
cout << "The grade is B"<<endl;
}
else if...
Forum: C++ Apr 29th, 2009
Replies: 3
Views: 643
Posted By Sky Diploma
Firstly you are returning a Fraction type but not stroring or displaying it.


Fraction frac=SumOfSeries(num);
frac.display;


Secondly in Function SumOfSeries Why are you introducing a for...
Forum: C++ Apr 29th, 2009
Replies: 2
Views: 272
Posted By Sky Diploma
This program is quite simple.

I think you are getting confused at this

t = t + 2 * c;

I assume you should read it in the order of processing of the compiler.

t =t + (2 * c);
Forum: C++ Apr 20th, 2009
Replies: 2
Views: 550
Posted By Sky Diploma
CARGO i recommend that you use code tags next time.

Secondly instead of converting in an arphadox manner. Why not use the library function.

toupper();
...
Forum: C++ Mar 2nd, 2009
Replies: 17
Views: 1,156
Posted By Sky Diploma
Well counter in the above function might have been declared globally. So in after the total function has worked out all the permutations.

Counter[me] // will have all the times 'ME' has won
and...
Forum: C++ Feb 9th, 2009
Replies: 4
Views: 635
Posted By Sky Diploma
Well I dont think it would work out. Basically constructors should be members of that particular class or if you design it explicitly it will become a function with the same name of the class and...
Forum: C++ Jan 29th, 2009
Replies: 22
Views: 1,004
Posted By Sky Diploma
Well when thats what he wanted. I guess thats what we should give. Hence it isnt dumb in any way.


If i had to classes hello and world with member apple.

i would search for hello.apple but...
Forum: C++ Jan 15th, 2009
Replies: 8
Views: 1,070
Posted By Sky Diploma
Well i think that you should post your code until where you have worked on.
Forum: C++ Oct 22nd, 2008
Replies: 3
Views: 394
Posted By Sky Diploma
Seems to be a big post!!!

Man, I guess you just have copy, pasted all the questions from your assignment.

I reccomend that you read this post.

...
Forum: C++ Oct 22nd, 2008
Replies: 7
Views: 509
Posted By Sky Diploma
I am not sure, but i think you should try including

iostream too.
Forum: C++ Sep 12th, 2008
Replies: 6
Views: 802
Posted By Sky Diploma
Secondly You have not declared 'A' as a myclass but as mystring, which is again unknown to the compiler.

and again you use "a.youlen" , There is a difference between variable "A " and "a" So a is...
Forum: C++ Aug 25th, 2008
Replies: 6
Views: 521
Posted By Sky Diploma
Hey.

Assume the following


string s ;
s="Sky";
//Therefore.

int a = s.size();//Returns 4
Showing results 1 to 40 of 44

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC