| Subject | Date Asked | Expert |
|
| what could be wrong with my code? | 11/25/2009 | Ralph McArdell |
Q: please, when i compile and run this code, it crashes. i am guessing it has to do with with my ... A: First please take the time to write out your question(s) to me in an understandable fashion - I try ...
|
| what could be wrong with my code? | 11/25/2009 | Ralph McArdell |
Q: please, when i compile and run this code, it crashes. i am guessing it has to do with with my ... A: Wow! Nice to see someone actually using their brain. So let us run through your examples and what ...
|
| Passing values by reference | 11/24/2009 | Zlatko |
Q: My program is almost finished ,but I am confused on how to pass values by reference through ... A: When you write a program, you should compile often. Every time you finish a function, or a major ...
|
| Passing values by reference | 11/24/2009 | Zlatko |
Q: My program is almost finished ,but I am confused on how to pass values by reference through ... A: Your syntax for passing by reference is correct. You use an ampersand in the function declaration. ...
|
| what could be wrong with my code? | 11/24/2009 | vijayan |
Q: please, when i compile and run this code, it crashes. i am guessing it has to do with with my ... A: Yes, it has to do with the constructor. In this code fragment, char *str; ...
|
| what could be wrong with my code? | 11/24/2009 | Ralph McArdell |
Q: please, when i compile and run this code, it crashes. i am guessing it has to do with with my ... A: Yes it is: char *str; sscanf(str, "%d%*c%d%*c%d", &month, &day,&year); Here are ...
|
| c++ | 11/24/2009 | Zlatko |
Q: i hv done the changes,nt sure is right or wrong.but wen i compile it display nthing.nt sure which ... A: Look closely at the code and think about what the program is doing here //-- Read file of words ...
|
| c++ | 11/23/2009 | Zlatko |
Q: could u pls help mi.i realli hv no idea on hw to start.i hope u could guide mi on tis program.i will ... A: I think the common words are supposed to be ignored, just like numbers and punctuation. So, you need ...
|
| doubt in pointers | 11/22/2009 | Zlatko |
Q: i am basically reading a txt file and making a link list database. i read all the elements in the ... A: I will need to see your program before I can help you. I cannot tell what can be wrong from your ...
|
| random number | 11/22/2009 | Joseph Moore |
Q: i have a problem, i have made a dice game witch picks a random number. but the random number only ... A: Mathias. I think perhaps you are confused about exactly what seeding the random number generator ...
|
| freind functions | 11/22/2009 | vijayan |
Q: i have some basic doubt. i have seen some example programms on operator overloading. why operator ... A: > can you tell if there is any relation of operator overloading and freind functions? Overloading ...
|
| usb input/output in c and c++ is there any way? | 11/22/2009 | Ralph McArdell |
Q: sir, this is venkatesh and i am an engineering computer student.i like to know if there is any way ... A: The answer is yes - probably. It depends on what sort of system you are using. Most modern desktop / ...
|
| c++ | 11/22/2009 | Zlatko |
Q: could u pls help mi.i realli hv no idea on hw to start.i hope u could guide mi on tis program.i will ... A: Your choice of a map for the STL container was excellent. You need to add a function to convert a ...
|
| c++ | 11/19/2009 | Zlatko |
Q: ! what is the code in c++ for finding square root of a number without using the function sqrt() in ... A: Edit: When I was a student, I learned the Newton's method for finding the roots of an function. The ...
|
| random number | 11/19/2009 | Joseph Moore |
Q: i have a problem, i have made a dice game witch picks a random number. but the random number only ... A: Mathias. It is desirable that the random number generator is seeded with the time value. What I ...
|
| c++ | 11/18/2009 | Zlatko |
Q: could u pls help mi.i realli hv no idea on hw to start.i hope u could guide mi on tis program.i will ... A: Do you have a sister named Lisa ? I'll help you but I don't have too much time at the moment. What ...
|
| where can i f ind information for my compiler | 11/17/2009 | Zlatko |
Q: please, i am currently using a dev c++ compiler but often times, i have read about statements like ... A: I believe that DevC++ is an IDE which uses the MinGW port of the GCC compiler. The gcc web page is ...
|
| C++ file handling | 11/17/2009 | vijayan |
Q: e keyword) stored in one file with the program stored into another file .But the probelm is that i ... A: These are not standard c++ headers #include<stdio.h> #include<conio.h> #include<process.h> ...
|
| Sorting and Searching Array Problem | 11/16/2009 | Zlatko |
Q: My name is Ernest. I am trying to teach myself C++. I am currently working on a C++ problem that I ... A: I'm not sure I understand the problem, especially since you did not have processing of student names ...
|
| vectorized MD5 | 11/15/2009 | vijayan |
Q: I wasn't sure if I needed to message you before you could message me for the last question. And I ... A: I haven't looked into it as yet. I was under the (perhaps mistaken) impression that it was not ...
|
| A question about bank transactions | 11/15/2009 | vijayan |
Q: first of all I would like to apologise that I am writing to you a private message. But I believe ... A: Yes, that should be fine. One issue that you may want to address is that of concurrency - if many ...
|
| A question about bank transactions | 11/15/2009 | vijayan |
Q: first of all I would like to apologise that I am writing to you a private message. But I believe ... A: The structure of your client code is: 1. create a socket => sock = socket( AF_UNIX, SOCK_STREAM, 0 ...
|
| c++ | 11/15/2009 | Zlatko |
Q: could u pls help mi.i realli realli need alot of help frm u.i still cn't seems to do the interest ... A: Lisa, you should only display the account if the account's customer ID is the same as the customer ...
|
| c++ | 11/15/2009 | Zlatko |
Q: could u pls help mi.i realli realli need alot of help frm u.i still cn't seems to do the interest ... A: If I understand correctly, for each customer, you have to print out the accounts and investments ...
|
| Sorting and Searching Array Problem | 11/15/2009 | Zlatko |
Q: My name is Ernest. I am trying to teach myself C++. I am currently working on a C++ problem that I ... A: I really appreciate you making an attempt at solving the problem. It shows you are serious, and have ...
|
| Searching and Sorting Array Problem | 11/15/2009 | Ralph McArdell |
Q: My name is Ernest. I am trying to teach myself C++. I am currently working on a C++ problem that I ... A: [Note: I am not going to show too much C++ code here as I am sure you notice I do not write code for ...
|
| arrays and functions | 11/14/2009 | Joseph Moore |
Q: i have an assignment due for my programming class. The assignments was to write a program using 2 ... A: Christopher. There are several ways to write a function to compare data in two arrays. The best ...
|
| what could be wrong with my code? | 11/14/2009 | Zlatko |
Q: i am not sure but could it be that i already deleted the memory to store the object cuz i cant ... A: Yes, you are freeing memory when you don't want to. When you call int neg(dyna ob) { return ...
|
| what is wrong with this? | 11/14/2009 | vijayan |
Q: i am not sure but could it be that i already deleted the memory to store the object cuz i cant ... A: The function int neg(dyna ob) takes its parameter by value, it gets a copy of the ...
|
| c++ | 11/14/2009 | Zlatko |
Q: could u pls help mi.i realli realli need alot of help frm u.i still cn't seems to do the interest ... A: Lisa, where you have //////////////////////////////////////////////////////// // Print out ...
|
| GCC vs MSVC++ compilation | 11/13/2009 | Zlatko |
Q: I am about to lose my mind and hoping you can prevent it. Background: As part of a much-too-low ... A: I'm glad I could help. I'll address your questions. 1) File scope: The vector rundata was ...
|
| what is the difference between this two? | 11/13/2009 | vijayan |
Q: please, here is a working code that displays the binary bit pattern, byte by byte using a union. ... A: here is a working code that displays the binary bit pattern, byte by byte using a union. Well, the ...
|
| what is the difference between this two? | 11/13/2009 | Ralph McArdell |
Q: please, here is a working code that displays the binary bit pattern, byte by byte using a union. ... A: The answer is almost certainly due to a fundamental difference between union types and struct or ...
|
| Graphics initialising error | 11/13/2009 | Zlatko |
Q: Sir,I am using Turbo c++. While running the graphics programs I am getting BGI error as "graphics ... A: Perhaps you are not calling initgraph correctly. initgraph(&gd,&gm,"..//bgi"); The // indicates a ...
|
| c fuction | 11/13/2009 | Joseph Moore |
Q: sir when i make program of any function in c i found error "function should have a prototype" i work ... A: Ashutosh. A function prototype is simply the line that defines the function and its parameters. ...
|
| GCC vs MSVC++ compilation | 11/13/2009 | Zlatko |
Q: I am about to lose my mind and hoping you can prevent it. Background: As part of a much-too-low ... A: Hang on to your mind. When you're dealing with this quantity of data, you should stay away from the ...
|
| c++ switch, and functions | 11/12/2009 | Zlatko |
Q: My syntax for the switch statement looks correct but I get case 2, 3, ... label not in switch ... A: Chris, if you consider a word to be characters delimited by spaces, then this function will do what ...
|
| c++ switch, and functions | 11/12/2009 | Zlatko |
Q: My syntax for the switch statement looks correct but I get case 2, 3, ... label not in switch ... A: Chris, I corrected the syntax errors. My comments start with //--- I did not check any logic. I'm ...
|
| Career Opportunity | 11/11/2009 | Zlatko |
Q: I've almost finished my first year at university and I want to know if I should try find an ... A: I think getting practical experience is an excellent idea. It gives you a chance to learn, and to ...
|
| RichEdit 5.0 | 11/10/2009 | vijayan |
Q: I have a programmer who is developing a C++ for me and is doing it in an older version of RichEdit ... A: The versions of Rich Edit included in the Microsoft Windows distribution are freely reusable; their ...
|