Forum: C++ 30 Days Ago |
| Replies: 3 Views: 250 I believe you meant how to create a static vector. If you want to make a class that will have a vector, which values won't change when creating instances of the class (namely objects) then use the... |
Forum: C++ Sep 22nd, 2009 |
| Replies: 19 Views: 919 You can't do it the way you want if you convert the values to binary units.
I was thinking that maybe the assignment meant to convert a int value into a binary one... like
input 9 (int)= output... |
Forum: C++ Sep 21st, 2009 |
| Replies: 19 Views: 919 Show me where is the function and where are the fields/variables that you use to store input values.
Why don't you answer all of my questions... it's not too pleasant to re ask them, did you know... |
Forum: C++ Sep 20th, 2009 |
| Replies: 5 Views: 339 Do you mean that if i do
float give(){
return 9.44;
}
float take(float f){
return f;
}
void main(){
cout << take(give()); |
Forum: C++ Sep 20th, 2009 |
| Replies: 3 Views: 681 I believe your homework is complete. All you have to do know is put those two in one and study it well, understanding how to program. |
Forum: C++ Sep 20th, 2009 |
| Replies: 5 Views: 339 what do you mean it gets fired when x is pressed?
It shouldn't react on any key press unless it's programmed that way.
have you tried debugging?
Try checking out if all of the conversions of... |
Forum: C++ Sep 20th, 2009 |
| Replies: 6 Views: 1,547 http://richardbowles.tripod.com/cpp/projects/menu.htm
http://www.grandgent.com/tom/programming.htm
http://www-math.univ-poitiers.fr/~maavl/myprojects.html
But the best of all
www.google.com... |
Forum: C++ Sep 20th, 2009 |
| Replies: 19 Views: 919 Post your main function please, also.
Or tell us what operations you've tried before dumping output.
Also check what values those functions return: i believe some of them has to do something with... |
Forum: C++ Jan 27th, 2009 |
| Replies: 0 Views: 359 Hello, i am having a problem getting an understanding of that issue .
Can someone pls offer help? I have no idea what it means(just guessing), i do know what polymorphism is though.
I also want... |
Forum: C++ Jan 6th, 2009 |
| Replies: 8 Views: 481 Thank you.
Though this will take time , trying to learn the make thing and all else you have said. But still, thanks! |
Forum: C++ Jan 6th, 2009 |
| Replies: 8 Views: 481 Thank you, that solved it! Those where 'leftovers' from trying polymorphism adhoc. I didn't noticed!
I am running a Linux system, it has gcc ...
But it's horrible when trying to debug because i... |
Forum: C++ Jan 6th, 2009 |
| Replies: 8 Views: 481 Listen that is not serious response. What i would like to know is if my code contains errors, or is this just the 'ancient turbo c' compiler?
If the problem is in my coding then pls direct me to it.... |
Forum: C++ Jan 6th, 2009 |
| Replies: 8 Views: 481 I'm sorry, but wiping out ".h" just gives me a ton of errors.
Also, i have not been thought about the string object yet. I'm on 2nd year at the university.
Would you be so kind and offer more help... |
Forum: C++ Jan 6th, 2009 |
| Replies: 8 Views: 481 Hello,
This is the problem: I get the right function call only from the 3rd derivated class, when the other twos are called are not.
Source :
#include<iostream.h>
#include<conio.h>... |
Forum: C++ Jun 23rd, 2008 |
| Replies: 4 Views: 5,538 try
while(getc(pFile)!='\n'); //but not ' '(space)
But if you want to store the strings in a 2d array:
//allocate space
2Darray=(char **)calloc(100,sizeof(char *));
for(i=0;i<100;i++)... |
Forum: C++ Jun 16th, 2008 |
| Replies: 3 Views: 542 Ok, i actually just talked with me profesor and he said that i should use 2 difrent algorithms:
1. First and Follow
2. Matrix of predictive analisys (or smthing like that).
Any ideias of what... |
Forum: C++ Jun 16th, 2008 |
| Replies: 3 Views: 542 My problem is that i can not understand what do they mean by "The application of mathematical algorithms analisys for solving the 'perl calculus' problem".
the perl calculus problem sounds like... |