AllExperts > C++ 
Search      
C++
Volunteer
Answers to thousands of questions
 Home · More C++ Questions · Question Library  · Free Encyclopedia ·
More C++ Answers
Question Library

Ask a question about C++
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Zlatko
(Top Expert on this page)

Expertise
I can answer questions about C / C++ programming, software design, algorithms, and interprocess communication. I have access to Microsoft Visual Studio and gcc as my development platforms. I regret that I cannot answer questions about Turbo C/C++ graphics.

Experience
I have been developing software professionally in C and C++ for UNIX and Microsoft Windows since 1991.

Education/Credentials
I have a Bachelor of Applied Science in Computer Engineering from the University of Waterloo located in Waterloo, Ontario, Canada. I hold the IEEE Certified Software Development Professional designation and SUN Java Programmer and Java Developer credentials.

   

You are here:  Experts > Computing/Technology > C/C++ > C++

SubjectDate AskedExpert

what could be wrong with my code?11/25/2009Ralph 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/2009Ralph 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 reference11/24/2009Zlatko
  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 reference11/24/2009Zlatko
  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/2009vijayan
  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/2009Ralph 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/2009Zlatko
  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/2009Zlatko
  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 pointers11/22/2009Zlatko
  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 number11/22/2009Joseph 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 functions11/22/2009vijayan
  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/2009Ralph 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/2009Zlatko
  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/2009Zlatko
  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 number11/19/2009Joseph 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/2009Zlatko
  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 compiler11/17/2009Zlatko
  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 handling11/17/2009vijayan
  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 Problem11/16/2009Zlatko
  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 MD511/15/2009vijayan
  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 transactions11/15/2009vijayan
  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 transactions11/15/2009vijayan
  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/2009Zlatko
  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/2009Zlatko
  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 Problem11/15/2009Zlatko
  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 Problem11/15/2009Ralph 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 functions11/14/2009Joseph 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/2009Zlatko
  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/2009vijayan
  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/2009Zlatko
  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++ compilation11/13/2009Zlatko
  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/2009vijayan
  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/2009Ralph 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 error11/13/2009Zlatko
  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 fuction11/13/2009Joseph 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++ compilation11/13/2009Zlatko
  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 functions11/12/2009Zlatko
  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 functions11/12/2009Zlatko
  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 Opportunity11/11/2009Zlatko
  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.011/10/2009vijayan
  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 ...

Page:   1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10  |  Next      All


Questions by
Active Experts:
vijayanEddieZlatko
Prince M. PremnathRalph McArdellJoydeep Bhattacharya
Joseph Moore  

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.