| Subject | Date Asked | Expert |
|
| 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 ...
|
| 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 ...
|
| c++ | 11/10/2009 | Zlatko |
Q: i did nt gt frustrated.it is veri hard.i am trying veri hard to understand the program. i hv ... A: This assignment is certainly getting complicated. Here are my comments for your latest code. I have ...
|
| c++ | 11/10/2009 | Ralph McArdell |
Q: Q.Please can you tell me how to build my own library?also how can I include different functions in ... A: First thanks for mentioning the compiler you are using. 1/ Building a library: ...
|
| c++ | 11/9/2009 | Zlatko |
Q: could you pls help mi,i realli realli need your help.i'm hving a veri hard time doing it.i'm trying ... A: Please make sure you read my suggestion at the end before making changes to your code. Here are ...
|
| Programming | 11/9/2009 | Joseph Moore |
Q: can you please help me with this algorithm? "Generate random numbers between 0 and 1" I think I ... A: Michael. You are correct that you need to use the rand function. The basics of rand are pretty ...
|
| Im lost | 11/9/2009 | vijayan |
Q: I have taken an online course and thus found out for myself that im not all that good with ... A: your masterpiece has most of the things correctly done, except change #include < iostream > to ...
|
| c++ | 11/8/2009 | vijayan |
Q: could u pls help mi.i will be so greatly appericated for all the help frm u.my problem is tat i do ... A: You need to validate that the string balanceText contains a valid positive number. Write a function ...
|
| c++ | 11/8/2009 | vijayan |
Q: could u pls help mi.my onli problem is the Type.i do knw which part of the code is wrong.i dun knw y ... A: In the function Customer::setCustomer, you need to accept the CustomerType and set the member ...
|
| c++ | 11/8/2009 | Joseph Moore |
Q: could u pls help mi.my onli problem is the Type.i do knw which part of the code is wrong.i dun knw y ... A: Alissa. You are almost there, you just left out a couple of things. First, in the "setCustomer" ...
|
| C++ | 11/7/2009 | Joseph Moore |
Q: In each every programme,after pressing ctrl+F9 for compilation errors are -Unable to include ... A: Somewhere in your IDE, there should be settings to tell the compiler where the basic libraries and ...
|
| c++ | 11/7/2009 | Zlatko |
Q: could you pls help mi,i realli realli need your help.i'm hving a veri hard time doing it.i'm trying ... A: Your program does not compile. I have made corrections to the program to make it compile. The code ...
|
| computing the area of a triangle | 11/7/2009 | Zlatko |
Q: i have an assignment due on computing the are of a triangle using 3 functions...my teacher really is ... A: The toughest part of this sort of assignment is handling the user's input. You have to handle ...
|
| c++ | 11/6/2009 | Zlatko |
Q: could you pls help mi,i realli realli need your help.i'm hving a veri hard time doing it.i'm trying ... A: You've made a good start defining the types of classes you need but you are having trouble reading ...
|
| problem in c++ project | 11/3/2009 | Zlatko |
Q: i had prepared following project in c++.suppose if i enter 10 accounts than delete any account ... A: I commend you for doing so much of your assignment. I've tested all of the functions and made slight ...
|
| which language to use for developing apps | 10/31/2009 | Zlatko |
Q: I've a strong attitude towards programming, software engineering. I want to develop some cool apps ... A: That is a good question. I've never used Java professionally so I don't know how it's used in ...
|