199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PDB1982

I have to creat a program where the user inputs two large ints, and they are converted into string in order to add them together (assuming they are larger than 20 characters). One thing, is that it tells me to convert the numbers to a string and store it in …

Member Avatar for mrnutty
0
100
Member Avatar for didijc

Hey everyone, Happy Thanksgiving first and foremost... Second, I am attempting to build my own HTML Parser in C++ but I have no idea where to start... I've looked at some of the examples and libraries out there on the web, but none of them really helped... If someone could …

Member Avatar for didijc
0
550
Member Avatar for sabian4k

[code] void triangle(ostream &outs, unsigned int m, unsigned int n) { if ( m <= n) { int NumberOfLines = (2 * (( n - m) + 1)); int Mid = (NumberOfLines / 2); for (int i = 0; i < NumberOfLines; i++) { if (i < Mid) { for …

Member Avatar for DaBunBun
0
171
Member Avatar for furblender

Completely frustrating - I have been googling for a solution for this for a couple of hours now. I have this little bit of code that I wish to read a text file into a Python Dictionary. I used this dictionary format internally within the another piece of code I …

Member Avatar for furblender
0
3K
Member Avatar for HROFE

hi, i need to create function that mesaure time in micro second . how can i do it??? hezi

Member Avatar for HROFE
0
41
Member Avatar for jacline

Hi everyone, I write a project about a banking system . In homework professor told us that "Your code must not have any memory leaks. You will lose points if you have memory leaks in your program even though the outputs of the operations are correct." How can I check …

Member Avatar for jacline
0
106
Member Avatar for Calaesto

Hi, No excuses: my problem is that I can't get my code to check if a certain record exists in a MSA database. My code needs to check if the database contains a row where 2, 3 or 4 specified fields exist. But, as mentioned, at the moment it only …

Member Avatar for Calaesto
0
1K
Member Avatar for plastic

hi i have function in mdiparent form and i want to use it in child form. i created an object reference of parent form in child form and tried to call the function but this didnt worked. wat should i do??

Member Avatar for DdoubleD
0
525
Member Avatar for Jamesinuk

Hello, i really need help on this. I fully cannot understand what i am doing wrong here. This is a segment of my project that uses dynamic arrays but i seem to be getting random memory related crashes that i cannot seem to fix. These are my encode/decode classes. They …

Member Avatar for Jamesinuk
0
94
Member Avatar for Alba Ra

I wonder (as I couldn't find [I]anything[/I] either on DaniWeb or anywhere else) why should one use XML and XSLT rather than plain XHTML? I couldn't find a rationale arguing for the use of XML and XSLT in connection with dynamic web content stored in a database. Zend does provide …

Member Avatar for Alba Ra
0
279
Member Avatar for misvampire

i need to add virtual function to my coding. somebody please help. whre should i put it heres the code. [U]figure.h[/U][CODE] //This is the header file figure.h. using std::cout; class figure { public: virtual void center(); void draw(); void erase(); }; void figure::center() { cout << "Centering the Figure"; cout …

Member Avatar for mrnutty
0
121
Member Avatar for EcklerPa2

Hi there, I have a WinForm application written in C#. I have added a WPF usercontrol added to the Winform and I want to get the mouse Events passed back to the WinForm. [B]So you can see in line 6, my XAML I have a MouseUp event:[/B] [code=xml] UserControl x:Class="CustomRssFeed.MainWin" …

Member Avatar for DdoubleD
0
328
Member Avatar for DavidBrown1

I need help in Graphic programming in C. I donno how to start. I use Visual C++ compiler which doesn't support <graphics.h> Please somebody help. I can't find anything!:sad:

Member Avatar for William Hemsworth
0
89
Member Avatar for cousinoer5

This program has been bugging me a lot to get working, so far I've had to fight through tons of errors Hydra style (every one I got rid of, 2 took its place). Then I finally got an error free compile, but the txt file where the answers should be …

Member Avatar for cousinoer5
0
178
Member Avatar for fjrivash

Hi *, I have a file like this : [CODE]Example : 10 2 0 1 234.5677 0 2 345.6786 0 3 678.6764 .... [/CODE] From the first line the first number is number of lines and the second one is the number of nodes, so the thing is I need …

Member Avatar for fjrivash
0
86
Member Avatar for kalodakilla

Hi, I'm just starting to learn how to create custom controls in C# but I'm having a problem with the toolbox here. After creating and compiling the custom control in the Library project, i add new project to the solution to test my new control, so i add reference like …

Member Avatar for kalodakilla
0
181
Member Avatar for Silvershaft

I got a plenty of free time now and interested in GUI developement, I got expirience in C++, thats not the problem. I've done apps in wxWidgets before which I got bored to. Would it be learning to learn winApi or do you guys got better suggestions, as I said …

Member Avatar for William Hemsworth
0
159
Member Avatar for basilabraham

Hi, I am trying to load dynamically a consolidated view of different pages. I am using prototype.js to do the ajax loading. In one of my page there is an option button to change the option. and this component should be embedded inside a form to work. As I am …

Member Avatar for Airshow
0
119
Member Avatar for Carrots

Hi, I've been learning C++ these last few months, but never tried to make a GUI before. I've wrote a program in C++ which works via the command line, but now I'm trying to create a GUI for it (MFC using Visual Studio 2005, XP host). When I add an …

Member Avatar for Carrots
0
140
Member Avatar for peepeep

Hi, I have a problem with my matrix program. i created and initialized my matrix now i have to file the matrix with values of corr. i want it to look like this [COLOR="Red"][1, 0.1, 0.2, 0.3] [0, 1, 0.4, 0.5] [0, 0, 1, 0.6] [0, 0, 0, 1][/COLOR] [CODE][/CODE]file …

Member Avatar for woooee
0
103
Member Avatar for XshulderX

Hey I need some help to get a asignment done for tomorrow! I need to create a hex to decimal converter. EASY right! Well here is the catch. I can't use visual studios libraries to create is so [ string sHex = S; int iNumber = int.Parse(sHex, System.Globalization.NumberStyles.HexNumber); string sInt …

Member Avatar for ddanbe
0
98
Member Avatar for Jlutha1001

Hi, everyone i am so pressed with this task of developing a Piant Application using java or vb. i have run short of time, please someone save a me. I am Justine .O.

Member Avatar for debasisdas
0
58
Member Avatar for kapil.muni1020

[code] void main() { static int a[]={ 0,1,2,3,4}; // if here static removed that hence error why? int *p[]={ a,a+1,a+2,a+3,a+4}; int **ptr=p; clrscr(); printf(" base address is %u",a); ptr++; getch(); } [/code] in above code in "staic int a[] " line integer array define as static why it need?

Member Avatar for Ancient Dragon
0
111
Member Avatar for Clawsy

Hello, I'm working on a bluetooth chat application project called 'BlueChat'. I coded the server (BServer.java) and client (BClient.java) parts (2 separate threads). The visual part is called BlueChat.java and allowes the user to select to be the server or the client. I wrote a lot of System.out.println("")'s to check …

Member Avatar for Clawsy
0
270
Member Avatar for HelloMe

Hello again :) I had this project (first block of codes below) and out of this program i have to do the same again but this time using functions. My problem now is, i made some functions ( i hope these are functions) but on the last part (the one …

Member Avatar for HelloMe
0
79
Member Avatar for fjrivash

Dear all, is there is a way to go trough a matrix using just one "for" loop?, I mean I have this snippet: [CODE] #define WIDTH 5 #define HEIGHT 3 int mat [HEIGHT * WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { mat[n*WIDTH+m]=(n+1)*(m+1); } return 0; …

Member Avatar for fjrivash
0
88
Member Avatar for pardeep3dec

hi my problem is that there is no msgbox"Hi this is my first" coding but my programme showing above message box on form loading event. Please help

Member Avatar for GeekByChoiCe
0
58
Member Avatar for reduxmachine

Hello I am quite stuck on a python exercise and not quite sure how to finish it. My task is to draw an eye using a graphics module, and when the user clicks the mouse on the eye, the program is to specify what part of the eye was clicked …

Member Avatar for woooee
0
115
Member Avatar for Nikhar

Hey guys...Can you please help me explain what does returning an istream object mean. I am currently studying Accelerated C++ and at many places a function returns istream object. What does it mean? For example:- [CODE]istream& read(istream& is, Student_info& s) { // read and store the student's name and midterm …

Member Avatar for Nikhar
0
2K
Member Avatar for laccko

I need to use a semaphore simulator Sync.py that is written in Pythone and new program (also written in Pythone) is added as parameter. There is problem with classical syntax of If statement, I do not know how to write there else branch as well as more than one command …

Member Avatar for woooee
0
144
Member Avatar for Kruptein

How can I start a launcher from python? if I do: [icode]os.system("~/localhost")[/icode] it just returns a number (probably a process id or something) if this is not possible, how can I start from python a terminal window and execute a code in that terminal? (without closing the python script) Thanks …

Member Avatar for Kruptein
0
203
Member Avatar for Afupi

My project requires I use the right-hand method of solving a maze. I have to use a stack to keep track of and eventually print out the path to the exit. I know the way I am trying to keep track of each point is wrong because using mazeArray[xCoord][yCoord] is …

Member Avatar for Afupi
0
227
Member Avatar for Mitja Bonca

I have done and published application and this is what I got just after the installation: What can be wrong? PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3603 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000) SOURCES Deployment …

Member Avatar for DdoubleD
0
359
Member Avatar for edherbs135

Just wondering if there was any kinda way of doing this kind of filtering based on comparison other than having to go through each position in an array one by one comparing it to every position in the other array. If I'm to vague and you need more information let …

Member Avatar for edherbs135
0
86
Member Avatar for imolorhe

Please, i want to know how to ntework in vb6. Also, capturing the system name and other things like that.

Member Avatar for cguan_77
0
87
Member Avatar for muralibobby2015

hello, i want to do chat script in php. actual requirement is user chat with only with admin. if admin is in online user chats directly. otherwise that chat msg will go to admin mail. at this time another user may come to chat with admin another chat box will …

Member Avatar for muralibobby2015
0
88
Member Avatar for Lukezzz

If you would convert these 3 examples to a string you would get an errormessage as no of the numbers are valid numbers. How would it be possible to do a check programatically if the number is a valid number before a conversion ? [code] String^ GetValue = ""; GetValue …

Member Avatar for fjrivash
0
140
Member Avatar for tincho87

Hi everyone, sorry about my english. Im having a problem and i don't know how to fix it. I have a plugin-based application that i'm developing. Every plugin has a reference to a dll that has different static classes with functions. When i run the application with all the dlls …

Member Avatar for tincho87
0
154
Member Avatar for dumrat

I declared this inside one function: [CODE] void function() { .... static const int iLimit = GetLimit(); int iL = a_MyArray[iLimit]; .... } [/CODE] The code compiles ok in g++. What I want to know is whether the GetLimit function will be called only once (At the first call to …

Member Avatar for dumrat
0
94
Member Avatar for lepass_7

Hi guys i am trying to catch the close event(press the X button) on a window form. I try this [code] private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // Display a MsgBox asking the user to save changes or abort. if(MessageBox.Show("Do you want to save changes to your text?", "My …

Member Avatar for Geekitygeek
0
141
Member Avatar for HelloMe

Hello everyone... I have a problem on the last part of my codes. This programm supposed to accept several kind of courses and its corresponding grades. So far so good... but when it comes to display the courses and the grades and its remarks of passed or failed, the programm …

Member Avatar for Seten
0
125
Member Avatar for vishalonne

Hi Every body Once again I'm in problem and want some help from you all I have written a small code to search a particular value in MySql database and then to display the record based on that value - Like to search a Employee code in database and then …

Member Avatar for venkat0904
0
153
Member Avatar for samsons17

Hi....I got a simple question here which i dont know how to solve... [B]Question[/B] Type casting is common in writing programs. It converts from one data type to another, for example from integer to double or float. Write a complete C++ program which uses casting, which will ask the quantity …

Member Avatar for jonsca
0
152
Member Avatar for whitestream6

How do you get this to work? - well, for more than simple <strong> and <i> tags - I'm trying to get a HTML table in as an array, if this is possible! Any advice is appreciated!

Member Avatar for Airshow
0
97
Member Avatar for snakay

Hi, What is the best way of reading multiple aggregate data ? like so; [code] select id,sum(data1),sum(data2),sum(data3) from table1 group by id [/code] I know with ExecuteScalar you can get one aggregate data, but what about if you have more than one. I tried ExecuteReader and I'm getting exception [code] …

Member Avatar for snakay
0
107
Member Avatar for mattdaddym

Hi, I have a program that will download files from a company website given a list of links. The site requires authentication, and I do have code that will set the authentication cookie in the request header. I get the authentication cookie from a Perl script we have. What I …

Member Avatar for kvprajapati
0
115
Member Avatar for naziatarannum

Hi All, I have a question. How to track the how many times a link is clicked (by any user across the web) in a day? If I use onClick() on href, its of no use because it is only for a single session. Please advise.

Member Avatar for naziatarannum
0
82
Member Avatar for ujjval dave

I am new in vb.net so i don't know how to take a print from a vb form. thanks for this printing code.

Member Avatar for kvprajapati
0
103
Member Avatar for ShadowScripter

Hey, throwing a quick question in here: Is there a way to get the value at a cursor's location? For instance, the cursor is at {0,20} and I decide to do cout<<"Foo" then I move my cursor to {0,10} do something else and then come back to {0,20}, and I …

Member Avatar for technology
0
2K
Member Avatar for questionary

Hi. I have a question to advanced SQL programmers/users. I would be very grateful if you could explain me in simple words why we use multiple joins on the same table (for example multiple left outer joins) - what benefits it brings? examples would be appreciated best regards q

Member Avatar for MeSampath
0
149

The End.