49,766 Topics

Member Avatar for
Member Avatar for rajeesh_11

Hi, I trying to run a Axis JAVA client with a GSOAP C++ server. Here in the below given code I am trying to make an asynchronous call from the JAVA client using "sendReceiveNonBlocking" API. On the GSOAP server side I am using the "soap_send_..." for the asynchronous behaviour. I …

Member Avatar for rajeesh_11
0
382
Member Avatar for jugnu

Hi! This is Adnan I have a text file having 10 records. There are 4 fields and each field is delimited by a comma. I need to read data from text file such that when i input suppose Account number then the program fetch the record thru that number and …

Member Avatar for MosaicFuneral
0
104
Member Avatar for mrnutty

[code]#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; unsigned __int64 Fact(unsigned __int64 x ); int main(){ /*n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100!*/ cout<<Fact(100); } unsigned __int64 Fact(unsigned __int64 x ) { __int64 num(0); if(x==0) return 1; else { …

Member Avatar for grumpier
0
117
Member Avatar for mrnutty

I made a program that computes a factorial of a number. [code] #include<iostream> #include<fstream> #include<cmath> #include<iomanip> #include<string> using namespace std; //unsigned __int64 Fact(unsigned __int64 x ); int main(){ unsigned __int64 num = 100; unsigned long double fact(1); for(unsigned __int64 i=1;i<=num;i++) { fact *=i; cout<<setprecision(50)<<"i is : "<<i<<" fact is : …

Member Avatar for MosaicFuneral
0
143
Member Avatar for isumasama

How to implement hamming code in C++ or C I have a prog same as other user (Melissa). I need help to get me started in coding as i'm almost forgot everything i've learned on C or C++. The task is implement a program for any hamming codes by using …

Member Avatar for MosaicFuneral
0
947
Member Avatar for saalvi

Write a C++ program that contains a structure named “Account” having four data members 1) Account number 2) Account holder name 3) Account type 4) Account Balance Account type may be Saving, Current, etc. In main function, declare an array of structure “Account” of size 10. Populate this array by …

Member Avatar for death_oclock
0
127
Member Avatar for sciwizeh

OK, i recently got a few books on OpenGL, i also got Microsoft flight sim x, and a nice logitech joystick to use with it. so i want to try to figure out how to make OpenGL take input from the joystick. i haven't read much of the books yet …

Member Avatar for death_oclock
0
120
Member Avatar for PC_Nerd

Hi, I've just been looking at Hello World applications for programmign CGI's - and ive discovered that: [CODE]#include <stdio.h> int main(void) { printf("Content-Type: text/plain;charset=us-ascii\n\n"); printf("Hello world\n\n"); return 0; }[/CODE] Compiles to about 15.4 kb, compared to: [CODE]#include <iostream> using namespace std; int main() { cout<<"Content-type: text/plain"<<endl<<endl; cout<<"Hello World!"<<endl; return 0; …

Member Avatar for grumpier
0
154
Member Avatar for Lukezzz

I want to Show "ToolTips" when radioButton4 is Checked and when you Hover the mouse over textBox2. This works as expected. Now when I Check the radioButton5 wich makes the radioButton4 UnChecked I dont want the ToolTips to be seen when Hover the mouse over textBox2. I am trying to …

Member Avatar for cikara21
0
120
Member Avatar for mrnutty

hi, I was trying to implement the sieve of eroathoses (I know I spelt this wrong) and it works. But i was trying to find all prime under 2 million. The .cmd for visual studio just corrupts if I try to find all prime under 2million. I am guessing It's …

Member Avatar for Freaky_Chris
0
365
Member Avatar for tymk

Hi all. I wanted to run this class by some experienced programmers to see if I have any obvious errors and to get any advice otherwise. I created a test suite and everything seems to function properly so I'm interested in feedback on overall class design, choice of data types, …

Member Avatar for tymk
0
130
Member Avatar for amt_muk

Hello friends, Suppose I want to write a dll file with MS-VC8.0 compiler. I need to add [B]__declspec(dllexport)[/B] for all of the functions which will be called from outside of that dll. Now my question is that whether it is possible to export all functions of that dll at a …

Member Avatar for twomers
0
118
Member Avatar for web_master

hey, I am developing this game of snake, just like the nokia phones have. anyway i have worked on windows till now, but now i am using geany on linux. so there are quite some methods which are not standardised for all platforms. one of them is gotoxy() and i …

Member Avatar for web_master
0
100
Member Avatar for nilrem

Hi all, I have a problem with template methods, what I want to do is pass in a struct type as a template variable but I don't know the correct way to do it. Here is the method: [code] template<typename T> void SetSize(unsigned int size, string inClass, T &inStart, T …

Member Avatar for William Hemsworth
0
99
Member Avatar for majesticmanish

Hi, i have seen few codes where assert macro is used to make some checks on conditions. They used 'assert' so frequently (like in every destructor) that makes code looks too bad. My question is: [LIST]why people rely on assert so much. is it because is it easy to use …

Member Avatar for majesticmanish
0
149
Member Avatar for Manutebecker

Learn how to fully use the windows header with help from [URL="http://www.winprog.org/tutorial/simple_window.html"]Windows.h Tutorial[/URL], I'm pretty well along in the Programming world and was wondering if this would be really useful in becoming a programmer in the future.

Member Avatar for Manutebecker
0
87
Member Avatar for Tmy

how can i use cin.ignore to ignore every character up to and including a specified character – for example a full stop, ’.’ or a comma ',' ?? for example if the person entered Tom Jones. the program needs to igonre the full stop please help [CODE] #include<iostream> #include<string> using …

Member Avatar for Freaky_Chris
1
3K
Member Avatar for agentkirb

I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping …

Member Avatar for agentkirb
0
127
Member Avatar for presario

Where should I include other header files, in header file or source file? What is the difference between the below two: Example: [code] //file1.h #include "file2.h" ... [/code] OR [code] //file1.h class class2; ... [/code] [code] //file1.cpp #include "file2.h" ... [/code]

Member Avatar for grumpier
0
125
Member Avatar for fireballnelson

A pointer points to a memory location containing a specified value right? If a pointer is defined without something to point at, it can point anywhere, right? Here is my question: What are the practical uses of pointers? I mean why wouldn't you just make a reference to the variable …

Member Avatar for ArkM
0
167
Member Avatar for nrupparikh
Member Avatar for Lukezzz

I wonder something about adding a .DLL file to a project I am doing in a Win Form. I have rightclicked the Project ant choosed "Properties". Then under "Common Properties" I have "Add New Reference" and Added the Graph.DLL file to my project. This .DLL is a GraphControl. My question …

Member Avatar for Lukezzz
0
87
Member Avatar for Alex Edwards

Hey everyone! =) I'm starting an Application Development club at my college! However, there are a fair amount of programmers with multiple backgrounds who want to be a part of the club and partake in some of the Software we will create. Most of the people who are joining the …

Member Avatar for iluxa
0
334
Member Avatar for Clockowl

Hey guys, I'm stuck on some undefined references to glut and OpenGL, even when I linked my projects with the correct libraries. Well apparently they aren't correct... I'm trying to compile this: [code=C] /* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees …

Member Avatar for Lerner
0
458
Member Avatar for nrupparikh
Member Avatar for mirfanud

Hi, I use a simulator written in systemc to evaluate the programs written in pthread. so i have to interconnect the pthreads and systemc threads. The connection works fine, but I want to calculate the execution time of the pthreads events in systemc simulation time. I use systemc events to …

0
32
Member Avatar for new2c++

hello, im just learning c++ and was wondering if any one could spare the time to explain to me what each line of the ollowing code does, this is no my code i was just hoping to see what each lines does to see if it wil make it clearer. …

Member Avatar for Freaky_Chris
0
100
Member Avatar for Liinker

I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it …

Member Avatar for Liinker
0
874
Member Avatar for abhi.nalluri

Hi All, I have an application to open a serial port and write commands to it. I have used CreateFile function along with ReadFile and WriteFile. I need to use my serial connection from Network Connections and connect to a device.After connecting to the device I disconnect it. Now I …

0
52
Member Avatar for acardiac

I just need a hint or two to solve this problem. I dont need any coding or something similar just a "hint". Thanx Q.2. A local airlines has three different models of passenger planes: The 101 is a charter plane that carries up to 10 passengers, with the seats arranged …

Member Avatar for acardiac
0
117

The End.