C++ Questions


C++ Question on Char*.
Look at the code below: #include “stdafx.h” #include “conio.h” int _tmain(int argc, _TCHAR* argv[]) { //Snippet 1 char name[20] = "Some Name"; printf("%sn", name); name[1] = 'a'; printf("%sn", name); //Snippet 2 char * name2 = "Some Name"; printf("%sn", name2); name2[1] = 'a';                 //==>Error Here printf("%sn", name2); getch(); [...]

Answer Question   |  June 26, 2012  2:08 PM
C++
asked by:
75 pts.

Inventory App
If you can help me out with understanding this type of coding, I would really appreciate it. I took a couple of classes on C++, but it has been a while. Currently I’m new to Visual Basic. I work in a chemistry lab and I want to make an inventory serach application / database. I [...]

Answer Question   |  June 22, 2012  12:52 AM
C++, Visual Basic
asked by:
15 pts.

Why C/C++ over Java?
why we not go for java for every s/w why we use c c++ whether java is very much advance than these ?

Answer Question   |  November 2, 2011  11:27 AM
C, C++, Java
asked by:
5 pts.

what is relocatable loader and absolute loader?
Please explain me about the absolute loader and relocatable loader concepts. And  also suggest me some good source, either book or websites which will provide me core concepts of these loaders, so that I can use the knowledge gained, to implement these loader as a program.

Answer Question   |  March 31, 2012  5:28 PM
C programming, C++
asked by:
135 pts.

Help needed in making firewall in either C or C++ language
i have to make a program in C/C++ to be run Client pc(windows platform) for followings: 1. to block access to a site(s), either by drop down menu or user entered. 2. act as a url filter to block any url consisting any word from a given list, for example “Facebook” or a bad word. [...]

Answer Question   |  March 31, 2012  2:18 PM
C, C++, Firewall, Network, Networking, Programming, project management standard
asked by:
35 pts.

Get the user certificates with the API
Hi, I have the next code to get the user certificates:   int main () {   char *Qualified_user_space_name = "GRACE     QGPL      "  ;   void *User_name = "GRACE     " ;   char *Format_name = "CERT0200" ;   char *Selection_control = "   8   0" ;   char error_code[100]; [...]

Answer Question   |  July 1, 2011  10:24 PM
API, API parameter format, C++, Certificate
asked by:
330 pts.

C++ const correctly use
I have this sample code ( below ), whatever1() method works with no problem, whatever2() is similar but I must force const_char to make it compile, although I consider as whatever1() method is not needed, whatever2() would be not needed either.  My question is, how can I modify add() method to make both compile or [...]

Answer Question   |  February 23, 2011  12:00 AM
C++, Visual Studio, Visual Studio Test Edition
asked by:
55 pts.

Visual Studio 8 report form
My question is fairly simple, I have created a report form. I don’t know what to program in to get my information to appear in my report. It has to show customer id, last name, first name, number of policies and amount of insurance, all of which are already working well when I test and run [...]

Answer Question   |  December 13, 2010  8:49 PM
C++, Visual Studio, Visual Studio 2008, Visual Studio ReportViewer
asked by:
5 pts.

Cannot Generate C++ Stubs With WSDL2Ws
I cannot get the C++ stubs to generate from the sample IBM pieces. Here is my process. 1) QSH to Start the Command Entry 2) cd /workdirectory (in here I have a copy of the ConvertTemp.wsdl 3) At the command line I type the following: /QIBM/ProdData/OS/WebServices/V1/client/bin/wsdl2ws.sh ConvertTemp.wsdl Then I receive the $ with no message [...]

Answer Question   |  November 10, 2010  5:45 PM
C++, Programming Languages, QSH, WSDL
asked by:
185 pts.

Any c++ or java prog for calculating WhiteSpace in exchange 2010?
Hi all.. I am doing a project on white space for my academic curriculum. In this am unable to calculate the amount of whitespace in Exchange Server 2010 as there is no 1221 event. So for till Exchange 2007 i have been using wmiquery to get the details about this event. Now my project is [...]

Answer Question   |  October 26, 2010  12:31 PM
C++, Exchange 2010, Exchange 2010 Administration, Java programming
asked by:
5 pts.

What is the Web Services Client for C++ toolkit and how is it installed?
What is the Web Services Client for C++ toolkit and how is it installed? I have installed the XML Toolkit for iSeries and it says, from the website, ‘to simplify the Web Service invocation, IBM offers another tookit along with teh ML toolkit that allows you to easily invoke Web services without mastering the SOAP [...]

Answer Question   |  November 26, 2010  5:36 PM
C++, IBM, Web services, Web services (software), XML Toolkit for iSeries
asked by:
185 pts.

what are Rvalues and Lvalues in C++
[strong]on executing the below program i got error message like required Lvalue is missing in main function[/strong] [strong] main() [/strong] [strong]{[/strong] [strong] int i;[/strong] [strong] printf(“%d”,++i++); [/strong] [strong]} [/strong] [strong]plz tell me what are rvalues and lvalues. if there are any other values of this kind plz explain me that also[/strong]

Answer Question   |  September 21, 2010  12:51 PM
C++, C/C+/C# error messages, Rvalues and Lvalues, Turbo C++, Visual C++
asked by:
135 pts.

Core Dump problem in C pgm
Hi All, I am facing core dump, I am using “dbx” debugger to debug my source codein this matter.[o:p][/o:p]

Answer Question   |  August 23, 2010  2:21 PM
C programming, C++, core dump, Debugging
asked by:
Kar
425 pts.

Suggestion of C++ book
I know the basic thing of c++ programming and I would like to go deeper in C++. Please suggest me a good book on C++ for advanced topics (windows programming, aptitude in c++,etc.., )

Answer Question   |  August 21, 2010  1:08 PM
C programming, C++, Visual C++, Visual C++ 2008, Visual Studio 2008
asked by:
135 pts.

asked by:
5 pts.

Protocol analyser/sniffer
How do I implement Protocol analyser/sniffer

Answer Question   |  July 29, 2010  10:47 AM
C++, Java, Network protocol analyzers, Protocol analysis
asked by:
5 pts.

c++ reading data from txt files in tokens
I have tried a lot to manipulating strings. I want such code witch read the data from input file. I want to get data in tokens (to store in variables) of type char or int of specific location in input file.  I want to store string parts in variables for   further use. eof() helps [...]

Answer Question   |  July 9, 2010  7:27 AM
C++, IDE, Software programming industry, String manipulation
asked by:
250 pts.

c++ Exe. file 587kb
I am beginner in c++. I have written a student test program. It executes successfully in c++ compiler with no error. After while when I try to run that  exe file alone it gives an error. Debugging the program shows “An access violation(segment fault)”.  

Answer Question   |  July 8, 2010  7:02 AM
C++, Program Debugging, Segmentation Fault
asked by:
250 pts.

Function
A class SomeClass has a member function F that has no parameter list, returns an int value, and does not modify any of the private data. Which of the following would be the correct function definition for F? int F() const { … const int F() { … SomeClass::int F() const { … const int [...]

Answer Question   |  May 11, 2010  5:52 PM
C++
asked by:
5 pts.

connecting flash 8 project into visual c++ application
I am writing this application is visual c++ which i want to encluprate flash movie into it, how do i do that please.

Answer Question   |  March 29, 2010  2:31 PM
C++, MSVT, SWF
asked by:
10 pts.