49,766 Topics

Member Avatar for
Member Avatar for hashinclude

HI, if i have something like this [CODE]char string[16]; std::cin>>string;[/CODE] and i type something and press "Enter" then [ICODE]std::cin[/ICODE]would terminate, how do i get it to terminate when my first key input is "Enter" ? because normally if i do that , input will not terminate and i will only …

Member Avatar for Narue
0
281
Member Avatar for number87

I was given this problem of finding out the alphabet between 2 given alphabets, and this is the code i came up with....and the problem is that I get an ASCII value instead of and alphabet. For example, when I input AZ, the proper answer should be M but I …

Member Avatar for ShawnCplus
0
87
Member Avatar for vikasmailsu

Hello Experts I am trying to parse a dbx file . But I won't be able to find the attachment offset,embeded's image offset, mail's offset,mail's size etc. If abybody know DBX file structure ,then please tell me .Its urgent. Thanks Kind Regards vikas

Member Avatar for vikasmailsu
0
203
Member Avatar for appu.puli

Hi, Could u please help me with this issue. I can able to get POPUPMENU while pressing alt and then (Underline char of my main menu). But When i tried for Alt+(underline char) That popup menu is not aappering. Can u please help me to IN WOKE THE POPUPMENU when …

0
41
Member Avatar for shizu

Hi.. I'm using VC6++ with window xp.. and my coding is like below.. [code=cplusplus] try { CString szConn; hrResult = m_Connection.CreateInstance(__uuidof(Connection)); if(SUCCEEDED(hrResult)) { szConn = "Provider=Microsoft.JET.OLEDB.4.0;Data source=C:\\PSMotion\\Database\\IO.mdb"; _bstr_t bstrConn(szConn); hrResult = m_Connection->Open(bstrConn,"Admin","",-1); if(SUCCEEDED(hrResult)) { _CommandPtr pCommandResult; _variant_t vtEmpty1(DISP_E_PARAMNOTFOUND, VT_ERROR); _variant_t vtEmpty2(DISP_E_PARAMNOTFOUND, VT_ERROR); sprintf(sql,"DELETE * FROM IOList"); _bstr_t bstrResult(sql); pCommandResult.CreateInstance(__uuidof(Command)); pCommandResult->ActiveConnection …

0
57
Member Avatar for lemymatair

Hello World! (to all of you DaniWeb guys!) I want to build 3D Online Chat but I don't know how to start. Does anyone can tell me how to send message between 2 PC? (An output of this message I want to show in 3D character's shout box.) Right now …

Member Avatar for lemymatair
0
140
Member Avatar for nurulshidanoni

How to convert this algo into c++? [CODE]while 9more students) read studentID countexam =0 while(more examination) read exam code ExamID = GetExamID (examcode) Incerement Count exam examlist[count exam]=ExamID; endwhile for (i=1,to CountExam-1) do for (j=i to CountExam) do if (i!=j) Inceremnt conflict value of row exam List[i] and column Examlist[j] …

Member Avatar for nurulshidanoni
0
166
Member Avatar for swethakiran

Hi, I have an existing .ocx file which contains a map. I need to open this file in C++ and not in MFC. MSDN help suggested me that it can be done throuch " #import "file_name" " However, the description is not descriptive and helpful. If anyone can provide me …

Member Avatar for swethakiran
0
4K
Member Avatar for shankhs

Hi guys I am trying to implement golden section search method to obtain n-th root of any number.I am testing it by finding the square root of 25 in range [4,6].the function to minimise is:[B]x^2-25.[/B] [CODE]#include<iostream> #include<cmath> using namespace std; int fnc(float &,float &); float n,num; int main() { float …

Member Avatar for shankhs
0
106
Member Avatar for xfactornos

I have been writing my program and everything works like it should unless the user inserts a character then the whole thing blows up... how can I fix this. Is there something I can add to block characters from being added? any help would be appreciated! here is my code: …

Member Avatar for xfactornos
0
123
Member Avatar for xs.usman

can anybody give me the cocept of 2d n 3d arrays in c++ i will be very thankful.i am using this type of site 4 da first time but i m sure it will be good.

Member Avatar for WaltP
0
673
Member Avatar for lifei

i am new to programming.. i am now facing a prolem on how to turn the value in the combo box by automatically by using visual c++ 6. let's say the value in the combo box is 5, after i click a button, the value will increase to 10, 15 …

Member Avatar for lifei
0
125
Member Avatar for rajatC

How to output to an excel file and how to read from it?? i have done the writing part...to use [inlinecode]"\t"[/inlinecode] for moving to next cell in same row and [inlinecode]"\n" [/inlinecode]to move to next row... and is there any special format to save that excel file..because when i save …

Member Avatar for jacki
1
6K
Member Avatar for teppuus

Hello, I have to create a double linked list array of pointers for the alphabet (one pointer per letter). Ok, so I tried starting by creating a double linked list: [code] struct word{ string newWord; word *next; word *back; }; struct wordList{ word *head; }; [/code] And then array of …

Member Avatar for teppuus
0
122
Member Avatar for anallan

can someone help me regarding my program? i am tasked to create a program called string censoring. it asks for two strings then it removes the characters in the first string which are similar to those in the second. Ex: 1st string= new york yankees 2nd string= absolutely result= nw …

Member Avatar for anallan
0
665
Member Avatar for i_suck_inc++

Is der an equivalent function to srand(),the random number generator, in g++ compiler?

Member Avatar for WolfPack
0
60
Member Avatar for yarita

I am just beginning in a C++ class and I am having a hard time setting up the code for using a modulus operator. The problem assigned has user input as name and hours worked. The program is to output the name, weeks worked, days worked, and hours worked based …

Member Avatar for Arpy Giri
0
153
Member Avatar for everlast

is there a way for me to write OOP programs in c++ for Texas Instruments TI 89 graphic calculator?

Member Avatar for everlast
0
1K
Member Avatar for pepipox

Dear all In advance, thank you for your help. I am trying to initialize an object in C++ depending on certain parameter. Below is the source code I am using. if(ARG::metrn==metrnSMD) EventStream<complex<Lambda>> evstrTrain(fileTrain, evlsTrain); else EventStream<Lambda> evstrTrain(fileTrain, evlsTrain); if (ARG::FRandomEventOrder()) evstrTrain.SetRandomOrder(true); I am declaring and calling the constructor for 'evstrTrain' …

Member Avatar for pepipox
0
151
Member Avatar for maHvic

this is my code to convert characters into its decimal form...it is working and the next step is to convert the decimal form to its binary form...how can i do that....???? [CODE]#include<iostream> #include<conio.h> using namespace std; void input(); void process(); int main() { input(); system("PAUSE"); } void input() { string …

Member Avatar for invisal
0
200
Member Avatar for deicer

I have the following code which is working properly, what I'm looking to do is add an additional function to it, but I'm getting stuck. What I need to do is add a function to my class called DigitalTime::interval_since(const DigitalTime& a_previous_time, int& hours_in_interval, int& minutes_in_interval) What this function does is …

Member Avatar for deicer
0
134
Member Avatar for eesti44

Hello, I am still working on the self study thing. I have decided to do or attempt to do a project that requires a header files with 2 other source files. The header file was given in the book. It is as follows: #ifndef GOLF_H_ #define GOLF_H_ //golf.h -- for …

Member Avatar for eesti44
0
141
Member Avatar for #include<DAN.h>

I'm trying to write some code that will take each individual part of a 2D array and put it into the same part of a different array. Here's the code, tell me what you think!! ^_^ Thanks in advance for any help!! [CODE] bool repeat = true; int a = …

Member Avatar for zhelih
0
91
Member Avatar for rajatC

I recently saw this function in one of the online test paper i was going through. And i came to know that this is a standard library function but i dont know anything about it. And it is related to some Parent process - Child process kind of things. And …

Member Avatar for rajatC
0
124
Member Avatar for bhagyashanti

after i give the input the screen disappears all the commands are correct even then it only takes input how i can see outputs??

Member Avatar for WaltP
0
137
Member Avatar for Chris11246

What would be a good way to learn C++ online for free. I already found a site that shows me some stuff but I don't think it's the best site out there. Also whenever i compile and run a program it just flashes on the screen for a second like …

Member Avatar for VernonDozier
0
115
Member Avatar for kashmir323

I started c++ a few days ago and I am trying to make this program for my math class just to test myself. This is my code. [CODE]#include <iostream> using namespace std; int main () { int goldennumber; int finalnumber; int ratio; cout<<"Welcome to Easy Golden Ratio Finder!\n"; cout<<"\n"; cout<<"\n"; …

Member Avatar for kashmir323
1
87
Member Avatar for np2100

How do you search for a string in a system? I am trying to make a program that does a system ping then returns to you only a portion of the results such as only the amount of packets loss. Any ideas on how to do that? What I had …

Member Avatar for Ancient Dragon
0
121
Member Avatar for Kiss_and

so ... i'm kinda new to these STL ... i wanna make a list of lists ... after spending some time to teach myself how to make a list of char I went one step further with a project I have to accomplish ... so the thing is that i …

Member Avatar for Ancient Dragon
0
112
Member Avatar for Syndication

Hello! :) I have a CMDIChildWnd (CStatusFrame) with a richedit on it. I am resizing the richedit when CStatusFrame is resized. Originally it was.. [CODE=c++] // Code from CStatusFrame PreCreateWindow: cs.style = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_TABSTOP; cs.lpszClass = AfxRegisterWndClass(CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, NULL, (HBRUSH) (COLOR_WINDOW), NULL); …

Member Avatar for Syndication
0
120

The End.