I will give you an example using A, B, and C:
A B C can make A, B, C, AB, AC, BC, and ABC.
AB = BA.
I would like to know the max number of combinations, and if possible(if you have time), all of the combinations. This is not for a homework assignment, I just want to know.
What is the max number of combinations using A, B, C, D, E, and F.?
2^6 - 1 = 63 ways.
Basically, you can either have the letter in the combination or not. So there are two possibilities for each letter. Using the General Counting Principle, you would multiply each of these possibilities, so 2*2*2*2*2*2 = 2^6. However, there is one combination where none of the letters are selected, so that's why you subtract 1.
edit: The above answerer has it now, only in a different way. Rodent, the order doesn't matter, and he wants to know how many ways you select a different number of letters.
Here's the list:
1. A
2. B
3. C
4. D
5. E
6. F
7. AB
8. AC
9. AD
10. AE
11. AF
12. BC
13. BD
14. BE
15. BF
16. CD
17. CE
18. CF
19. DE
20. DF
21. EF
22. ABC
23. ABD
24. ABE
25. ABF
26. ACD
27. ACE
28. ACF
29. ADE
30. ADF
31. AEF
32. BCD
33. BCE
34. BCF
35. BDE
36. BDF
37. BEF
38. CDE
39. CDF
40. CEF
41. DEF
42. ABCD
43. ABCE
44. ABCF
45. ABDE
46. ABDF
47. ABEF
48. ACDE
49. ACDF
50. ACEF
51. ADEF
52. BCDE
53. BCDF
54. BCEF
55. BDEF
56. CDEF
57. ABCDE
58. ABCDF
59. ABCEF
60. ABDEF
61. ACDEF
62. BCDEF
63. ABCDEF
Reply:I know this is a 10 month old "Answer", but how exactly did you look at this, I get 3600 combinations from A,B to F,E,D,C,B,A Report It
Reply:6+5+4+3+2+1= 21
no, no. how 'bout:
6 +6*5/(1*2) + 6*5*4/(1*2*3) +6*5*4*3/(1*2*3*4) +6*5*4*3*2(1*2*3*4*5) +1
6+15+20+15+6+1 = 63
Reply:6! which would be 6*5*4*3*2*1
which is 30*4*3*2
120*3*2
360*2
720?
Reply:AB
AC
AD
AE
AF
BC
BD
BE
BF
CD
CE
CF
DE
DF
A
B
C
D
E
F
ABCDEF
ABC
ABD
ABE
ABF
ACE
ACE
ACF
CDE
CDF
DEF
marguerite
Monday, May 24, 2010
" POINTERS"in C?
Hi! frnds,
can anyone plz. sugest some sites on which i can get to solve some example programs in "POINTERS" in C , and also how to draw the flowchart and algorithm of a pointer program.please help....!!
thank u!
" POINTERS"in C?
See there are no specific sites for this but try some good books ,online www.cplusplus.com .
Reply:My name deepak I am doing Bca and site by site i have teach C language to Bca and Btech student.I have to tell
U because i don't thing that U have go for web site for
Pointer problem.It better to built up Ur confidence because
according to me if anybody want to learn C language(pointer).
First step is that U have more than Two Books at a
time.
Second step never read the theory directly move to program Because u r waisting Ur time in reading theory.
Third daily do only two to three question because if U completed whole exercise in one day u are totally confuse.
Forth Al way do first dry run mean try do solve the question in the copy first.
fifth than make the program.
Sixth always solve the error using top down approach.
seven finally U know the pointers.
Reply:There are no algorithms of "pointer programs" that I know of.
A pointer is basically a description of an address. For instance, and this is a bit contrived, but if you gave someone your house, they would have your house. But if you gave them the ADDRESS of your house, then they could still get the house if they want, but they wouldn't have to carry around the whole house.
Basically pointers are addresses of places in memory, so if you want to pass along a chunk of memory representing the text of a book, you can either pass along the whole text - which might be huge, and time-consuming to pass - or you could just pass the ADDRESS of the text. If the recipient needs to get at the text, it's a small leap once you have the address, and it saves passing all that information around, which chews up resources.
Reply:Hi,
I found the following sites with a very good examples of Pointers using C and C++
http://cis.stvincent.edu/html/tutorials/...
http://www.cs.cf.ac.uk/Dave/C/node10.htm...
http://www.augustcouncil.com/~tgibson/tu...
Reply:Hi,
if u use an under-dos C, maybe code below will explain lot of things to u:
#include %26lt;stdIO.h%26gt;
#include %26lt;conStrea.h%26gt;
#pragma hdrstop
int add1(int* a, int* b)
{
return *a + *b;
}
int add2(int%26amp; a, int%26amp; b)
{
return a + b;
}
constream c;
void main()
{
int a, b;
a = 1;
b = 6;
c.clrscr();
c %26lt;%26lt; add1(%26amp;a, %26amp;b) %26lt;%26lt; endl;
c %26lt;%26lt; add2(a, b);
getch();
}
HTH,
niccie_11
Reply:Pointers are actually poniting where you r going to save u'r information in c language, thus they cannot be shown on the flowchart or define using algorithm
i used www.borland.com, micrsoft sites to understand how i can use the pointers, the r deficult but if u try hard u well be able to understand them easily,
can anyone plz. sugest some sites on which i can get to solve some example programs in "POINTERS" in C , and also how to draw the flowchart and algorithm of a pointer program.please help....!!
thank u!
" POINTERS"in C?
See there are no specific sites for this but try some good books ,online www.cplusplus.com .
Reply:My name deepak I am doing Bca and site by site i have teach C language to Bca and Btech student.I have to tell
U because i don't thing that U have go for web site for
Pointer problem.It better to built up Ur confidence because
according to me if anybody want to learn C language(pointer).
First step is that U have more than Two Books at a
time.
Second step never read the theory directly move to program Because u r waisting Ur time in reading theory.
Third daily do only two to three question because if U completed whole exercise in one day u are totally confuse.
Forth Al way do first dry run mean try do solve the question in the copy first.
fifth than make the program.
Sixth always solve the error using top down approach.
seven finally U know the pointers.
Reply:There are no algorithms of "pointer programs" that I know of.
A pointer is basically a description of an address. For instance, and this is a bit contrived, but if you gave someone your house, they would have your house. But if you gave them the ADDRESS of your house, then they could still get the house if they want, but they wouldn't have to carry around the whole house.
Basically pointers are addresses of places in memory, so if you want to pass along a chunk of memory representing the text of a book, you can either pass along the whole text - which might be huge, and time-consuming to pass - or you could just pass the ADDRESS of the text. If the recipient needs to get at the text, it's a small leap once you have the address, and it saves passing all that information around, which chews up resources.
Reply:Hi,
I found the following sites with a very good examples of Pointers using C and C++
http://cis.stvincent.edu/html/tutorials/...
http://www.cs.cf.ac.uk/Dave/C/node10.htm...
http://www.augustcouncil.com/~tgibson/tu...
Reply:Hi,
if u use an under-dos C, maybe code below will explain lot of things to u:
#include %26lt;stdIO.h%26gt;
#include %26lt;conStrea.h%26gt;
#pragma hdrstop
int add1(int* a, int* b)
{
return *a + *b;
}
int add2(int%26amp; a, int%26amp; b)
{
return a + b;
}
constream c;
void main()
{
int a, b;
a = 1;
b = 6;
c.clrscr();
c %26lt;%26lt; add1(%26amp;a, %26amp;b) %26lt;%26lt; endl;
c %26lt;%26lt; add2(a, b);
getch();
}
HTH,
niccie_11
Reply:Pointers are actually poniting where you r going to save u'r information in c language, thus they cannot be shown on the flowchart or define using algorithm
i used www.borland.com, micrsoft sites to understand how i can use the pointers, the r deficult but if u try hard u well be able to understand them easily,
In C program how do i do this?
Use the following structure to set up a dictionary:
struct dictionary
{
char word[10];
char definition[80];
int noun_or_verb; /* 1 for noun 2 for verb */
};
Your dictionary will initially have at least 5 words in it, with room for a maximum of 10 words. You decide on the words and their definitions.
Have the user input a word. Test to see if the word is in the dictionary. If it is in the dictionary, display it to the screen in the following format:
the word - N (for noun) or V (for verb) - definition
For example:
sweat - V - to do C programming homework
If the word is not in the dictionary, ask the user if he/she wishes to add the word to the dictionary. If the user does want to add it to the dictionary, prompt for definition and whether the word is a verb or noun. If the user does not want to put the word in the dictionary do not prompt them for information, simply continue the program.
In C program how do i do this?
Well, first off, you'll need some way to store a bunch of those dictionary entry objects. For simplicity (and because it doesn't sound like this assignment is about hash tables), I'd suggest using a linked list. e.g.
struct DictionaryEntry {....};
struct DictionaryNode {
struct DictionaryEntry entry;
struct DictionaryNode *next;
};
struct Dictionary {
struct DictionaryNode *first;
}
(Note that my terminology is slightly different than yours - my Dictionary struct means the whole thing, whereas DictionaryEntry is a specific item).
Then write some functions to find words in the dictionary and to add new ones. If you were using C++ this would be slightly simpler, but it's good to know how to use malloc...
void addDictionaryEntry( struct Dictionary *dict, struct DictionaryEntry *entry ) {
struct DictionaryNode *node = malloc(sizeof(DictionaryNode));
memcpy( node-%26gt;entry.word, entry-%26gt;word, 10 );
memcpy( node-%26gt;entry.definition, entry-%26gt;word, 80 );
node-%26gt;entry.noun_or_verb = entry-%26gt;noun_or_verb;
node-%26gt;next = dict-%26gt;first;
dict-%26gt;first = node;
}
struct DictionaryEntry *getDictionaryEntryByWord( struct Dictionary *dict, char *word ) {
DictionaryNode *node = dict-%26gt;first;
while( node ) {
if( strcmp(node-%26gt;entry.word, word) == 0 ) {
return %26amp;node-%26gt;entry;
}
node = node-%26gt;next;
}
return null;
}
void initDictionary( struct Dictionary *dict ) {
dict-%26gt;first = 0;
}
// might want a dictionary destructor, too...
That should take care of the storage, which, this being C, is probably the trickiest part. Then you just have to have a decent main() and do the user I/O.
int main( int argc, char **argv ) {
struct Dictionary dict;
struct DictionaryEntry inputEntry;
struct DictionaryEntry *foundEntry;
initDictionary( %26amp;dict );
while( true ) {
printf("Enter a word%26gt; ");
scanf("%9s", inputEntry.word); // at most 9 chars, as we need one more for the string-terminating NUL
foundEntry = getDictionaryEntryByWord( %26amp;dict, inputEntry.word );
if( foundEntry ) {
// tell user about the word
} else {
// ask him if he wants to enter a new word, put the def
// in inputEntry, and addDictionaryEntry it.
}
}
}
I'll leave a few parts for you to fill in, as you probably already know how to make the UI code, but it is rather tedious to type in this text entry area. My code probably has a few syntax errors that'll need fixing, anyway ;)
tropical flowers
struct dictionary
{
char word[10];
char definition[80];
int noun_or_verb; /* 1 for noun 2 for verb */
};
Your dictionary will initially have at least 5 words in it, with room for a maximum of 10 words. You decide on the words and their definitions.
Have the user input a word. Test to see if the word is in the dictionary. If it is in the dictionary, display it to the screen in the following format:
the word - N (for noun) or V (for verb) - definition
For example:
sweat - V - to do C programming homework
If the word is not in the dictionary, ask the user if he/she wishes to add the word to the dictionary. If the user does want to add it to the dictionary, prompt for definition and whether the word is a verb or noun. If the user does not want to put the word in the dictionary do not prompt them for information, simply continue the program.
In C program how do i do this?
Well, first off, you'll need some way to store a bunch of those dictionary entry objects. For simplicity (and because it doesn't sound like this assignment is about hash tables), I'd suggest using a linked list. e.g.
struct DictionaryEntry {....};
struct DictionaryNode {
struct DictionaryEntry entry;
struct DictionaryNode *next;
};
struct Dictionary {
struct DictionaryNode *first;
}
(Note that my terminology is slightly different than yours - my Dictionary struct means the whole thing, whereas DictionaryEntry is a specific item).
Then write some functions to find words in the dictionary and to add new ones. If you were using C++ this would be slightly simpler, but it's good to know how to use malloc...
void addDictionaryEntry( struct Dictionary *dict, struct DictionaryEntry *entry ) {
struct DictionaryNode *node = malloc(sizeof(DictionaryNode));
memcpy( node-%26gt;entry.word, entry-%26gt;word, 10 );
memcpy( node-%26gt;entry.definition, entry-%26gt;word, 80 );
node-%26gt;entry.noun_or_verb = entry-%26gt;noun_or_verb;
node-%26gt;next = dict-%26gt;first;
dict-%26gt;first = node;
}
struct DictionaryEntry *getDictionaryEntryByWord( struct Dictionary *dict, char *word ) {
DictionaryNode *node = dict-%26gt;first;
while( node ) {
if( strcmp(node-%26gt;entry.word, word) == 0 ) {
return %26amp;node-%26gt;entry;
}
node = node-%26gt;next;
}
return null;
}
void initDictionary( struct Dictionary *dict ) {
dict-%26gt;first = 0;
}
// might want a dictionary destructor, too...
That should take care of the storage, which, this being C, is probably the trickiest part. Then you just have to have a decent main() and do the user I/O.
int main( int argc, char **argv ) {
struct Dictionary dict;
struct DictionaryEntry inputEntry;
struct DictionaryEntry *foundEntry;
initDictionary( %26amp;dict );
while( true ) {
printf("Enter a word%26gt; ");
scanf("%9s", inputEntry.word); // at most 9 chars, as we need one more for the string-terminating NUL
foundEntry = getDictionaryEntryByWord( %26amp;dict, inputEntry.word );
if( foundEntry ) {
// tell user about the word
} else {
// ask him if he wants to enter a new word, put the def
// in inputEntry, and addDictionaryEntry it.
}
}
}
I'll leave a few parts for you to fill in, as you probably already know how to make the UI code, but it is rather tedious to type in this text entry area. My code probably has a few syntax errors that'll need fixing, anyway ;)
tropical flowers
What does "s.c." mean behind a law firm's title?
for example: hupy and abraham, s.c.
what does the s.c. stand for?
What does "s.c." mean behind a law firm's title?
Senior Council or Senior councillor
what does the s.c. stand for?
What does "s.c." mean behind a law firm's title?
Senior Council or Senior councillor
What is the third century B.C?
I find it confusing when historians date something as __ century B.C. Because the smaller the number, the more recent, is for example the first century B.C The year B.C, or way back?
What is the third century B.C?
3rd century BC would be any year between 201 and 300 BC.
1st century BC is 1 - 100
2nd century BC is 101 - 200
Reply:A.D. means Anno Domini (the year of the Lord). B.C. means Before Christ.
2007 A.D. is 2007 years after the death of Jesus.
200 B.C. is 200 years before.
If you go further back in time, the numbers get larger. For example, 1000 B.C. is longer ago than 200 B.C., more years before Christ.
Reply:The larger the number the farthur back it was, so the 3rd century BC is farthur back in history than the 2nd.
Reply:The BC is Before Christian era so 1BC is 1 year before Christ, 5 BC is 5 years before %26amp; 100 BC is 100 years before Christ .
Not everyone uses this calendar (the Chinese don't, they use the Buddhist era calendar) but the Western world uses the BC (before Christ) and AD After his Death for marking the years.
Reply:Just think of it as a negative number, like -18. The further back on the time line you go, with the beginning of the Christian Era as 0 then before that would be the negative side. 18 B.C. would be like -18
What is the third century B.C?
3rd century BC would be any year between 201 and 300 BC.
1st century BC is 1 - 100
2nd century BC is 101 - 200
Reply:A.D. means Anno Domini (the year of the Lord). B.C. means Before Christ.
2007 A.D. is 2007 years after the death of Jesus.
200 B.C. is 200 years before.
If you go further back in time, the numbers get larger. For example, 1000 B.C. is longer ago than 200 B.C., more years before Christ.
Reply:The larger the number the farthur back it was, so the 3rd century BC is farthur back in history than the 2nd.
Reply:The BC is Before Christian era so 1BC is 1 year before Christ, 5 BC is 5 years before %26amp; 100 BC is 100 years before Christ .
Not everyone uses this calendar (the Chinese don't, they use the Buddhist era calendar) but the Western world uses the BC (before Christ) and AD After his Death for marking the years.
Reply:Just think of it as a negative number, like -18. The further back on the time line you go, with the beginning of the Christian Era as 0 then before that would be the negative side. 18 B.C. would be like -18
If a^2 + b^ 2 + c^2 = abc...?
I know how to prove this. I just think the proof is interesting. If math is your forte, see if you can work it out...
Given three positive integers a, b, and c such that a^2 + b^2 + c^2 = abc. The number of solutions is infinite; for example, a = 3, b = 6, c = 15 is one. However, prove that for every solution, a, b, and c must all be divisible by 3.
If a^2 + b^ 2 + c^2 = abc...?
I see a way to solve this by breaking it up into cases and looking at the equation modulo 3. Suppose a,b, and c are not all divisible by three. Note that a number d not divisible by 3 must satisfy d^2 = 1 mod 3. There are two cases:
1) All three a,b, and c are not divisible by three. Then when you reduce mod 3 you get:
a^2 +b^2 +c^2 = 1+1+1 = 0 mod 3. However, abc is not 0 mod 3 since none of a,b, or c is divisible by 3.
2) At least one of a,b, or c is divisible by 3. Then once again reducing mod 3:
a^2 + b^2 + c^2 = either 1 or 2 mod 3. However abc = 0 mod 3 since one of the three is divisible by 3.
Thus both of the above cases lead to a contradiction, and so all of a, b, and c must be divisible by three.
Reply:Well, look at the squares mod 3. 0 and 1 are possible squares; 2 is not.
Given that, let us examine each of the possible cases for what the LHS is congruent to mod 3.
If it's congruent to 1, it is the sum of a 1 and 2 0s. But this means the RHS must be congruent to 0 mod 3. Contradiction.
A similar argument shows it cannot be congruent to 2. So it is congruent to 0. So the RHS is congruent to 0 too. So at least one of a, b, or c is divisible by 3; i.e., at least one of the terms on the LHS is congruent to 0. But the only way this can happen is if they all are.
QED.
Given three positive integers a, b, and c such that a^2 + b^2 + c^2 = abc. The number of solutions is infinite; for example, a = 3, b = 6, c = 15 is one. However, prove that for every solution, a, b, and c must all be divisible by 3.
If a^2 + b^ 2 + c^2 = abc...?
I see a way to solve this by breaking it up into cases and looking at the equation modulo 3. Suppose a,b, and c are not all divisible by three. Note that a number d not divisible by 3 must satisfy d^2 = 1 mod 3. There are two cases:
1) All three a,b, and c are not divisible by three. Then when you reduce mod 3 you get:
a^2 +b^2 +c^2 = 1+1+1 = 0 mod 3. However, abc is not 0 mod 3 since none of a,b, or c is divisible by 3.
2) At least one of a,b, or c is divisible by 3. Then once again reducing mod 3:
a^2 + b^2 + c^2 = either 1 or 2 mod 3. However abc = 0 mod 3 since one of the three is divisible by 3.
Thus both of the above cases lead to a contradiction, and so all of a, b, and c must be divisible by three.
Reply:Well, look at the squares mod 3. 0 and 1 are possible squares; 2 is not.
Given that, let us examine each of the possible cases for what the LHS is congruent to mod 3.
If it's congruent to 1, it is the sum of a 1 and 2 0s. But this means the RHS must be congruent to 0 mod 3. Contradiction.
A similar argument shows it cannot be congruent to 2. So it is congruent to 0. So the RHS is congruent to 0 too. So at least one of a, b, or c is divisible by 3; i.e., at least one of the terms on the LHS is congruent to 0. But the only way this can happen is if they all are.
QED.
C&A Rules???
Okay..... I'm BORED!!!
So I'm gonna ask this:
What do you think are some rules that all C%26amp;A users should follow?? Or things that they should all know?? Or words that they should know?? (aka fangirl speak- I know you wanna put it in =_=)
I'll give you an example: everyone should know that C%26amp;A stands for Comics and Animation!!!
Stuff like that :3
Get those rusted, cob-web covered gears in your could-be creative brain to work!!! xD
Anime Q:
What is an anime character that you think should be banned from having fans??
Star this people!!! If you don't I might have to get my "fun" box out *glare*...... jkjk xD
C%26amp;A Rules???
Anime Q- Misa fom Death Note..she is such a pain...keeps on going Light- kun Light-kun
some rules C%26amp;A ppl should follow
- ask anime related random questions
- not give the trolls oppurtunity to delete their questions
-eliminate trolls
Reply:- For safety purposes, anti-anime people should never ever set foot here!!!! And should never ever post questions that are meant to insult anime!!!
Like Isabelle said, we are all armed here, so anime haters scram!!!
- People should know where to put their questions.
I see a LOT of questions that are not related to C%26amp;A at all!!! Y!A should monitor that, and people should too!!!
- People should treat their contacts nicely and add contacts because so, not because that.
- People should NOT call anime stuff as anime junks. They're anime TREASURES.
I can't think of much yet. Funny when my brain doesn't work as much as it used to...Maybe I'll come back if I come up with something.
Reply:What do you think are some rules that all C%26amp;A users should follow?? Or things that they should all know?? Or words that they should know?? (aka fangirl speak- I know you wanna put it in =_=)
C%26amp;A isn't the right place to speak about comedians or movies!!!! (I've seen so many people asking about comedians and movies downloads!) and the trolls should be vanished!!! YEAH %26gt;:D
Anime Q:
What is an anime character that you think should be banned from having fans??
Echizen Ryoma----%26gt; Prince Of Tennis
sorry, Ryoma fangirls, I just hate him, he's the most annoying character %26gt;no offense%26lt;
Reply:An answer to your anime q.. I'd say Sasuke..%26gt;.%26gt;
We should follow the rules of...having no rules :D :D or...all C%26amp;A users should know that C%26amp;A is the best category there is! :}
Reply:We should love love and love anime(to death xD) Im joking about the death but if we are C%26amp;A users we should do that =] We should support each other about all the things that are related to anime(I just cant forget to notice it) ;] And anime fans should predominate the world xD xD xD
About the question:Hm...I think maybe-Sasuke-I like him but Sakura with that"Sasuke-kun,Sasuke-kun..." grrrrr she is really freaking me out =] and that`s what I can think of (for now)=]
Reply:Anime Q- Sasuke... -_-
Okay!
Um.......... *thinks*
What they should know:
1. Chu4Lyfe = BOY
2.DarthRaider is not one to be annoyed... T_T He'll rip out your intestines.
3. We are all armed.
4. Step wrong, get blown up.
5. I call fangirl speak Tally language= anone, ne, onegai, yosh! Everyone has to know what Yosh! means.
RULES:
1. Must not like Anime: must LOVE IT!
2. Must not insult randomness
3. Must not show people pictures they do not want to see! *cough Syd cough*
4. MUST ANSWER FUN RANDOM QUESTIONS!
Brain is bursting.
[edit] Just tell her about the Deidara yuri.
DUH I WAS BORED! MY HOUSE IS DULL!!!
And that... *points up* was pretty pathetic... not up to my normal standards.
Reply:I starred you, I starred you! *cowers in corner with banishing gun in hand*
I would like to see us all respect each other, each other's answers, not diss our put each other's favorite anime down, not say anything like "anime is dumb" and like that. I think we all pretty much do that anyway and it's only when a troll comes through or another user that comes on and says the question asker is stupid because she likes Sasuke or whoever. just respect each other.
Yes, we ALL should KNOW %26amp; A stands for Comics %26amp; Animation. That should be a given. A basic requirement.
I don't like Sasuke, Kagome, Kikyo, Keiko. But this goes back to what I said above about respecting each other's likes. On the other hand, some of you may hate Sanzo *still has banishing gun in hand*
Reply:I've got an obvious rule.
All C %26amp; A users MUST love cartoons,and never make fun of them.
Anime character that should be banned from having fans? i'll come back to this later.
Reply:anime q ~ aizen
if u want to get stabbed, go to stabby
sound cards
So I'm gonna ask this:
What do you think are some rules that all C%26amp;A users should follow?? Or things that they should all know?? Or words that they should know?? (aka fangirl speak- I know you wanna put it in =_=)
I'll give you an example: everyone should know that C%26amp;A stands for Comics and Animation!!!
Stuff like that :3
Get those rusted, cob-web covered gears in your could-be creative brain to work!!! xD
Anime Q:
What is an anime character that you think should be banned from having fans??
Star this people!!! If you don't I might have to get my "fun" box out *glare*...... jkjk xD
C%26amp;A Rules???
Anime Q- Misa fom Death Note..she is such a pain...keeps on going Light- kun Light-kun
some rules C%26amp;A ppl should follow
- ask anime related random questions
- not give the trolls oppurtunity to delete their questions
-eliminate trolls
Reply:- For safety purposes, anti-anime people should never ever set foot here!!!! And should never ever post questions that are meant to insult anime!!!
Like Isabelle said, we are all armed here, so anime haters scram!!!
- People should know where to put their questions.
I see a LOT of questions that are not related to C%26amp;A at all!!! Y!A should monitor that, and people should too!!!
- People should treat their contacts nicely and add contacts because so, not because that.
- People should NOT call anime stuff as anime junks. They're anime TREASURES.
I can't think of much yet. Funny when my brain doesn't work as much as it used to...Maybe I'll come back if I come up with something.
Reply:What do you think are some rules that all C%26amp;A users should follow?? Or things that they should all know?? Or words that they should know?? (aka fangirl speak- I know you wanna put it in =_=)
C%26amp;A isn't the right place to speak about comedians or movies!!!! (I've seen so many people asking about comedians and movies downloads!) and the trolls should be vanished!!! YEAH %26gt;:D
Anime Q:
What is an anime character that you think should be banned from having fans??
Echizen Ryoma----%26gt; Prince Of Tennis
sorry, Ryoma fangirls, I just hate him, he's the most annoying character %26gt;no offense%26lt;
Reply:An answer to your anime q.. I'd say Sasuke..%26gt;.%26gt;
We should follow the rules of...having no rules :D :D or...all C%26amp;A users should know that C%26amp;A is the best category there is! :}
Reply:We should love love and love anime(to death xD) Im joking about the death but if we are C%26amp;A users we should do that =] We should support each other about all the things that are related to anime(I just cant forget to notice it) ;] And anime fans should predominate the world xD xD xD
About the question:Hm...I think maybe-Sasuke-I like him but Sakura with that"Sasuke-kun,Sasuke-kun..." grrrrr she is really freaking me out =] and that`s what I can think of (for now)=]
Reply:Anime Q- Sasuke... -_-
Okay!
Um.......... *thinks*
What they should know:
1. Chu4Lyfe = BOY
2.DarthRaider is not one to be annoyed... T_T He'll rip out your intestines.
3. We are all armed.
4. Step wrong, get blown up.
5. I call fangirl speak Tally language= anone, ne, onegai, yosh! Everyone has to know what Yosh! means.
RULES:
1. Must not like Anime: must LOVE IT!
2. Must not insult randomness
3. Must not show people pictures they do not want to see! *cough Syd cough*
4. MUST ANSWER FUN RANDOM QUESTIONS!
Brain is bursting.
[edit] Just tell her about the Deidara yuri.
DUH I WAS BORED! MY HOUSE IS DULL!!!
And that... *points up* was pretty pathetic... not up to my normal standards.
Reply:I starred you, I starred you! *cowers in corner with banishing gun in hand*
I would like to see us all respect each other, each other's answers, not diss our put each other's favorite anime down, not say anything like "anime is dumb" and like that. I think we all pretty much do that anyway and it's only when a troll comes through or another user that comes on and says the question asker is stupid because she likes Sasuke or whoever. just respect each other.
Yes, we ALL should KNOW %26amp; A stands for Comics %26amp; Animation. That should be a given. A basic requirement.
I don't like Sasuke, Kagome, Kikyo, Keiko. But this goes back to what I said above about respecting each other's likes. On the other hand, some of you may hate Sanzo *still has banishing gun in hand*
Reply:I've got an obvious rule.
All C %26amp; A users MUST love cartoons,and never make fun of them.
Anime character that should be banned from having fans? i'll come back to this later.
Reply:anime q ~ aizen
if u want to get stabbed, go to stabby
sound cards
Combination of String in C++?
i wish to get different combination from a String. For example: String^ str = "a,b,c,d,e";
i will wan to separate the string into individual letters and form all different combination like (a,b), (a,c,d) or (a,b,c,d) etc..
is there any simple methods to do so juz using loop?? im still a beginner in C++ so i dun really noe any built in methods. But if haf i will wish to learn too. pls help!! thx
Combination of String in C++?
I know of no easy way of doing the task you want to accomplish using a built in library function of C/C++. Basically, there are a few things you will need to do:
1. Parse out each of the comma separated characters and create a set containing each of those characters (this set could be stored in an array of chars).
2. Print the power set of the character set you have. The power set is the formal name for what you are looking to print. A simple algorithm for this would be to start with the first element in your list and combine that with each of the characters after it. Once all combinations involving the first character have been exhausted, move on to the second but only do combinations of the second not involving the first character which came before it. Do this for each character in the set and your task will be accomplished.
This problem is ripe for recursion if you are so inclined.
i will wan to separate the string into individual letters and form all different combination like (a,b), (a,c,d) or (a,b,c,d) etc..
is there any simple methods to do so juz using loop?? im still a beginner in C++ so i dun really noe any built in methods. But if haf i will wish to learn too. pls help!! thx
Combination of String in C++?
I know of no easy way of doing the task you want to accomplish using a built in library function of C/C++. Basically, there are a few things you will need to do:
1. Parse out each of the comma separated characters and create a set containing each of those characters (this set could be stored in an array of chars).
2. Print the power set of the character set you have. The power set is the formal name for what you are looking to print. A simple algorithm for this would be to start with the first element in your list and combine that with each of the characters after it. Once all combinations involving the first character have been exhausted, move on to the second but only do combinations of the second not involving the first character which came before it. Do this for each character in the set and your task will be accomplished.
This problem is ripe for recursion if you are so inclined.
C pointers, give practical examples?
Pointer is a variable that contains the address of another variable. (or in other words the address of a memory location). in 16-bit segmented memory model, there are two types of pointers: near pointer, that points in the same memory segment, and far pointer, which can point to beyond the current memory segment. Near pointer is actually a 16-bit integer that addresses a memory location in the segment pointed to by DS register of processor. While far pointer is 32-bit integer which contains both segment and offset address.
in 32-bit flat addressin mode, pointer is always a 32-bit integer.
One important thing to understand is pointer itself does not contain any data (or code sometimes), rather it contains the address of a memory location where data (or code) can be found. Using this technique is called indirect addressing and multiple indirection could be possible.
I give hereunder a code example which uses the pointers. Two operators in C are very important when using pointers. * is called 'value at' and %26amp; is called 'address of'. here's the code in C:
#include %26lt;conio.h%26gt;
#include %26lt;stdio.h%26gt;
void main()
{
int x=100;
int *ax=%26amp;x;
printf("%d, %d", x, *ax); // will print 100, 100
printf("%d",ax); //will print memory address of x
*ax=200; // you are actually changing x with its pointer ax
printf("%d, %d", x, *ax); // will print 200, 200
printf("%d",ax); //will print memory address of x
}
try this code in a 16-bit C version.
hope that answers the question
C pointers, give practical examples?
pointer is a variable it stores the address of another variable.
say for example
you are declaring a variable integer
int i;
i=10;
int occupies 2 bytes in the memory
say for example
memory address will look like this
8000 8001 8002 8003 ......9000
when you store it in the memory it will converted to binary and occupies the 2 bytes
here int i will occupie from 8000 to 8016
int *ptr;
ptr=%26amp;i (address of i)
so now ptr contains the starting address of i ...
here i starting address is 8000. so ptr= 8000
*ptr = value at address ( 10)
%26amp;i = address of i (8000)
%26amp;ptr= address of ptr ( prt is also variable so it will occupy some space in memmory it will return that base address
for better understanding
buy the book named "pointers in c " by yaswant kanithkar
in 32-bit flat addressin mode, pointer is always a 32-bit integer.
One important thing to understand is pointer itself does not contain any data (or code sometimes), rather it contains the address of a memory location where data (or code) can be found. Using this technique is called indirect addressing and multiple indirection could be possible.
I give hereunder a code example which uses the pointers. Two operators in C are very important when using pointers. * is called 'value at' and %26amp; is called 'address of'. here's the code in C:
#include %26lt;conio.h%26gt;
#include %26lt;stdio.h%26gt;
void main()
{
int x=100;
int *ax=%26amp;x;
printf("%d, %d", x, *ax); // will print 100, 100
printf("%d",ax); //will print memory address of x
*ax=200; // you are actually changing x with its pointer ax
printf("%d, %d", x, *ax); // will print 200, 200
printf("%d",ax); //will print memory address of x
}
try this code in a 16-bit C version.
hope that answers the question
C pointers, give practical examples?
pointer is a variable it stores the address of another variable.
say for example
you are declaring a variable integer
int i;
i=10;
int occupies 2 bytes in the memory
say for example
memory address will look like this
8000 8001 8002 8003 ......9000
when you store it in the memory it will converted to binary and occupies the 2 bytes
here int i will occupie from 8000 to 8016
int *ptr;
ptr=%26amp;i (address of i)
so now ptr contains the starting address of i ...
here i starting address is 8000. so ptr= 8000
*ptr = value at address ( 10)
%26amp;i = address of i (8000)
%26amp;ptr= address of ptr ( prt is also variable so it will occupy some space in memmory it will return that base address
for better understanding
buy the book named "pointers in c " by yaswant kanithkar
C sharp fundamentals with examples?
Yiou can start with Microsoft's own site. Its quite useful
http://msdn.microsoft.com/vstudio/expres...
http://msdn.microsoft.com/vstudio/expres...
What is the data structures used to perform recursion,explain for c and c++?
exlain in the c lang and c++lang with samll examples
What is the data structures used to perform recursion,explain for c and c++?
The recurssion process is a loop with a condition. Example is Fibonacci numbers, Towe of Hanoi . Recursion is a method to develop the logic of the program . Data structure can be "tree structure" Refer to Knuth "Discreate Mathematics"
Reply:stack is used to simulate recursion.
Reply:Hi;
You are in the incorrect forum. Go to www.codeguru.com, this site is for vb,c++,VB.Net,VC.Net developers.
liama-song
What is the data structures used to perform recursion,explain for c and c++?
The recurssion process is a loop with a condition. Example is Fibonacci numbers, Towe of Hanoi . Recursion is a method to develop the logic of the program . Data structure can be "tree structure" Refer to Knuth "Discreate Mathematics"
Reply:stack is used to simulate recursion.
Reply:Hi;
You are in the incorrect forum. Go to www.codeguru.com, this site is for vb,c++,VB.Net,VC.Net developers.
liama-song
How does the school grading system work? ( A, B, C, D)?
like out of 100 how much would a C or A be (for example)
How does the school grading system work? ( A, B, C, D)?
when ranking is done it is a failure--50 studem\nts come in one grade how to tackle them
Reply:In university in America is as follows:
A+=100
A=90-99
B=80-89
C=70-79
D=60-69
F=failing...anything lower than the above #'s
How does the school grading system work? ( A, B, C, D)?
when ranking is done it is a failure--50 studem\nts come in one grade how to tackle them
Reply:In university in America is as follows:
A+=100
A=90-99
B=80-89
C=70-79
D=60-69
F=failing...anything lower than the above #'s
Can you give me some words that start with "c" that relate to a person?
I need a word that starts with "C" that is a person. Example : Chief, Collector
Can you give me some words that start with "c" that relate to a person?
Captain,Controller,Commander,Chef
Reply:Cool, Creative, Capable. Careless, Careful (^_^)
Reply:Coroner, creator, cop, custodian, cook...
Reply:Cop
Chair person
Corny
Cheater
Chief
Collector
Reply:* cab(ar)et
* ca(ble)d
* Caen
* Caes(ar)(ea)n
* Cal(ed)onia
* calis(the)nics
* Call(ow)ay
* cam(ar)ad(er)ie
* c(ance)ll(ation)
* c(ance)r
* c(and)idate
* cano(ed)
* cans
* (can)�t
* cantil(ever)
* c(ar)e(er)
* C(ar)i(bb)(ea)n
* c(ar)n(ation)
* C(ar)ol(ing)ian
* c(ar)(ou)se
* c(ar)te blan(ch)e
* c(ar)thorse
* cas(in)o
* cass(er)ole
* Ca(st))ler(ea)(gh)
* cath(ea)d
* Ca(the)r(in)e
* cation
* cau(st)ic(ally)
* cav)ea_t
* c(ed)(ar)
* c(ed)illa
* ce(ment)
* c(en)time
* c(en)timet(er)
* c(en)trosome
* c(en)trosph(er)e
* c(er)amics
* c(er)(ea)l
* c(er)ise
* c(er)ul(ea)n
* (ch)a(ff)(in)(ch)
* (ch)aise l(ong)ue
* (Ch)ald(ea)n
* (ch)al(one)
* (ch)alyb(ea)te
* (ch)(ance)d
* (ch)(ance)llor
* (ch)(ance)d
* (ch)(ance)llor
* (ch)(ance)ry
* (ch)(and)eli(er)
* (ch)angea(ble)
* (ch)ap(ea)u
* (ch)ap(er)(one)
* (character)i(st)ic(ally)
* (ch)(ar)ade
* (ch)(ar)gea(ble)
* (ch)(ar)ge d�a(ff)aires
* (Ch)(ar)le(st)on
* (Ch)(ar)lest(ow)n
* (ch)a(st)ise
* (ch)at(ea)u
* (Ch)atham
* (ce)(ed)d(ar)
* (ch)e(er)(less)(ness)
* (ch)em(in) de f(er)
* (ch)(en)ille
* (ch)(er)oot
* (ch)iefta(in)less
* (ch)i(ff)oni(er)
* (ch)ildhood
* (ch)ildi(sh)(ness)
* (ch)ildlike
* (child)�s
* (Ch)ilds
* (ch)(in)a
* (Ch)(in)ese
* (Ch)(in)ese
* (Ch)(in)ook
* (Ch)isholm
* (Ch)op(in)
* (Ch)(ou) En-lai
* (ch)ri(st)(en)(ed)
* (ch)romosome
* (ch)u(bb)i(ness)
* (ch)uckfull
* cic(er)one
* cig(ar)ette
* c(in)(er)(ar)ium
* ci(the)rn
* citiz(en)less
* c(ity)
* cl(and)e(st)(in)e
* cl(ar)(in)et
* cle(ment)
* Cle(ment)(in)e
* cl(ever)e(st)
* cli(ff)s
* clo(the)shorse
* clyp(ea)te
* cob(ble)r
* Co(ble)nz
* co(ch)(in(ea)l
* co(ed)
* coenobite
* co(en)zyme
* co(er)ce
* c(of)fee
* co(here)
* coh(er)(ence)
* coh((er)(en)t
* coi(ff)ure
* Col(er)idge
* coll(in)e(ar)
* colonel
* colorbl [colorblind]
* (com)a
* (Com)an(ch)(ea)n
* (com)atose
* (com)b
* (com)b(in)(ation)
* (com)(ed)ian
* (com)(ed)y
* com�(er)e
* (com)in�
* (Com)(in)t(er)n
* comique
* (com)m(and)ant
* (com)m(and)(er)-in-(ch)ief
* (com)m(ence)d
* (com)(ment)
* (com)(ment)(ar)y
* (com)m(ing)le
* (com)mon(er)
* (com)mone(st)
* (com)p(ar)a(ble)
* (com)(part)(ment)
* (com)p(en)s(ation)
* (com)pli(ment)(ar)y
* (com)pon(en)t
* (com)ptroll(er)
* (com)radery
* con
* co(name)d
* con(ation)
* (con)ative
* conatus
* (con)c(ed)(ed)
* (con)cvd [conceived]
* (con)c(er)t(in)a
* con(ch)
* (con)(ch)a
* conchuela
* (con)ci(er)ge
* (con)comit(ance)
* (con)di(ment)
* (con)d(one)
* (con)don(ed)
* c(one)
* con(ed)
* c(one)nose
* (Con)e(st)oga
* coney
* (con)f(ed)(er)(ation)
* (con)ga
* (con)ge
* (con)g(ea)(ed)
* (con)g(er)
* (Con)go
* (Con)gress
* (con)gru(ou)s
* (con)ic
* conidium
* conif(er)
* coni(in)e
* conium
* (Con)in.
* (con)n(ing)
* conoid
* (con)sci(ence)
* (con)(st)(er)n(ation)
* (con)t.
* conte
* (con)t(in)(en)t
* (con)t(ing)(en)t
* (con)t(in)u(ity)
* (con)tradist(in)c(tion)
* (con)tr(ar)iety
* (con)tredanse
* conundrum
* (con)v(en)(ance)
* (con)v(en)i(ence)
* (con)v(en)(tion)al(ity)
* (con)v(er)sazione
* cony
* coop(er)(ation)
* coord(in)(ation)
* coord(in)(ation)
* cop(ar)c(en)(ar)ly
* copy(right)
* coron(er)
* coronet
* corpor(ea)l
* cortis(one)
* co(st)(er)m(ong)(er)
* co(st)um(er)
* cot(er)ie
* cda [coulda]
* cdn�t [couldst]
* c(ount)(en)(ance)
* c(ount(er)(part)
* c(ount)ess
* c(ount)ry
* c(ount)y
* c(ou)pon
* c(ou)rth(ou)se
* c(ou)turi(er)
* c(ow)(ar)d
* c(ow)h(er)d
* c(ow)hide
* co(work)(er)
* cra(bb)(ed)
* cr(ea)te
* cre(ation)
* cr(ea)tor
* cr(ea)ture
* cr(ed)(en)tials
* cr(ed)o
* cr(ed)ul(ity)
* creme de m(en)(the)
* cr(en)(ation)
* Crim(ea)n
* crim(in)ologi(st)
* cr(ing)(ed)
* cr(ing)(ing)
* cr(in)oid
* cr(one)
* croon(er)
* crop-e(ar)(ed)
* cross-(question)(ed)
* crosstrees
* crum(ble)d
* cry(st)al
* cul(in)(ar)y
* Cumaean
* cun(ea)te
* cu(sh)ion(ed)
* cu(st)om(er)
* cycl(one)
* Cyclop(ea)n
* cz(ar)(in)a
Reply:continually-asking-stupid-
questions
Reply:captain
cashier
chef
cook
chief executive officer(CEO)
cake decorator
candy maker
cable installer
cartoonist
centenarian
cleaner
cop
constable
coordinator
coquette
craftsman
cub scout
chiropractor
Reply:C unt
Reply:Coder
Contestant
Cousin
Countess
Count
Convert
Convict
Con-artist
Con-man
Counterpart
Clown
Congressman/woman
Client
There are some - hope they were helpful
Reply:collanary chef
cartoon creator
Reply:yes one that Has Aunt but take the A of and change it what do you get??
Reply:Christian
Chef
Computer Nerd??
Reply:Crazy
Cabbie
Collector
Child
Reply:and no one told you Clerk or Cleric
Can you give me some words that start with "c" that relate to a person?
Captain,Controller,Commander,Chef
Reply:Cool, Creative, Capable. Careless, Careful (^_^)
Reply:Coroner, creator, cop, custodian, cook...
Reply:Cop
Chair person
Corny
Cheater
Chief
Collector
Reply:* cab(ar)et
* ca(ble)d
* Caen
* Caes(ar)(ea)n
* Cal(ed)onia
* calis(the)nics
* Call(ow)ay
* cam(ar)ad(er)ie
* c(ance)ll(ation)
* c(ance)r
* c(and)idate
* cano(ed)
* cans
* (can)�t
* cantil(ever)
* c(ar)e(er)
* C(ar)i(bb)(ea)n
* c(ar)n(ation)
* C(ar)ol(ing)ian
* c(ar)(ou)se
* c(ar)te blan(ch)e
* c(ar)thorse
* cas(in)o
* cass(er)ole
* Ca(st))ler(ea)(gh)
* cath(ea)d
* Ca(the)r(in)e
* cation
* cau(st)ic(ally)
* cav)ea_t
* c(ed)(ar)
* c(ed)illa
* ce(ment)
* c(en)time
* c(en)timet(er)
* c(en)trosome
* c(en)trosph(er)e
* c(er)amics
* c(er)(ea)l
* c(er)ise
* c(er)ul(ea)n
* (ch)a(ff)(in)(ch)
* (ch)aise l(ong)ue
* (Ch)ald(ea)n
* (ch)al(one)
* (ch)alyb(ea)te
* (ch)(ance)d
* (ch)(ance)llor
* (ch)(ance)d
* (ch)(ance)llor
* (ch)(ance)ry
* (ch)(and)eli(er)
* (ch)angea(ble)
* (ch)ap(ea)u
* (ch)ap(er)(one)
* (character)i(st)ic(ally)
* (ch)(ar)ade
* (ch)(ar)gea(ble)
* (ch)(ar)ge d�a(ff)aires
* (Ch)(ar)le(st)on
* (Ch)(ar)lest(ow)n
* (ch)a(st)ise
* (ch)at(ea)u
* (Ch)atham
* (ce)(ed)d(ar)
* (ch)e(er)(less)(ness)
* (ch)em(in) de f(er)
* (ch)(en)ille
* (ch)(er)oot
* (ch)iefta(in)less
* (ch)i(ff)oni(er)
* (ch)ildhood
* (ch)ildi(sh)(ness)
* (ch)ildlike
* (child)�s
* (Ch)ilds
* (ch)(in)a
* (Ch)(in)ese
* (Ch)(in)ese
* (Ch)(in)ook
* (Ch)isholm
* (Ch)op(in)
* (Ch)(ou) En-lai
* (ch)ri(st)(en)(ed)
* (ch)romosome
* (ch)u(bb)i(ness)
* (ch)uckfull
* cic(er)one
* cig(ar)ette
* c(in)(er)(ar)ium
* ci(the)rn
* citiz(en)less
* c(ity)
* cl(and)e(st)(in)e
* cl(ar)(in)et
* cle(ment)
* Cle(ment)(in)e
* cl(ever)e(st)
* cli(ff)s
* clo(the)shorse
* clyp(ea)te
* cob(ble)r
* Co(ble)nz
* co(ch)(in(ea)l
* co(ed)
* coenobite
* co(en)zyme
* co(er)ce
* c(of)fee
* co(here)
* coh(er)(ence)
* coh((er)(en)t
* coi(ff)ure
* Col(er)idge
* coll(in)e(ar)
* colonel
* colorbl [colorblind]
* (com)a
* (Com)an(ch)(ea)n
* (com)atose
* (com)b
* (com)b(in)(ation)
* (com)(ed)ian
* (com)(ed)y
* com�(er)e
* (com)in�
* (Com)(in)t(er)n
* comique
* (com)m(and)ant
* (com)m(and)(er)-in-(ch)ief
* (com)m(ence)d
* (com)(ment)
* (com)(ment)(ar)y
* (com)m(ing)le
* (com)mon(er)
* (com)mone(st)
* (com)p(ar)a(ble)
* (com)(part)(ment)
* (com)p(en)s(ation)
* (com)pli(ment)(ar)y
* (com)pon(en)t
* (com)ptroll(er)
* (com)radery
* con
* co(name)d
* con(ation)
* (con)ative
* conatus
* (con)c(ed)(ed)
* (con)cvd [conceived]
* (con)c(er)t(in)a
* con(ch)
* (con)(ch)a
* conchuela
* (con)ci(er)ge
* (con)comit(ance)
* (con)di(ment)
* (con)d(one)
* (con)don(ed)
* c(one)
* con(ed)
* c(one)nose
* (Con)e(st)oga
* coney
* (con)f(ed)(er)(ation)
* (con)ga
* (con)ge
* (con)g(ea)(ed)
* (con)g(er)
* (Con)go
* (Con)gress
* (con)gru(ou)s
* (con)ic
* conidium
* conif(er)
* coni(in)e
* conium
* (Con)in.
* (con)n(ing)
* conoid
* (con)sci(ence)
* (con)(st)(er)n(ation)
* (con)t.
* conte
* (con)t(in)(en)t
* (con)t(ing)(en)t
* (con)t(in)u(ity)
* (con)tradist(in)c(tion)
* (con)tr(ar)iety
* (con)tredanse
* conundrum
* (con)v(en)(ance)
* (con)v(en)i(ence)
* (con)v(en)(tion)al(ity)
* (con)v(er)sazione
* cony
* coop(er)(ation)
* coord(in)(ation)
* coord(in)(ation)
* cop(ar)c(en)(ar)ly
* copy(right)
* coron(er)
* coronet
* corpor(ea)l
* cortis(one)
* co(st)(er)m(ong)(er)
* co(st)um(er)
* cot(er)ie
* cda [coulda]
* cdn�t [couldst]
* c(ount)(en)(ance)
* c(ount(er)(part)
* c(ount)ess
* c(ount)ry
* c(ount)y
* c(ou)pon
* c(ou)rth(ou)se
* c(ou)turi(er)
* c(ow)(ar)d
* c(ow)h(er)d
* c(ow)hide
* co(work)(er)
* cra(bb)(ed)
* cr(ea)te
* cre(ation)
* cr(ea)tor
* cr(ea)ture
* cr(ed)(en)tials
* cr(ed)o
* cr(ed)ul(ity)
* creme de m(en)(the)
* cr(en)(ation)
* Crim(ea)n
* crim(in)ologi(st)
* cr(ing)(ed)
* cr(ing)(ing)
* cr(in)oid
* cr(one)
* croon(er)
* crop-e(ar)(ed)
* cross-(question)(ed)
* crosstrees
* crum(ble)d
* cry(st)al
* cul(in)(ar)y
* Cumaean
* cun(ea)te
* cu(sh)ion(ed)
* cu(st)om(er)
* cycl(one)
* Cyclop(ea)n
* cz(ar)(in)a
Reply:continually-asking-stupid-
questions
Reply:captain
cashier
chef
cook
chief executive officer(CEO)
cake decorator
candy maker
cable installer
cartoonist
centenarian
cleaner
cop
constable
coordinator
coquette
craftsman
cub scout
chiropractor
Reply:C unt
Reply:Coder
Contestant
Cousin
Countess
Count
Convert
Convict
Con-artist
Con-man
Counterpart
Clown
Congressman/woman
Client
There are some - hope they were helpful
Reply:collanary chef
cartoon creator
Reply:yes one that Has Aunt but take the A of and change it what do you get??
Reply:Christian
Chef
Computer Nerd??
Reply:Crazy
Cabbie
Collector
Child
Reply:and no one told you Clerk or Cleric
How do u tune my guitar to drop c from e standard tuning eadgbe?
would this method work to get the drop c tuning cgcdaf
heres an example if were to tune the 5th string to the 3rd fret of the sixth string would that work to give me a g
How do u tune my guitar to drop c from e standard tuning eadgbe?
You could definitely do that, then tune strings 4 through 1 using your 5th string (which is now a full step lower), then act like you're tuning your 6th string to drop D
Reply:Drop C is actually (from the thickest string, the 6th) CGCFAD. It's simply drop D but a whole step down. Use a chromatic tuner like a Korg CA-30 and use it to tune each string to pitch.
Reply:i dont know
Reply:to drop c, don't you just have to tune it to dadgbe?
heres an example if were to tune the 5th string to the 3rd fret of the sixth string would that work to give me a g
How do u tune my guitar to drop c from e standard tuning eadgbe?
You could definitely do that, then tune strings 4 through 1 using your 5th string (which is now a full step lower), then act like you're tuning your 6th string to drop D
Reply:Drop C is actually (from the thickest string, the 6th) CGCFAD. It's simply drop D but a whole step down. Use a chromatic tuner like a Korg CA-30 and use it to tune each string to pitch.
Reply:i dont know
Reply:to drop c, don't you just have to tune it to dadgbe?
Can you give me some basic and advanced examples of what C and C++ make?
I am curious that it looks like with each program.
Can you give me some basic and advanced examples of what C and C++ make?
Those are two low level programming languages which compile into assembly language which is what the computer understands. C++ can do everything up to games and other software. C is great for advanced micros users. Changing keys into "Hot Keys". C++ will begin with something that looks like this
#include %26lt;iostream%26gt;
int main()
{
and C looks similar. I don't know if I answered your question though.
Reply:what *what* looks like? A programmer can make C and C++ UI look like anything.
Reply:but sailor moon i don't know anything about c and c++ until i go to school and find out okay is that good for you
garden state
Can you give me some basic and advanced examples of what C and C++ make?
Those are two low level programming languages which compile into assembly language which is what the computer understands. C++ can do everything up to games and other software. C is great for advanced micros users. Changing keys into "Hot Keys". C++ will begin with something that looks like this
#include %26lt;iostream%26gt;
int main()
{
and C looks similar. I don't know if I answered your question though.
Reply:what *what* looks like? A programmer can make C and C++ UI look like anything.
Reply:but sailor moon i don't know anything about c and c++ until i go to school and find out okay is that good for you
garden state
Can you give me some examples of good c.v.?
Visit the following site to get sample CV's
http://www.freshersworld.com
http://www.monsterindia.com
Can you give me some examples of good c.v.?
1. do follow the advt. thoroughly.
2. write ur resume afresh, as per the job requirement.
3. include certain qualities that can heighten ur profile.
4. enclose all documents, exerox copies, not originals.
5. write a nice covering letter, brief and to the point.
Let ur resume sparkle ur bright outlook of life n positive attitude. Good Luck!
http://www.freshersworld.com
http://www.monsterindia.com
Can you give me some examples of good c.v.?
1. do follow the advt. thoroughly.
2. write ur resume afresh, as per the job requirement.
3. include certain qualities that can heighten ur profile.
4. enclose all documents, exerox copies, not originals.
5. write a nice covering letter, brief and to the point.
Let ur resume sparkle ur bright outlook of life n positive attitude. Good Luck!
1. What are the main features of c++ programming language (OOPL)?
Explain how c differs c++ its structure. Give examples.
With a simple structure that describes the structure of a c++ program
Explain what is a variable
Briefly describe the basic data type
Write a program that solve quadratic equation
write a c++ program that determine the principle amount of money for a period of a fixed interest
1. What are the main features of c++ programming language (OOPL)?
Dig the link
http://en.wikipedia.org/wiki/C++
Reply:c differs from c++ in its name itself
c++ is addition of something to c language
that something is classes .
so c with classes is c++.
c++ is an object oriented language where as c is a structured pgmg language.
examples : c doenst exhibit oops principles.
ie inheritance ,polymorphism and so on.
a variable is that which keeps on changing i.e, varying
ex: int a =1;
cout%26lt;%26lt;a;
o/p is 1
if
int a=1;
a+=2;
cout%26lt;%26lt;a;
o/p is 3
ie a changes during execution of a program
Reply:C++ was developed by Bjarne Stroustrup as "A better C" (it was originally called "C with classes"). At a talk, I recall Bjarne saying that he was doing some simulation work while a student at Cambridge, and found himself wishing for a language combining the object-oriented features of Simula and the performance of C. C++ was the result. (For a little more history, and some links, see this page on the history of C++.)
C++ was one of several efforts to add OO features to the popular C language. The other prominent one was Objective C, probably best known for its use on the NeXT platform. Whereas C++ is strongly typed and focused on performance and C compatibility, Objective C is more in the style of Smalltalk. Though still active, Objective C is much less used than C++; and both have been eclipsed by Java since the late 1990s.
C++ extends the C language with objects, classes, and inheritance. Unlike Smalltalk, it supports strong typing, and unlike both Smalltalk and Java, it supports multiple inheritance. Also unlike Smalltalk and Java, it does not use garbage collection; as in C, programmers explicitly allocate and free object storage. Because of these factors (and others), C++ is more complicated than either C, Java, or Smalltalk.
This tutorial covers only a small fragment of the language, mainly through examples. It does not assume a prior knowledge of C. Some comparisons to Smalltalk are made to illustrate the differences between the languages, and there are a few references to the differences between C++ and Java.
To understand C++, it is first necessary to know a little C. Keep in mind that any C program (as long as it conforms to the ANSI standard for C) is automatically a C++ program, since C is a subset of C++. The following, from the famous Kernighan and Ritchie book, is a simple C program:
#include %26lt;stdio.h%26gt;
main () // A very simple program
{
printf("hello, world\n");
}
The #include embeds definitions from the standard I/O library needed for the printf statement. Every C and C++ program has a main() function, which is called when the program is executed. Braces ( { } ) delineate blocks of statements, in this case the single statement making up the body of main(). This statement prints "hello, world" when the program is executed ("\n" is the code for carriage return/line feed). The semicolon terminates a statement (notice the difference from Smalltalk, where a period terminates a statement, and semicolon delineates a series of messages to the same object). The double quote is the character string delimiter in C; the comment delimiter is a double slash (//). Comments may also be delimited by bracketing them with "/*" and "*/".
Variables in C may be primitive types, such as characters and numbers:
char c = 'c'; // Character
int i = 10; // Integer
double x = 12.34 ; // Floating point number
Or they may be arrays of primitive types:
char c[] = {'c', 'h', 'a', 'r'}; // Array of characters (string)
char c[] = "char"; // Alternative way of initializing a string
int i[] = {2, 3, 5, 7}; // Array of integers
Arrays are referenced by the index of their elements, starting at zero for the first element; e.g., c[3] returns 'r'. (Note that other languages, such as Smalltalk, use 1 as the index of the first element in an array).
C variables may also be structures, containing other variables of different types. For example, the data associated with a bank savings account might be represented as:
struct savingsAccount {
int balance;
int accountNumber;
char name[30];
};
The individual variables, or members, of the structure are referenced by qualifying the structure name with the member name:
struct savingsAccount myAccount;
// Initialize the new account
myAccount.balance = 0;
myAccount.number = "1234";
myAccount.name = "Dave Collins";
In addition to main(), a program can have any number of other functions:
#include %26lt;stdio.h%26gt;
int cube(int x) {
return x * x * x;
}
main () {
int i;
for(i = 1; i++; i %26lt; 10)
printf(i, " cubed is ", cube(i));
}
This example adds the function cube(int x), which returns x3 and is called from main(), plus a few other constructs. The expression i++ is common in C and C++ (in fact, it gives rise to the name "C++"); it means "use the value of i, then increment i by one." The entire for expression means "start with i set to 1; use i in the statement (or block of statements) after the for; increment i by 1; keep doing this until i gets to 10; then continue the program after the for."
The C if and while control structures resemble the for. Here is an example of if:
int i, j;
if (i == 0) {
j = 10;
i++;
printf(i);
}
Notice that the equality test in C is ==, and = is used for assignment. Most other operators are like those in other languages; != means "not equal."
You will frequently encounter in C programs the rather cryptic variant
if (!i) . . .
instead of
if (i == 0) . . .
This works because C does not have a boolean type; instead, it uses 0 for false, and any integer greater than zero for true. Thus !i means "i is false," which is precisely equivalent to i == 0.
C and C++, unlike Smalltalk, explicitly differentiate accessing an object directly (by value) from accessing it through a pointer (by reference). This is illustrated in the following example:
int sum1(int x, int y) {
return x + y;
}
int sum2(int *x, int *y) {
return *x + *y;
}
int result1, result2;
int i, j; int *pi, *pj;
i = j = 10;
pi = %26amp;i; pj = %26amp;j;
result1 = sum1(i, j);
result2 = sum2(pi, pj);
The variables i and j are declared as integers and set to 10. The variables pi and pj are declared as pointers to integers, and set to the addresses of i and j (int *i means "the object pointed to by i is an integer"; %26amp;i means "the address of i"). Pointer references are useful when objects are large, because passing a pointer is faster than copying the object. They are needed when objects are dynamically allocated, since their locations are not known at the time the program is compiled.
It is worth noting that the explicit use of pointers, and the programmer-controlled distinction between value and reference, were dropped in Java. Java still has the distinction, but it is handled automatically: "primitive" types (such as integers) are always accessed by value, complex types (objects and arrays) are always accessed by reference. Creation and dereferencing of pointers is handled automatically "under the covers," so the programmer is not explicitly aware of it. This is a significant simplification, which undoubtedly contributed to Java's popularity.
Pointers allow the programmer to statically compile only a pointer, then dynamically allocate storage for the creation of data structures or objects at runtime. For example:
struct savingsAccount *myAccount;
int size = sizeof(struct savingsAccount);
. . . .
// Allocate storage for the account
myAccount = (struct savingsAccount *) malloc(size);
myAccount-%26gt;balance = 0;
myAccount-%26gt;accountNumber = 1234;
myAccount-%26gt;name = "Dave Collins";
. . . .
// Free the storage used for the account
free(myAccount);
Note that the storage gotten with malloc must be explicitly released using free. Otherwise, it will be released only when the program ends, and the program may exhaust all the available storage if large numbers of objects are created. It is also important that the storage not be freed while it is still in use. Notice also that whereas a direct structure reference uses dot notation (e.g., myAccount.balance), structure reference via a pointer uses an arrow (e.g., myAccount-%26gt;balance).
The operation in the fifth line of the above example, (struct savingsAccount *), is a cast, explained below. It tells the C compiler that what is returned by malloc, which is a pointer to a block of storage, is now to be treated as a pointer to a savingsAccount structure.
Storage management in C++ is also the responsibility of the programmer; objects created using new must be released using delete, otherwise their storage will not be freed. In some cases (beyond the scope of this tutorial) the programmer must code a destructor function to free storage held by objects of a given class.
Storage management is a major source of errors in C and C++ programs. Some other languages, such as Smalltalk and Java, use garbage collection and do not permit programmers to manage storage usage explicitly. The garbage collector runs periodically, and determines whether any references exist to objects. If not, the objects are deleted and their storage is freed. C++, in order to insure that maximum performance can be attained, does not use a garbage collector. The designers of Smalltalk and Java argued that the small additional overhead is a reasonable price to pay in return for not being exposed to storage allocation and deallocation errors made by programmers.
One more feature of C that is relevant to C++ is the notion of a cast. Casting is changing the type of a object. As an example of why this might be necessary, the standard C library function sqrt(), which returns the square root of its argument, takes a floating-point double as its argument. Suppose we want the square root of an int (integer)? The cast operator (double) performs the appropriate conversion before calling sqrt():
int i;
double x, y;
i = 5;
x = (double) i;
y = sqrt(x);
Casting can be dangerous; what will be the result of this?
int i;
char name[30];
double x, y;
i = 5;
x = (double) name;
y = sqrt(x);
Hopefully a warning from the compiler, possibly a hard-to-find runtime error if the warning is ignored. There is no explicit casting in Smalltalk, though it may happen "under the covers," resulting in runtime errors if the object to be converted is the wrong type. C++ (and Java) also permit C-type casting, but provide facilities for making it safer.
C++ adds objects, classes, and inheritance to C. The equivalent of a method in C++ is a member function; this is just like an ordinary C function, except it is defined as part of a class, and has an implicit argument that is the object receiving the "message." The equivalent of a message in C++ is a member function call. Because objects in C++ can be referenced directly or through a pointer, there are two somewhat different equivalents for Smalltalk’s message sending:
SavingsAccount account;
SavingsAccount *pAccount;
int a, b;
pAccount = new SavingsAccount;
a = account.balance();
b = pAccount-%26gt;balance();
The object account is allocated when the program is compiled. The pAccount declaration only allocates a pointer, and the assignment to new SavingsAccount dynamically allocates the object it points to. Direct references to object member functions use the "dot" (.), and references by pointer use the -%26gt; notation. (Java, since it has no explicit pointers, uses only the dot notation.) Note the similarity of the dot and arrow notations to what is used to access structure members in C. A C++ class can be thought of as a struct which can contain functions as well as data members.
A fragment of the C++ class and member function definitions for bank accounts look like this:
class BankAccount {
private:
int balance;
char* name;
public:
// Set the balance and account name
void initialize(int b char* n) {
balance = b;
name = n;
}
int balance() {
return balance;
}
. . . . .
};
class SavingsAccount public: BankAccount {
private:
float interestRate;
public:
virtual void postInterest() {
balance = balance + balance*interestRate; }
. . . . .
};
BankAccount is called a base class, and SavingsAccount is a derived class. Unlike Smalltalk, C++ differentiates between public and private members. Data members (equivalent to instance variables) and member functions can be public, accessible to any other object, or private, accessible only to member functions in the class in which they are defined. Members can also be protected, accessible to the class and its derived classes. One other thing to notice in this example is the void keyword, indicating that a function does not return anything.
The C++ analogue to BankAccount%26gt;%26gt;balance in Smalltalk is BankAccount::balance(). In C++ :: is an important part of the language (the scoping operator), and is used frequently when the code for a member function is placed outside the class definition.
The initialize() function in the example is not typical. C++ classes use constructor functions that are invoked when an object of the class is created. Constructors can take arguments, and are the normal ways of initializing objects. In this case, we might define the constructor as:
SavingsAccount::SavingsAccount(int b char* n)
: balance(b) name(n) { }
This constructor is used in the second line of the next axample below.
Though C++ objects are strongly typed, it uses a limited form of dynamic binding. We can have
BankAccount *pAccount; int b1, b2;
pAccount = new SavingsAccount(1000, "Dave Collins");
b1 = pAccount-%26gt;balance();
delete pAccount; // Delete old object
pAccount = new CheckingAccount(2000, "Dave Collins");
b2 = pAccount-%26gt;balance();
The compiler can guarantee that balance() is a valid function call, since it is implemented in BankAccount and pAccount points to an object of some class derived from BankAccount. The delete call here is necessary to free the storage for the first account before it is disconnected from its pointer.
C++ provides an additional form of dynamic binding, using the dynamic_cast%26lt;%26gt;() operator. A full discussion is beyond the scope of this tutorial, but basically it handles situations where we are not sure (at runtime) what the type of some object will be. To find out whether, say, an object is an instance of SavingsAccount, we can say
BankAccount * pAccount;
SavingsAccount * pSavingsAccount;
if ((pSavingsAccount = dynamic_cast%26lt;*SavingsAcount%26gt;(pAccount)) != NULL)
. . . .
The content of the if statement will be executed only if the dynamic cast returns a non-null pointer, i.e., only if the object pointed to by pAccount is something that can safely be used as a SavingsAcount.
The dynamic_cast%26lt;%26gt;() operator is one of many examples in C++ where the complexity of the language has been increased in order to simultaneously satisfy all of its goals:
*
100% backward compatibility with ANSI standard C
*
Performance equal to C
*
Strong type safety
*
Support for object orientation
Many would argue that the complexity of C++ is too high a price to pay. Based on market acceptance, it appears that for most programmers, Java is "the better C". By giving up a little performance, and some of the more error-prone features of C (such as pointers and explicit storage management), Java provides object-orientation and a C-like syntax without the complexity of C++. Many Smalltalk programmers, of course, would argue that even Java is too complex, and that giving up strong typing produces such a radical simplification that the loss of compiler detection of type errors is justified.
For a comparison of corresponding terms and concepts in in Smalltalk, C++, and Java, and pointers to information about other OOPLs, see the OOPL comparison chart.
Reply:So, you got your exams early. You can find these answers in a simple c++ beginners guide.
With a simple structure that describes the structure of a c++ program
Explain what is a variable
Briefly describe the basic data type
Write a program that solve quadratic equation
write a c++ program that determine the principle amount of money for a period of a fixed interest
1. What are the main features of c++ programming language (OOPL)?
Dig the link
http://en.wikipedia.org/wiki/C++
Reply:c differs from c++ in its name itself
c++ is addition of something to c language
that something is classes .
so c with classes is c++.
c++ is an object oriented language where as c is a structured pgmg language.
examples : c doenst exhibit oops principles.
ie inheritance ,polymorphism and so on.
a variable is that which keeps on changing i.e, varying
ex: int a =1;
cout%26lt;%26lt;a;
o/p is 1
if
int a=1;
a+=2;
cout%26lt;%26lt;a;
o/p is 3
ie a changes during execution of a program
Reply:C++ was developed by Bjarne Stroustrup as "A better C" (it was originally called "C with classes"). At a talk, I recall Bjarne saying that he was doing some simulation work while a student at Cambridge, and found himself wishing for a language combining the object-oriented features of Simula and the performance of C. C++ was the result. (For a little more history, and some links, see this page on the history of C++.)
C++ was one of several efforts to add OO features to the popular C language. The other prominent one was Objective C, probably best known for its use on the NeXT platform. Whereas C++ is strongly typed and focused on performance and C compatibility, Objective C is more in the style of Smalltalk. Though still active, Objective C is much less used than C++; and both have been eclipsed by Java since the late 1990s.
C++ extends the C language with objects, classes, and inheritance. Unlike Smalltalk, it supports strong typing, and unlike both Smalltalk and Java, it supports multiple inheritance. Also unlike Smalltalk and Java, it does not use garbage collection; as in C, programmers explicitly allocate and free object storage. Because of these factors (and others), C++ is more complicated than either C, Java, or Smalltalk.
This tutorial covers only a small fragment of the language, mainly through examples. It does not assume a prior knowledge of C. Some comparisons to Smalltalk are made to illustrate the differences between the languages, and there are a few references to the differences between C++ and Java.
To understand C++, it is first necessary to know a little C. Keep in mind that any C program (as long as it conforms to the ANSI standard for C) is automatically a C++ program, since C is a subset of C++. The following, from the famous Kernighan and Ritchie book, is a simple C program:
#include %26lt;stdio.h%26gt;
main () // A very simple program
{
printf("hello, world\n");
}
The #include embeds definitions from the standard I/O library needed for the printf statement. Every C and C++ program has a main() function, which is called when the program is executed. Braces ( { } ) delineate blocks of statements, in this case the single statement making up the body of main(). This statement prints "hello, world" when the program is executed ("\n" is the code for carriage return/line feed). The semicolon terminates a statement (notice the difference from Smalltalk, where a period terminates a statement, and semicolon delineates a series of messages to the same object). The double quote is the character string delimiter in C; the comment delimiter is a double slash (//). Comments may also be delimited by bracketing them with "/*" and "*/".
Variables in C may be primitive types, such as characters and numbers:
char c = 'c'; // Character
int i = 10; // Integer
double x = 12.34 ; // Floating point number
Or they may be arrays of primitive types:
char c[] = {'c', 'h', 'a', 'r'}; // Array of characters (string)
char c[] = "char"; // Alternative way of initializing a string
int i[] = {2, 3, 5, 7}; // Array of integers
Arrays are referenced by the index of their elements, starting at zero for the first element; e.g., c[3] returns 'r'. (Note that other languages, such as Smalltalk, use 1 as the index of the first element in an array).
C variables may also be structures, containing other variables of different types. For example, the data associated with a bank savings account might be represented as:
struct savingsAccount {
int balance;
int accountNumber;
char name[30];
};
The individual variables, or members, of the structure are referenced by qualifying the structure name with the member name:
struct savingsAccount myAccount;
// Initialize the new account
myAccount.balance = 0;
myAccount.number = "1234";
myAccount.name = "Dave Collins";
In addition to main(), a program can have any number of other functions:
#include %26lt;stdio.h%26gt;
int cube(int x) {
return x * x * x;
}
main () {
int i;
for(i = 1; i++; i %26lt; 10)
printf(i, " cubed is ", cube(i));
}
This example adds the function cube(int x), which returns x3 and is called from main(), plus a few other constructs. The expression i++ is common in C and C++ (in fact, it gives rise to the name "C++"); it means "use the value of i, then increment i by one." The entire for expression means "start with i set to 1; use i in the statement (or block of statements) after the for; increment i by 1; keep doing this until i gets to 10; then continue the program after the for."
The C if and while control structures resemble the for. Here is an example of if:
int i, j;
if (i == 0) {
j = 10;
i++;
printf(i);
}
Notice that the equality test in C is ==, and = is used for assignment. Most other operators are like those in other languages; != means "not equal."
You will frequently encounter in C programs the rather cryptic variant
if (!i) . . .
instead of
if (i == 0) . . .
This works because C does not have a boolean type; instead, it uses 0 for false, and any integer greater than zero for true. Thus !i means "i is false," which is precisely equivalent to i == 0.
C and C++, unlike Smalltalk, explicitly differentiate accessing an object directly (by value) from accessing it through a pointer (by reference). This is illustrated in the following example:
int sum1(int x, int y) {
return x + y;
}
int sum2(int *x, int *y) {
return *x + *y;
}
int result1, result2;
int i, j; int *pi, *pj;
i = j = 10;
pi = %26amp;i; pj = %26amp;j;
result1 = sum1(i, j);
result2 = sum2(pi, pj);
The variables i and j are declared as integers and set to 10. The variables pi and pj are declared as pointers to integers, and set to the addresses of i and j (int *i means "the object pointed to by i is an integer"; %26amp;i means "the address of i"). Pointer references are useful when objects are large, because passing a pointer is faster than copying the object. They are needed when objects are dynamically allocated, since their locations are not known at the time the program is compiled.
It is worth noting that the explicit use of pointers, and the programmer-controlled distinction between value and reference, were dropped in Java. Java still has the distinction, but it is handled automatically: "primitive" types (such as integers) are always accessed by value, complex types (objects and arrays) are always accessed by reference. Creation and dereferencing of pointers is handled automatically "under the covers," so the programmer is not explicitly aware of it. This is a significant simplification, which undoubtedly contributed to Java's popularity.
Pointers allow the programmer to statically compile only a pointer, then dynamically allocate storage for the creation of data structures or objects at runtime. For example:
struct savingsAccount *myAccount;
int size = sizeof(struct savingsAccount);
. . . .
// Allocate storage for the account
myAccount = (struct savingsAccount *) malloc(size);
myAccount-%26gt;balance = 0;
myAccount-%26gt;accountNumber = 1234;
myAccount-%26gt;name = "Dave Collins";
. . . .
// Free the storage used for the account
free(myAccount);
Note that the storage gotten with malloc must be explicitly released using free. Otherwise, it will be released only when the program ends, and the program may exhaust all the available storage if large numbers of objects are created. It is also important that the storage not be freed while it is still in use. Notice also that whereas a direct structure reference uses dot notation (e.g., myAccount.balance), structure reference via a pointer uses an arrow (e.g., myAccount-%26gt;balance).
The operation in the fifth line of the above example, (struct savingsAccount *), is a cast, explained below. It tells the C compiler that what is returned by malloc, which is a pointer to a block of storage, is now to be treated as a pointer to a savingsAccount structure.
Storage management in C++ is also the responsibility of the programmer; objects created using new must be released using delete, otherwise their storage will not be freed. In some cases (beyond the scope of this tutorial) the programmer must code a destructor function to free storage held by objects of a given class.
Storage management is a major source of errors in C and C++ programs. Some other languages, such as Smalltalk and Java, use garbage collection and do not permit programmers to manage storage usage explicitly. The garbage collector runs periodically, and determines whether any references exist to objects. If not, the objects are deleted and their storage is freed. C++, in order to insure that maximum performance can be attained, does not use a garbage collector. The designers of Smalltalk and Java argued that the small additional overhead is a reasonable price to pay in return for not being exposed to storage allocation and deallocation errors made by programmers.
One more feature of C that is relevant to C++ is the notion of a cast. Casting is changing the type of a object. As an example of why this might be necessary, the standard C library function sqrt(), which returns the square root of its argument, takes a floating-point double as its argument. Suppose we want the square root of an int (integer)? The cast operator (double) performs the appropriate conversion before calling sqrt():
int i;
double x, y;
i = 5;
x = (double) i;
y = sqrt(x);
Casting can be dangerous; what will be the result of this?
int i;
char name[30];
double x, y;
i = 5;
x = (double) name;
y = sqrt(x);
Hopefully a warning from the compiler, possibly a hard-to-find runtime error if the warning is ignored. There is no explicit casting in Smalltalk, though it may happen "under the covers," resulting in runtime errors if the object to be converted is the wrong type. C++ (and Java) also permit C-type casting, but provide facilities for making it safer.
C++ adds objects, classes, and inheritance to C. The equivalent of a method in C++ is a member function; this is just like an ordinary C function, except it is defined as part of a class, and has an implicit argument that is the object receiving the "message." The equivalent of a message in C++ is a member function call. Because objects in C++ can be referenced directly or through a pointer, there are two somewhat different equivalents for Smalltalk’s message sending:
SavingsAccount account;
SavingsAccount *pAccount;
int a, b;
pAccount = new SavingsAccount;
a = account.balance();
b = pAccount-%26gt;balance();
The object account is allocated when the program is compiled. The pAccount declaration only allocates a pointer, and the assignment to new SavingsAccount dynamically allocates the object it points to. Direct references to object member functions use the "dot" (.), and references by pointer use the -%26gt; notation. (Java, since it has no explicit pointers, uses only the dot notation.) Note the similarity of the dot and arrow notations to what is used to access structure members in C. A C++ class can be thought of as a struct which can contain functions as well as data members.
A fragment of the C++ class and member function definitions for bank accounts look like this:
class BankAccount {
private:
int balance;
char* name;
public:
// Set the balance and account name
void initialize(int b char* n) {
balance = b;
name = n;
}
int balance() {
return balance;
}
. . . . .
};
class SavingsAccount public: BankAccount {
private:
float interestRate;
public:
virtual void postInterest() {
balance = balance + balance*interestRate; }
. . . . .
};
BankAccount is called a base class, and SavingsAccount is a derived class. Unlike Smalltalk, C++ differentiates between public and private members. Data members (equivalent to instance variables) and member functions can be public, accessible to any other object, or private, accessible only to member functions in the class in which they are defined. Members can also be protected, accessible to the class and its derived classes. One other thing to notice in this example is the void keyword, indicating that a function does not return anything.
The C++ analogue to BankAccount%26gt;%26gt;balance in Smalltalk is BankAccount::balance(). In C++ :: is an important part of the language (the scoping operator), and is used frequently when the code for a member function is placed outside the class definition.
The initialize() function in the example is not typical. C++ classes use constructor functions that are invoked when an object of the class is created. Constructors can take arguments, and are the normal ways of initializing objects. In this case, we might define the constructor as:
SavingsAccount::SavingsAccount(int b char* n)
: balance(b) name(n) { }
This constructor is used in the second line of the next axample below.
Though C++ objects are strongly typed, it uses a limited form of dynamic binding. We can have
BankAccount *pAccount; int b1, b2;
pAccount = new SavingsAccount(1000, "Dave Collins");
b1 = pAccount-%26gt;balance();
delete pAccount; // Delete old object
pAccount = new CheckingAccount(2000, "Dave Collins");
b2 = pAccount-%26gt;balance();
The compiler can guarantee that balance() is a valid function call, since it is implemented in BankAccount and pAccount points to an object of some class derived from BankAccount. The delete call here is necessary to free the storage for the first account before it is disconnected from its pointer.
C++ provides an additional form of dynamic binding, using the dynamic_cast%26lt;%26gt;() operator. A full discussion is beyond the scope of this tutorial, but basically it handles situations where we are not sure (at runtime) what the type of some object will be. To find out whether, say, an object is an instance of SavingsAccount, we can say
BankAccount * pAccount;
SavingsAccount * pSavingsAccount;
if ((pSavingsAccount = dynamic_cast%26lt;*SavingsAcount%26gt;(pAccount)) != NULL)
. . . .
The content of the if statement will be executed only if the dynamic cast returns a non-null pointer, i.e., only if the object pointed to by pAccount is something that can safely be used as a SavingsAcount.
The dynamic_cast%26lt;%26gt;() operator is one of many examples in C++ where the complexity of the language has been increased in order to simultaneously satisfy all of its goals:
*
100% backward compatibility with ANSI standard C
*
Performance equal to C
*
Strong type safety
*
Support for object orientation
Many would argue that the complexity of C++ is too high a price to pay. Based on market acceptance, it appears that for most programmers, Java is "the better C". By giving up a little performance, and some of the more error-prone features of C (such as pointers and explicit storage management), Java provides object-orientation and a C-like syntax without the complexity of C++. Many Smalltalk programmers, of course, would argue that even Java is too complex, and that giving up strong typing produces such a radical simplification that the loss of compiler detection of type errors is justified.
For a comparison of corresponding terms and concepts in in Smalltalk, C++, and Java, and pointers to information about other OOPLs, see the OOPL comparison chart.
Reply:So, you got your exams early. You can find these answers in a simple c++ beginners guide.
Streams and pointers in C?
Are streams in C interchangable with pointers?
For example, can you use a stream to convert data of a string using a pointer address as the location?
How do streams work differently then pointers?
Streams and pointers in C?
stream : continous flow of data
pointer : address pointing to memory where data persent
For example, can you use a stream to convert data of a string using a pointer address as the location?
How do streams work differently then pointers?
Streams and pointers in C?
stream : continous flow of data
pointer : address pointing to memory where data persent
How do you cast from integer to string in C?
How do you cast from integer to string in C?
Please give me an example.
In addition,
My msn is: peteryiu007@hotmail.com
I appreciate if someone who is good in C, and interested in helping me to get better at C to add me. Thank you very, very much.
How do you cast from integer to string in C?
Use the itao() function.
Example:
#include %26lt;stdio.h%26gt;
#include %26lt;stdlib.h%26gt;
int main()
{
char IntegerBuffer[128];
printf("Enter the integer\n");
scanf("%i",%26amp;Integer);
itoa(Integer,IntegerBuffer,10);
}
The first argument is the integer, the second is the character buffer, and the last is the base. base 10 is regular decimal.
Reply:the previous person's answer will convert your integers to strings which we suppose is what you're after
you cannot strictly speaking CAST from one to the other as an INT is only the same size as a CHAR while a string is an
array of char. You can only cast from ints to doubles or some other larger numeric type (casting is a way of increasing the size of a variable on the run, so to speak, for example if you only need the larger size once)
for learning more, look up
http://www.amazon.com
and put in "kernighan" in the search field
and buy a copy of the Ansi C Reference, written by Kernighan and Ritchie, the 2 guys who invented the C language
Amazon has them around US$50 new or right now they have some used ones around $19
work your way through the exercises (some are easy some make you really think) to get a good understanding of what does what.
C u
funeral flowers
Please give me an example.
In addition,
My msn is: peteryiu007@hotmail.com
I appreciate if someone who is good in C, and interested in helping me to get better at C to add me. Thank you very, very much.
How do you cast from integer to string in C?
Use the itao() function.
Example:
#include %26lt;stdio.h%26gt;
#include %26lt;stdlib.h%26gt;
int main()
{
char IntegerBuffer[128];
printf("Enter the integer\n");
scanf("%i",%26amp;Integer);
itoa(Integer,IntegerBuffer,10);
}
The first argument is the integer, the second is the character buffer, and the last is the base. base 10 is regular decimal.
Reply:the previous person's answer will convert your integers to strings which we suppose is what you're after
you cannot strictly speaking CAST from one to the other as an INT is only the same size as a CHAR while a string is an
array of char. You can only cast from ints to doubles or some other larger numeric type (casting is a way of increasing the size of a variable on the run, so to speak, for example if you only need the larger size once)
for learning more, look up
http://www.amazon.com
and put in "kernighan" in the search field
and buy a copy of the Ansi C Reference, written by Kernighan and Ritchie, the 2 guys who invented the C language
Amazon has them around US$50 new or right now they have some used ones around $19
work your way through the exercises (some are easy some make you really think) to get a good understanding of what does what.
C u
funeral flowers
Using resources in c#?
how do i use resources in c#.net
i need an example of how to refrence a resource and use it
Using resources in c#?
hey man you need to add a new reference first, the in code behind use it. ie: my reference is Ajax, then I click right click on References / Add new Reference / select the reference to be added 'Ajax' / OK. Now in code behind : using Ajax;
and that's all
then you can use all the Ajax resources, easy uh?
i need an example of how to refrence a resource and use it
Using resources in c#?
hey man you need to add a new reference first, the in code behind use it. ie: my reference is Ajax, then I click right click on References / Add new Reference / select the reference to be added 'Ajax' / OK. Now in code behind : using Ajax;
and that's all
then you can use all the Ajax resources, easy uh?
I need some help with Visual C++ Really Basic Question?
I need to know the very easiest thing and simplest thing possible, which is simply:
when you have a file in C++, and a command prompt window open, what do you type into the command prompt in order to navigate to that file that the C++ file is in?
For example, my file is called "mlpmain.cpp", and the folder that that file is in is called "Neuro"
I did it last year and cannot for the life of me remember - but I would be so massively grateful for this tiny bit of info - it's so important!
I need some help with Visual C++ Really Basic Question?
windows or unix?
windows:
"dir" will list out the dirs/files in your current directory
"cd" will change directories
"cd neuro" would get you into that directory you want.
unix:
"ls" same as dir in windows
also in unix, you could run this command "find / -name mlpmain.cpp" and it will tell you where its at.
Reply:cd \Neuro
Also try:
Help CD
when you have a file in C++, and a command prompt window open, what do you type into the command prompt in order to navigate to that file that the C++ file is in?
For example, my file is called "mlpmain.cpp", and the folder that that file is in is called "Neuro"
I did it last year and cannot for the life of me remember - but I would be so massively grateful for this tiny bit of info - it's so important!
I need some help with Visual C++ Really Basic Question?
windows or unix?
windows:
"dir" will list out the dirs/files in your current directory
"cd" will change directories
"cd neuro" would get you into that directory you want.
unix:
"ls" same as dir in windows
also in unix, you could run this command "find / -name mlpmain.cpp" and it will tell you where its at.
Reply:cd \Neuro
Also try:
Help CD
Where can I find examples of Terms of Service or Standard T&C's for sale of Computers?
Where can I find examples of Terms of Service or Standard T%26amp;C's for sale of Computers? I'm a reseller of PC and other electronics. I'm finding that I must cover myself on returns or defective products. I'm looking for templates or good examples.
Where can I find examples of Terms of Service or Standard T%26amp;C's for sale of Computers?
Easiest way, check out your competitors. They will have those forms readily on hand. Just have an attorney modify it for your needs.
Reply:A similar company or firm like yours can help you to get it.
Where can I find examples of Terms of Service or Standard T%26amp;C's for sale of Computers?
Easiest way, check out your competitors. They will have those forms readily on hand. Just have an attorney modify it for your needs.
Reply:A similar company or firm like yours can help you to get it.
Best sources/tutorials/examples/for... for C# and .Net on the web?
Thanks!
Best sources/tutorials/examples/for... for C# and .Net on the web?
I like the following:
http://www.codeproject.com
http://www.gotdotnet.com
http://www.asp.net
http://www.windowsforms.net
Reply:most help online comes from newsgroups and discussion boards.
You can do a search for the specific task you want to learn about and just include the word tutorials with your search.
For example, if you want to learn more about delegates do a search for: "C# delegate tutorial"
If you need help with a specific topic feel free to email me and I'll do what I can to point you in the right direction.
Reply:books are best, try barnes %26amp; nobles.
Reply:MSDN has everything you need
floral design
Best sources/tutorials/examples/for... for C# and .Net on the web?
I like the following:
http://www.codeproject.com
http://www.gotdotnet.com
http://www.asp.net
http://www.windowsforms.net
Reply:most help online comes from newsgroups and discussion boards.
You can do a search for the specific task you want to learn about and just include the word tutorials with your search.
For example, if you want to learn more about delegates do a search for: "C# delegate tutorial"
If you need help with a specific topic feel free to email me and I'll do what I can to point you in the right direction.
Reply:books are best, try barnes %26amp; nobles.
Reply:MSDN has everything you need
floral design
C++ switch/case???
can someone please explain how switch/case works in c++ and give an easy example? im a beginner
C++ switch/case???
The previous example by ale8oneboy is good. I just wanted to say a couple things. First his example has a "default" statement at the end of the switch. This is used to catch any anything that is not caught by other cases. It is often used as a way to catch an error.
Next, you have to notice that he has a 'break' command. The break command tells the program that the things needed to do in this case are complete. Without it, it would do the actions for the cases below it, until it hit a 'break' command or it go to the end of the switch. For example, if he were to take out the break in case 1 and the user entered 1 as the input, then the output would be REDBLUE. However, if the user entered 2, then it would print BLUE as expected. This is a common place to find a problem when debugging. However, this is also useful if you want to save lines of code when many cases do the same thing. for example,
case 'A':
case 'B':
case 'C':
doFunction();
break;
is the same as
case 'A':
doFunction();
break;
case 'B':
doFunction();
break;
case 'C':
doFunction();
break;
Reply:Switch case is pretty simple. Switch case is used in place of IF...Then statements in the event there is more then 2 or more possible values for a variable.
//Example: User inputs color 1=Red 2=Blue, 3=Green
int color %26lt;%26lt; cint;
switch (color ) {
case 1 :
cout %26gt;%26gt; "RED";
break;
case 2 :
cout %26gt;%26gt; "BLUE";
break;
case 3 :
cout %26gt;%26gt; "GREEN";
break;
default :
cout %26gt;%26gt; "UNKNOWN COLOR";
...
}
C++ switch/case???
The previous example by ale8oneboy is good. I just wanted to say a couple things. First his example has a "default" statement at the end of the switch. This is used to catch any anything that is not caught by other cases. It is often used as a way to catch an error.
Next, you have to notice that he has a 'break' command. The break command tells the program that the things needed to do in this case are complete. Without it, it would do the actions for the cases below it, until it hit a 'break' command or it go to the end of the switch. For example, if he were to take out the break in case 1 and the user entered 1 as the input, then the output would be REDBLUE. However, if the user entered 2, then it would print BLUE as expected. This is a common place to find a problem when debugging. However, this is also useful if you want to save lines of code when many cases do the same thing. for example,
case 'A':
case 'B':
case 'C':
doFunction();
break;
is the same as
case 'A':
doFunction();
break;
case 'B':
doFunction();
break;
case 'C':
doFunction();
break;
Reply:Switch case is pretty simple. Switch case is used in place of IF...Then statements in the event there is more then 2 or more possible values for a variable.
//Example: User inputs color 1=Red 2=Blue, 3=Green
int color %26lt;%26lt; cint;
switch (color ) {
case 1 :
cout %26gt;%26gt; "RED";
break;
case 2 :
cout %26gt;%26gt; "BLUE";
break;
case 3 :
cout %26gt;%26gt; "GREEN";
break;
default :
cout %26gt;%26gt; "UNKNOWN COLOR";
...
}
C language built-in functions?
can anyone suggest a good site where i can find a list of different built-in function in c language??? (preferably with an example for each)
tnx in advance...
C language built-in functions?
By "built-in" you're probably referring to the standard C libraries. This site will probably help:
http://www-ccs.ucsd.edu/c/
It lists every function/macro by header file, and provides a concise explanation of each. It doesn't have examples for each function, but it still seems like an excellent reference.
Reply:One place to start may be Wikibooks. Most functions in C are usually written by the programmer, but if by built in functions you mean 'printf', or 'scanf' there should be quite a few examples on the internet. there should be a list of what is contained in the standard libraries such as stdio.h or math.h etc.
tnx in advance...
C language built-in functions?
By "built-in" you're probably referring to the standard C libraries. This site will probably help:
http://www-ccs.ucsd.edu/c/
It lists every function/macro by header file, and provides a concise explanation of each. It doesn't have examples for each function, but it still seems like an excellent reference.
Reply:One place to start may be Wikibooks. Most functions in C are usually written by the programmer, but if by built in functions you mean 'printf', or 'scanf' there should be quite a few examples on the internet. there should be a list of what is contained in the standard libraries such as stdio.h or math.h etc.
How can i use excel macros to compare two rows with same a/c number but having different balance?
for example row 1 first cell got a./c number cell 2 got the balance and row 2 first cell got same a/c number and cell 2 got the different balance of lets say different day. how can i align/sort the excel sheet to have the same a/c number at different row (cell one contains a/c number and cell 2 and 3 contains the balances of that a/c in different days for example? show me :)
How can i use excel macros to compare two rows with same a/c number but having different balance?
Sounds like you could use a pivot table. I made a macro to create one... based on sheet1, columns A=a/c number, B=date, C=balance. New table created in sheet 2
Sub createpivottable()
ActiveWorkbook.PivotCaches.Add(SourceTyp... SourceData:= _
"Sheet1!R1C1:R8C3").createpivottable TableDestination:=Range("A3"), _
TableName:="PivotTable2"
ActiveSheet.PivotTables("PivotTable2").S... = False
With ActiveSheet.PivotTables("PivotTable2").P... number")
.Orientation = xlRowField
.Position = 1
End With
With ActiveSheet.PivotTables("PivotTable2").P...
.Orientation = xlColumnField
.Position = 1
End With
With ActiveSheet.PivotTables("PivotTable2").P...
.Orientation = xlDataField
.Position = 1
End With
Application.CommandBars("PivotTable").Vi... = False
End Sub
OR you can just open a new sheet, go to data on menu bar, pivot table report, then follow the wizard to build one for you.
that's the easiest thing.
But if this is for a class, here's an idea of where to start...
first find duplicate values in a/c number column...
here's a tutorial on finding duplicate values in excel columns: http://office.microsoft.com/en-us/excel/...
Good luck!
How can i use excel macros to compare two rows with same a/c number but having different balance?
Sounds like you could use a pivot table. I made a macro to create one... based on sheet1, columns A=a/c number, B=date, C=balance. New table created in sheet 2
Sub createpivottable()
ActiveWorkbook.PivotCaches.Add(SourceTyp... SourceData:= _
"Sheet1!R1C1:R8C3").createpivottable TableDestination:=Range("A3"), _
TableName:="PivotTable2"
ActiveSheet.PivotTables("PivotTable2").S... = False
With ActiveSheet.PivotTables("PivotTable2").P... number")
.Orientation = xlRowField
.Position = 1
End With
With ActiveSheet.PivotTables("PivotTable2").P...
.Orientation = xlColumnField
.Position = 1
End With
With ActiveSheet.PivotTables("PivotTable2").P...
.Orientation = xlDataField
.Position = 1
End With
Application.CommandBars("PivotTable").Vi... = False
End Sub
OR you can just open a new sheet, go to data on menu bar, pivot table report, then follow the wizard to build one for you.
that's the easiest thing.
But if this is for a class, here's an idea of where to start...
first find duplicate values in a/c number column...
here's a tutorial on finding duplicate values in excel columns: http://office.microsoft.com/en-us/excel/...
Good luck!
Can you tell me what is the difference between abstract class and concrete class in C++?
and could you give me the example of concrete class c++ coding?
Can you tell me what is the difference between abstract class and concrete class in C++?
When member functions are defined inside the class definition, then it is called complete class. Otherwise when only declaration of member fuction is given inside the class definition, then it is called abstract class.
chelsea flower show
Can you tell me what is the difference between abstract class and concrete class in C++?
When member functions are defined inside the class definition, then it is called complete class. Otherwise when only declaration of member fuction is given inside the class definition, then it is called abstract class.
chelsea flower show
C++: Converting unsigned int to int?
I want to perform a little calculation using a length of a string in C++. Im new to this. :(
Example:
string myString = "Hello";
int myCalc;
myCalc = 100-(myString.Length); // is this correct? I want to minus string's length from 100.
But it gives compile error: "error C2440: 'type cast' : cannot convert from 'unsigned int (__thiscall std::basic_string%26lt;char,struct std::char_traits%26lt;char%26gt;,class std::allocator%26lt;char%26gt; %26gt;::*' to 'int'
Conversion is a valid standard conversion, which can be performed implicitly or by use of static_cast, C-style cast or function-style cast"
I tried casting with "int(myString.Length)" but it doesnt work. :(
Please help me out.
C++: Converting unsigned int to int?
length in standard C++ is a function. You need to call it using myString.length()
There shouldn't be a problem putting an unsigned int into an int variable. The compiler is probably complaining that you're trying to convert a function (length) into an int, since you left out the parentheses.
Reply:thanx others too! Report It
Reply:I haven't learned C++ yet( opertune word there is yet) but in Visual Basic when you want to utilize a Str varialble and a Int variable you must declare them seperately and then use the
Val() option to translate. this will allow you to set arguments for converting string varialbes to integer or vise versa.
example intcalc = Val(strCalc)
dont know if that works or if it is even support in C++ but it never hurts to take a look.
Reply:try making myCalc unsigned...
unsigned int myCalc...might work!
Additional details(added later on)
man o man
1) there is nothing that is Length it is length (C++ is case sensitive)
2) it is function so correct call would be myString.length()
then it runs on gcc compiler
best of luck!
Reply:C++ I managed to avoid thus far, but I think AM post's is correct. Make myCalc an unsigned int.
I don't know how many bytes an int type in C++ is, but for the sake of illustration, lets say it is 1 byte.
An unsigned int can take on the values 0..255
Int can be -128..0..127.
Obviously you cannot stuff an insigned int into an int. The type cast can't help you because you run into the same problem. It can't map the silly things.
-Dio
Reply:You want to cast using "(unsigned int)", like this:
myCalc = 100-(unsigned int) (myString.Length);
Now, if you change the declaration of myCalc to
unsigned int myCalc;
you could avoid the whole issue. However, if the string length is greater than 100, you'll get a very large number as a result, which could be bad.
Example:
string myString = "Hello";
int myCalc;
myCalc = 100-(myString.Length); // is this correct? I want to minus string's length from 100.
But it gives compile error: "error C2440: 'type cast' : cannot convert from 'unsigned int (__thiscall std::basic_string%26lt;char,struct std::char_traits%26lt;char%26gt;,class std::allocator%26lt;char%26gt; %26gt;::*' to 'int'
Conversion is a valid standard conversion, which can be performed implicitly or by use of static_cast, C-style cast or function-style cast"
I tried casting with "int(myString.Length)" but it doesnt work. :(
Please help me out.
C++: Converting unsigned int to int?
length in standard C++ is a function. You need to call it using myString.length()
There shouldn't be a problem putting an unsigned int into an int variable. The compiler is probably complaining that you're trying to convert a function (length) into an int, since you left out the parentheses.
Reply:thanx others too! Report It
Reply:I haven't learned C++ yet( opertune word there is yet) but in Visual Basic when you want to utilize a Str varialble and a Int variable you must declare them seperately and then use the
Val() option to translate. this will allow you to set arguments for converting string varialbes to integer or vise versa.
example intcalc = Val(strCalc)
dont know if that works or if it is even support in C++ but it never hurts to take a look.
Reply:try making myCalc unsigned...
unsigned int myCalc...might work!
Additional details(added later on)
man o man
1) there is nothing that is Length it is length (C++ is case sensitive)
2) it is function so correct call would be myString.length()
then it runs on gcc compiler
best of luck!
Reply:C++ I managed to avoid thus far, but I think AM post's is correct. Make myCalc an unsigned int.
I don't know how many bytes an int type in C++ is, but for the sake of illustration, lets say it is 1 byte.
An unsigned int can take on the values 0..255
Int can be -128..0..127.
Obviously you cannot stuff an insigned int into an int. The type cast can't help you because you run into the same problem. It can't map the silly things.
-Dio
Reply:You want to cast using "(unsigned int)", like this:
myCalc = 100-(unsigned int) (myString.Length);
Now, if you change the declaration of myCalc to
unsigned int myCalc;
you could avoid the whole issue. However, if the string length is greater than 100, you'll get a very large number as a result, which could be bad.
What are examples of media w/c are sterilized by the ff methods: boiling, autoclave, inspissator & filtration?
this is regards to preparation of culture media. please give at least one example for each method, thanks!
What are examples of media w/c are sterilized by the ff methods: boiling, autoclave, inspissator %26amp; filtration?
Microrganisms need nutrients, a source of energy and certain environmental conditions in order to grow and reproduce. In the environment, microbes have adapted to the habitats most suitable for their needs, in the laboratory, however, these requirements must be met by a culture medium. This is basically an aqueous solution to which all the necessary nutrients have been added. Depending on the type and combination of nutrients, different categories of media can be made.
This is a huge topic to be covered. So, please use this website for reference and research:
http://www.sigmaaldrich.com/Area_of_Inte...
What are examples of media w/c are sterilized by the ff methods: boiling, autoclave, inspissator %26amp; filtration?
Microrganisms need nutrients, a source of energy and certain environmental conditions in order to grow and reproduce. In the environment, microbes have adapted to the habitats most suitable for their needs, in the laboratory, however, these requirements must be met by a culture medium. This is basically an aqueous solution to which all the necessary nutrients have been added. Depending on the type and combination of nutrients, different categories of media can be made.
This is a huge topic to be covered. So, please use this website for reference and research:
http://www.sigmaaldrich.com/Area_of_Inte...
Free examples about programming in c for 8051 microcontroller?
i want to learn how i write a program in c for 8051
Free examples about programming in c for 8051 microcontroller?
Try "Paul's 8051 Tools, Projects and Free Code"
http://www.pjrc.com/tech/8051/
And here's a pdf for you "Programming and Interfacing the 8051 Microcontroller in C and Assembly"
http://www.rigelcorp.com/__doc/8051/P%26amp;IC...
Good Luck!
Free examples about programming in c for 8051 microcontroller?
Try "Paul's 8051 Tools, Projects and Free Code"
http://www.pjrc.com/tech/8051/
And here's a pdf for you "Programming and Interfacing the 8051 Microcontroller in C and Assembly"
http://www.rigelcorp.com/__doc/8051/P%26amp;IC...
Good Luck!
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
Can anyone one help me?...i need your help very badly..example: a program w/c have a menu and ask user if wat is his choice....
or it plays a guessing game..or a program with any games..
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
the moment u mentioned a program that have a menu, i remembered an old exercise our prof. gave us about building a calculator in C.. it had to be like: make a menu that gives u options for which calculation operation u want (+ - * / ...), then enter ur first number then second number, and here u go with the result..
about a guessing game, try that the software creates a random integer number between 0 and 100.. u ll have to guess it, after each guess the computer tells u if it has to be higher, lower, or if it is the right answer..
happy coding :)
apple
or it plays a guessing game..or a program with any games..
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
the moment u mentioned a program that have a menu, i remembered an old exercise our prof. gave us about building a calculator in C.. it had to be like: make a menu that gives u options for which calculation operation u want (+ - * / ...), then enter ur first number then second number, and here u go with the result..
about a guessing game, try that the software creates a random integer number between 0 and 100.. u ll have to guess it, after each guess the computer tells u if it has to be higher, lower, or if it is the right answer..
happy coding :)
apple
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
Can anyone one help me?...i need your help very badly..example: a program w/c have a menu and ask user if wat is his choice....
or it plays a guessing game..or a program with any games..
I need the codes...kindly help me
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
i just answered it in ur last question, i ll copy paste it here:
"
the moment u mentioned a program that have a menu, i remembered an old exercise our prof. gave us about building a calculator in C.. it had to be like: make a menu that gives u options for which calculation operation u want (+ - * / ...), then enter ur first number then second number, and here u go with the result..
about a guessing game, try that the software creates a random integer number between 0 and 100.. u ll have to guess it, after each guess the computer tells u if it has to be higher, lower, or if it is the right answer..
happy coding :)
"
or it plays a guessing game..or a program with any games..
I need the codes...kindly help me
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
i just answered it in ur last question, i ll copy paste it here:
"
the moment u mentioned a program that have a menu, i remembered an old exercise our prof. gave us about building a calculator in C.. it had to be like: make a menu that gives u options for which calculation operation u want (+ - * / ...), then enter ur first number then second number, and here u go with the result..
about a guessing game, try that the software creates a random integer number between 0 and 100.. u ll have to guess it, after each guess the computer tells u if it has to be higher, lower, or if it is the right answer..
happy coding :)
"
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
Can anyone one help me?...i need your help very badly..example: a program w/c have a menu and ask user if wat is his choice....
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
#include %26lt;iostream.h%26gt;
int main(void){
char ch="";
while (ch!='2'){
cout%26lt;%26lt;"Press 1 to print hello world, press 2 to quit ";
cin%26gt;%26gt;ch;
if (ch=='1') cout%26lt;%26lt;"hello world".%26lt;%26lt;endl;
}
return 0;
}
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
#include %26lt;iostream.h%26gt;
int main(void){
char ch="";
while (ch!='2'){
cout%26lt;%26lt;"Press 1 to print hello world, press 2 to quit ";
cin%26gt;%26gt;ch;
if (ch=='1') cout%26lt;%26lt;"hello world".%26lt;%26lt;endl;
}
return 0;
}
Differentiate between c nd c++?
differentiate between c nd c++
use of ::(scope resolution operator)
what kind of projects are suitable for c and c++
what is a class? example
Differentiate between c nd c++?
O_o... this sounds like a homework question. And such I won't give you clear answers. I will give you an overview and suggest that you visit www.wikipedia.org and search for C Programming and C++ Programming.
C is a procedural language thats considered C++ predecessor.
C++ was considered the extension to C by adding Object Oriented Programming/Design to the language.
:: is used When you need to access or define a part of a class.
Reply:C++ is a superset of C. It is object oriented. It has all of the capabilities of C, plus it allows you to use polymorphism and inheritance.
This link can provide you with a lot more detail
http://unthought.net/c++/c_vs_c++.html
Reply:Do your own homework.
use of ::(scope resolution operator)
what kind of projects are suitable for c and c++
what is a class? example
Differentiate between c nd c++?
O_o... this sounds like a homework question. And such I won't give you clear answers. I will give you an overview and suggest that you visit www.wikipedia.org and search for C Programming and C++ Programming.
C is a procedural language thats considered C++ predecessor.
C++ was considered the extension to C by adding Object Oriented Programming/Design to the language.
:: is used When you need to access or define a part of a class.
Reply:C++ is a superset of C. It is object oriented. It has all of the capabilities of C, plus it allows you to use polymorphism and inheritance.
This link can provide you with a lot more detail
http://unthought.net/c++/c_vs_c++.html
Reply:Do your own homework.
Boiling points and freezing points are examples of a. physical properties b. matter c. chemical properties-->
Boiling points and freezing points are examples of?
a. physical properties
b. matter
c. chemical properties
d. energy
first person 2 answer this correctly gets 10 points
Boiling points and freezing points are examples of a. physical properties b. matter c. chemical properties--%26gt;
a
Reply:a physical properties
augustifolia
a. physical properties
b. matter
c. chemical properties
d. energy
first person 2 answer this correctly gets 10 points
Boiling points and freezing points are examples of a. physical properties b. matter c. chemical properties--%26gt;
a
Reply:a physical properties
augustifolia
Anyone miss the OLD Lleyton Hewitt. The intense, "C'mon" player days that seems far behind him.?
The last time I saw Hewitt as the player he used to be was when he was in the Finals in the Australian. Since then he has retreated back to his thin, less muscular physique, lost him intensity, and has had a string of less then common injuries. (falling down the stairs and breaking his ribs for example). He rarely says c'mon anymore and has really lost his fire that made him so great. Does anyone else agree?
Anyone miss the OLD Lleyton Hewitt. The intense, "C'mon" player days that seems far behind him.?
Yes. I agree. He seems to still have most of the skill he used to have, but something else is missing - likely the intensity. Watching him at Wimbledon made me long for the days when he could have challenged Federer, because I am sick of Roger winning all the time in London.
Reply:Well he's getting older and he has kids he have to retire soon because he will have to take care of his kids and the fact that hes older O_o
Reply:He has been gone for quite sometime. Part of it is, as you
mention he's getting old...married...kids....He has also lost
focus of the game and when you loose many matches, you
have a loosing tendency to be beaten even by lower ranked
players.
No more fun watching him these days....
Anyone miss the OLD Lleyton Hewitt. The intense, "C'mon" player days that seems far behind him.?
Yes. I agree. He seems to still have most of the skill he used to have, but something else is missing - likely the intensity. Watching him at Wimbledon made me long for the days when he could have challenged Federer, because I am sick of Roger winning all the time in London.
Reply:Well he's getting older and he has kids he have to retire soon because he will have to take care of his kids and the fact that hes older O_o
Reply:He has been gone for quite sometime. Part of it is, as you
mention he's getting old...married...kids....He has also lost
focus of the game and when you loose many matches, you
have a loosing tendency to be beaten even by lower ranked
players.
No more fun watching him these days....
* 2- guys* Why r u turned on when you c 2 gurls kissing or something?
4- example when us gurls c 2 guys kissing we think they r gay. when you guys c gurls kissing they are turned on, don't u think they r lesbian or something. Why?
* 2- guys* Why r u turned on when you c 2 gurls kissing or something?
You mean besides the fact that it's crazy sexy?
Reply:because we always hope we can join in.
Reply:Because two good looking women making out is hot. And if you asked 100 men like 90 of them would say it's their fantasy to have two women in bed at the same time.
Reply:Im a guy and i've never understood why any guy would be turned on by that.Im repulsed by it.
Reply:Im sorry you dont have one single guy friend who can actually explain this to you. Its quite simple actually. Guys are turned on by very simple things that women do, they cud make out with a stuffed animal and it could be hot, well imagine two women making out with a stuffed animal, alright hotter right? well two women making out with each other, oh damn. Its considered hot and turns guys on because they think of themselves in the middle of that, or possibly one of the two. Its a programmed in fantasy to have more than one woman. Not sure why but I havent argued yet.
Reply:it makes my package get stiff
Reply:I have no idea.
But when I saw these two hott gals, hands clapsed, face-to-face, giggling like schoolgirls, I thought it was hott!
* 2- guys* Why r u turned on when you c 2 gurls kissing or something?
You mean besides the fact that it's crazy sexy?
Reply:because we always hope we can join in.
Reply:Because two good looking women making out is hot. And if you asked 100 men like 90 of them would say it's their fantasy to have two women in bed at the same time.
Reply:Im a guy and i've never understood why any guy would be turned on by that.Im repulsed by it.
Reply:Im sorry you dont have one single guy friend who can actually explain this to you. Its quite simple actually. Guys are turned on by very simple things that women do, they cud make out with a stuffed animal and it could be hot, well imagine two women making out with a stuffed animal, alright hotter right? well two women making out with each other, oh damn. Its considered hot and turns guys on because they think of themselves in the middle of that, or possibly one of the two. Its a programmed in fantasy to have more than one woman. Not sure why but I havent argued yet.
Reply:it makes my package get stiff
Reply:I have no idea.
But when I saw these two hott gals, hands clapsed, face-to-face, giggling like schoolgirls, I thought it was hott!
Give an example of a linear transformation T: V --> V which is one-to-one but not onto.?
Define V and T clearly, and justify your choice.
I know the integral is an example of this but I'm looking for a clear, simple explanation. My attempt so far is to say that T= integral from o to x f(t) dt and that V could be polynomials of degree 2 for example. Then it is one to one because each poly in this space will have a unique integral and then I could show how it acts on the standard ordered basis {1, x, x^2} Obviously each vector in basis will have unique integral but also any vectors generated from this set. For example, each constant will have unique integral. As why its not onto, I'm less clear. I was told by classmate that because of the plus C that comes from integrating that each element in range may not have pre-image, but I don't really see it. Also, the teacher made sure to say its the DEFINITE integral so I'm not sure about the plus C.
Also, same question for example onto but not one to one. ex. derivitive. I see why not one to one but why is it onto?
Give an example of a linear transformation T: V --%26gt; V which is one-to-one but not onto.?
if V is finite dimensional, then the rank nullity theorem tells us that any injective linear transformation on V is surjective. so we need V to be infinite dimensional. consider the vector space of polynomials over the real numbers. it is infinite dimensional, with basis {1,x,x^2,...}. consider the map T:V--%26gt;V given by T(P(x)) = xP(x). you can check that this map is injective. it's also linear: if a is a real number and P,Q two polynomials in V, then T(aP) = x(aP) = a(xP) = aT(P) and T(P+Q) = x(P+Q) = xP+xQ = T(P)+T(Q). but T is not surjective because none of the constant polynomials lie in the image.
I know the integral is an example of this but I'm looking for a clear, simple explanation. My attempt so far is to say that T= integral from o to x f(t) dt and that V could be polynomials of degree 2 for example. Then it is one to one because each poly in this space will have a unique integral and then I could show how it acts on the standard ordered basis {1, x, x^2} Obviously each vector in basis will have unique integral but also any vectors generated from this set. For example, each constant will have unique integral. As why its not onto, I'm less clear. I was told by classmate that because of the plus C that comes from integrating that each element in range may not have pre-image, but I don't really see it. Also, the teacher made sure to say its the DEFINITE integral so I'm not sure about the plus C.
Also, same question for example onto but not one to one. ex. derivitive. I see why not one to one but why is it onto?
Give an example of a linear transformation T: V --%26gt; V which is one-to-one but not onto.?
if V is finite dimensional, then the rank nullity theorem tells us that any injective linear transformation on V is surjective. so we need V to be infinite dimensional. consider the vector space of polynomials over the real numbers. it is infinite dimensional, with basis {1,x,x^2,...}. consider the map T:V--%26gt;V given by T(P(x)) = xP(x). you can check that this map is injective. it's also linear: if a is a real number and P,Q two polynomials in V, then T(aP) = x(aP) = a(xP) = aT(P) and T(P+Q) = x(P+Q) = xP+xQ = T(P)+T(Q). but T is not surjective because none of the constant polynomials lie in the image.
If know C language then solve it.....?
write a program to transform its input according to a specified transformation scheme. the transformation scheme will consist of two strings: a string of character and then a string of replacement characters. the idea is that your program replaces every instance of the ith character in the initial string with the (i+3) character (of english alphabets) in the replacement string. when no substitution is defined for a character , the program just passes it through to the output unchanged. The program should inform the user of any errors in the transformation scheme. Your program should display the phrase before and after the substitutions have been made.
example : This is a C program.
string after the transformation : Wklv lv d f Surjudb.
If know C language then solve it.....?
Here is a source code i have enclosed below.Copy and paste it in a new text file and compile it.
If it is not upto your needs dont worry . Contact me at m_gopi_m@yahoo.co.in. I really like to program like this.
But time doesn't support me and i was not able to understand the question clearly. So if you want contact me and i can design new program.
Here the source begins.......
/*
Please create a new folder and place this program in it. It creates
Two text documents(first.txt and second.txt).
first.txt is a copy of the input stream.
second.txt is a copy of encryption.
repalaces ith term by i+3 terms.
Please do not use any special keys like delete,backspace etc...
If you want to change the encryption number. Change 'num' variable(int)
present at 23:14.
*/
#include%26lt;stdio.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
FILE *fp1,*fp2;
char a,b;
int num=3,i;
clrscr();
printf("\n\nEnter your message:\n%26lt;When you do so press enter%26gt;");
printf("\n%26lt;Please avoid special characters%26gt;\n\n\t");
fp1=fopen("first.txt","wt+");
while(a!=13)
{
a=getche();
if(a==0)
{
getch();
printf("\b\a");
}
else if(a==8)
{
printf("%c\a",b);
}
else
{
fputc(a,fp1);
b=a;
}
}
rewind(fp1);
fp2=fopen("second.txt","wt+");
while(a!=EOF)
{
a=fgetc(fp1);
if(a!=EOF %26amp;%26amp; a!='\0')
{
if(a!=' ')
a+=num;
fputc(a,fp2);
}
}
fclose(fp1);
rewind(fp2);
clrscr();
printf("\nThe resultant text is\n\n\t");
a=' ';
while(a!=EOF)
{
a=fgetc(fp2);
printf("%c",a);
}
gotoxy(1,22);
for(i=0;i%26lt;68;i++)
printf("%c",205);
printf("\nFor convenience the input data is saved in first.txt");
printf("\nThe encrypted data is saved in second.txt");
printf("\nPlease take a view at it.");
getch();
fclose(fp2);
}
Reply:That's not a hard task.
All we need is an array, or you can called: matrix.
In ANSCI behind every character there is a number.
For example: A-97,B-98(just assume, i dont have a manual now on hand), then you should design a number array, such as : {1,2,5,6}, then you could process the string with such method: the first charac. add the array[1], then the second add the array[2], and make a simple recycle, to let the string to add the members of array in a round turn.
Relly simple, right?
Reply:i will not write program for u.
But make an array of 26 characters.
take every character from given string and get the position no.
then add two and get the string
Do it untill all the characters completed.
And yes dont forget to skip to 1 if count increase to 26.
simple.
nobile
example : This is a C program.
string after the transformation : Wklv lv d f Surjudb.
If know C language then solve it.....?
Here is a source code i have enclosed below.Copy and paste it in a new text file and compile it.
If it is not upto your needs dont worry . Contact me at m_gopi_m@yahoo.co.in. I really like to program like this.
But time doesn't support me and i was not able to understand the question clearly. So if you want contact me and i can design new program.
Here the source begins.......
/*
Please create a new folder and place this program in it. It creates
Two text documents(first.txt and second.txt).
first.txt is a copy of the input stream.
second.txt is a copy of encryption.
repalaces ith term by i+3 terms.
Please do not use any special keys like delete,backspace etc...
If you want to change the encryption number. Change 'num' variable(int)
present at 23:14.
*/
#include%26lt;stdio.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
FILE *fp1,*fp2;
char a,b;
int num=3,i;
clrscr();
printf("\n\nEnter your message:\n%26lt;When you do so press enter%26gt;");
printf("\n%26lt;Please avoid special characters%26gt;\n\n\t");
fp1=fopen("first.txt","wt+");
while(a!=13)
{
a=getche();
if(a==0)
{
getch();
printf("\b\a");
}
else if(a==8)
{
printf("%c\a",b);
}
else
{
fputc(a,fp1);
b=a;
}
}
rewind(fp1);
fp2=fopen("second.txt","wt+");
while(a!=EOF)
{
a=fgetc(fp1);
if(a!=EOF %26amp;%26amp; a!='\0')
{
if(a!=' ')
a+=num;
fputc(a,fp2);
}
}
fclose(fp1);
rewind(fp2);
clrscr();
printf("\nThe resultant text is\n\n\t");
a=' ';
while(a!=EOF)
{
a=fgetc(fp2);
printf("%c",a);
}
gotoxy(1,22);
for(i=0;i%26lt;68;i++)
printf("%c",205);
printf("\nFor convenience the input data is saved in first.txt");
printf("\nThe encrypted data is saved in second.txt");
printf("\nPlease take a view at it.");
getch();
fclose(fp2);
}
Reply:That's not a hard task.
All we need is an array, or you can called: matrix.
In ANSCI behind every character there is a number.
For example: A-97,B-98(just assume, i dont have a manual now on hand), then you should design a number array, such as : {1,2,5,6}, then you could process the string with such method: the first charac. add the array[1], then the second add the array[2], and make a simple recycle, to let the string to add the members of array in a round turn.
Relly simple, right?
Reply:i will not write program for u.
But make an array of 26 characters.
take every character from given string and get the position no.
then add two and get the string
Do it untill all the characters completed.
And yes dont forget to skip to 1 if count increase to 26.
simple.
nobile
Where can i find example code?
Hello everybody. does anyone has an example scramble code in c++. I want to look at it and understand it cause i have a quiz next week and i will be about scramble code. I am not sure how it is, but he was saying that if you enter a word mess up the program will give you the rigth word if it can find it. Thank you for your help
Where can i find example code?
http://scrambled-c.qarchive.org/
Where can i find example code?
http://scrambled-c.qarchive.org/
How do I delete an object in c#?
I have an object I made myself, and there are many references pointing to it, for example a b and c.
if I do c = null; then it sets the reference c to be null, but objects a and b still point to the object. I want to completely destroy the object, so that a b and c both become null and the object is gone forever.
How do I do this?
How do I delete an object in c#?
Some objects have a DISPOSE method, which is supposed to free up all the resources it uses. Don't know if the simple data types have this method, though. It might be a method of the base OBJECT class which everything else inherits from. Not sure.
if I do c = null; then it sets the reference c to be null, but objects a and b still point to the object. I want to completely destroy the object, so that a b and c both become null and the object is gone forever.
How do I do this?
How do I delete an object in c#?
Some objects have a DISPOSE method, which is supposed to free up all the resources it uses. Don't know if the simple data types have this method, though. It might be a method of the base OBJECT class which everything else inherits from. Not sure.
Subscribe to:
Posts (Atom)