132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dewey1040

I am supposed to create a program like this, with separate clock.cpp, clock.h, and main.cpp files. The program is supposed to do these tasks: I have started the clock.cpp and dont quite know where to go for some of the tasks, and I don't quite know how to use the …

Software Development c++ operating-system
Member Avatar for Dave Sinkula
1
226
Member Avatar for jmoran19

Hi guys, anyone familiar with the Markov Chain Algorithm? I've got an assignment to take the code from a C++ implementation and remove any stl features like deques and maps, but continue to use strings as my main object type. I've based my changes around a C version of the …

Software Development algorithm c++
Member Avatar for daviddoria
1
315
Member Avatar for @MASTER

In computer science, an LR parser is a parser for source code written in a computer language that reads input from Left to right and produces a Rightmost derivation. The term LR(k) parser is also used; where the k refers to the number of unconsumed "look ahead" input symbols that …

Software Development algorithm programming-construct
Member Avatar for thines01
1
326
Member Avatar for scriptkiddy

Hi guys, I am just wondering how to implement a dialog I have made in Microsoft C++ 6.0 So I created a C++ project, then added a .rc script file. Then I added a new item to it (dialog control, called IDD_MENU) Now, I am wondering how would I use …

Software Development c++ gui ide
Member Avatar for William Hemsworth
1
274
Member Avatar for vckicks

A simple way to check if the current C# program is the only instance of itself running.

Software Development
Member Avatar for ashishkumar008
1
256
Member Avatar for mevkurray

Hi all. Before you all scream "search the forum", i already have, this and many others. cant seem to find the problem with my code. Basically, i have a fairly large text file, each line consisting of 20 fields seperated by a `. i have got my program to split …

Software Development c++
Member Avatar for mevkurray
1
1K
Member Avatar for arpit.mishra

Hi, I tried to direct the output from a thread into a log file using fstream, but it dosent seem to work. If I use ostream then it works fine. Can you please let me know why fstream is not working. Thanks in advance

Software Development c++
1
246
Member Avatar for sting23

Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Dim ans As Integer Private Sub br_Click() Form27.Show End Sub Private Sub bsm_Click() Unload Me Form3.Show End Sub Private Sub Command1_Click() If Text1.Text = "" Or Text2.Text = "" Then MsgBox ("please enter user id and password") Text1.Text = "" Text2.Text = …

Software Development visual-basic
Member Avatar for AndreRet
1
167
Member Avatar for FengG

[CODE]import pygame pygame.init() def main(): screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption('game') background = pygame.Surface(screen.get_size()) background = background.convert() background.fill(pygame.color.Color('yellow')) box = pygame.Surface((100,100)) box = box.convert() box.fill(pygame.color.Color('red')) t = True clock = pygame.time.Clock() while t: for event in pygame.event.get(): if event.type == pygame.QUIT: t = False elif event.type == pygame.MOUSEBUTTONDOWN: posi = pygame.mouse.get_pos() …

Software Development python
Member Avatar for FengG
1
128
Member Avatar for ching

can anyone give me a example of a radix sort

Software Development c++
Member Avatar for dibilasd
1
419
Member Avatar for eggmatters

Not really sure how to phrase the question. Essentially my issue is this: I have a Form that when the user clicks a button, it invokes a JFrame that populates a datatable with a sql query. The datable frame also has a button. The user can select a cell in …

Software Development java java-swing
Member Avatar for Ezzaral
1
138
Member Avatar for abc16

Hi i am making an window application in C# .net using VS......... I want to know how can i apply the functionality of back and forward on button , like we have in windows toolbar............. Can anyone help me in this...............

Software Development
Member Avatar for Antenka
1
939
Member Avatar for AndreRet

Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.

Software Development printer visual-basic
1
995
Member Avatar for crystality

Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> …

Software Development c c# c++ queue
Member Avatar for crystality
1
735
Member Avatar for SoulMazer

Ok, well I am JUST beginning to learn Java, and I have run into a little stumbling block. I am attempting to write a little applet, but it doesn't seem to want to run. My Java code: [code=java] import java.awt.*; import java.applet.*; public class TestApplet extends Applet { public void …

Software Development java
Member Avatar for jasimp
1
144
Member Avatar for schnell

I have "Vertex" class pointers in a list. I want to delete these pointers and free up the memory. I deleted the pointers in the first for loop and set these pointers to 0. but just to check whether the pointers have really been deleted and set to NULL, I …

Software Development c++
Member Avatar for schnell
1
113
Member Avatar for xfrolox

Hi all again im like a bug in the web xD never stop posting i got this from other web [CODE]Private alarmTime As Date Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.alarmTime = Date.Now.AddMinutes(60) Me.Timer1.Start() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for pmusha
1
120
Member Avatar for SoulMazer

Hi, I'm looking for a little help with the function "getattr". Here's my code: [code=python]class MyClass: def __init__(self): trycmd = getattr(self, "cmd_testing") try: trycmd() except: print "Fail." def cmd_testing(self): print "Victory!" obj = MyClass()[/code] So, when I run this code, I get the output "Fail.". I'm not sure what I'm …

Software Development python
Member Avatar for vegaseat
1
142
Member Avatar for dylank

Hi, I am a begginner programmer that is attempting to create a program that will spit out the (x,y) plots for a graph. Currently, I only need it to give me the x and y data in (x,y) form, so here is my current code. By the way, I am …

Software Development c c# c++
Member Avatar for jonsca
1
153
Member Avatar for Kristofferson

Alright, so my issue is that I have a staff profile. When you press the button it brings you to the Edit Profile page with text boxes with the original information in them so they can be edited. Now I ask for the edited information to be updated when the …

Member Avatar for TomW
1
190
Member Avatar for nhandal

I have a treeview in my program for which I am adding a bitmap of an open and closed folders. I have included messageboxes to show where the program fails. It fails at the loadbitmap function. I appreciate it if anybody can tell me what is wrong. Below is the …

Software Development c image
Member Avatar for lashatt2
1
428
Member Avatar for nola_Coder

Hello... This is my last assignment from my Data Structures class. I turned it in and got a good grade, but it still has one problem that I am unable to pinpoint. The assignment is as follows: Create an alphabetical linked list from a .txt file containing various names. (1 …

Software Development java linked-list
Member Avatar for nola_Coder
1
168
Member Avatar for klackey19

So I'm working on a project for a class in which we have to create a parser for a made up grammar. The input is read from a file. When I use input that is in the grammar, the program works. For certain input not in the grammar such as …

Software Development c++
Member Avatar for klackey19
1
537
Member Avatar for masterofpuppets

A simple function to return the number of occurances of a letter in a text. An easier way to implement this would be by using a dictionary :) P.S sorry if there already is a code snipped like that somewhere.

Software Development python
Member Avatar for lrh9
1
765
Member Avatar for Gribouillis

This snippet shows a fast and efficient way to cut strings in substrings with a fixed length (note that the last substring may be smaller).

Software Development python
Member Avatar for bumsfeld
1
621
Member Avatar for kool.net

hi, i m trying to get value from of first column of selected row from datagridview. please help me....\ Thanks in advance

Software Development vb.net
1
86
Member Avatar for Ranek

Hello Everyone, I'm having a bit of trouble seperating my user interface code in a main class from my logic code in another class. Basically i've put a while statement and some if statements in order to take input of a number from the user and decide which of two …

Software Development java user-interface
Member Avatar for Ranek
1
392
Member Avatar for Duncans Ghola

This program is intended to determine if a fractions is valid (non-zero, non-negative denominator) and to convert an improper fraction into a whole/mixed number. While running the program I get the message "Floating point exception" after it reads the inputs just inside the for loop. Any insight into what is …

Software Development c++ storage
Member Avatar for Grn Xtrm
1
253
Member Avatar for EddieC

One way to become the "ultimate" of something is to simply declare it. JetBrains, maker of the IntelliJ IDEA Java IDE, on Thursday began previewing [url=http://www.jetbrains.net/confluence/display/IDEADEV/Maia+EAP]IntelliJ IDEA Ultimate Edition[/url], the latest version of its commercial integrated development environment for Linux, Mac OS X and Windows. The "ultimate" designation is presumably …

Software Development ide java open-source
Member Avatar for peter_budo
1
762
Member Avatar for vegaseat

Python has some powerful functions, like the math expression evaluator eval(). You can embed this function and others in your Development C++ code. All you need to do, is to download and install the free Python Development Pak and feed the Python code in the form of a string to …

Software Development c++ python
Member Avatar for Shantha.D
1
5K
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Software Development c++ ios
Member Avatar for Web_Sailor
1
1K
Member Avatar for masterofpuppets

this is my version of the popular snake game. The snake is controlled by the mouse so be careful when you start :) it grows infinitely long...you should download the apple.jpg file for the game, or graw one of your own just name it apple.jpg and place it in the …

Software Development apple python
1
360
Member Avatar for calypso&noname

Hi again and thanks for the help! PROBLEM: Only every other number entered by the user is registered by my program, except the last number, which is always registered. [B]How can I get the program to register every line? And what is causing it to skip an input line in …

Software Development c++
Member Avatar for drjay1627
1
158
Member Avatar for clue.less

I am very naive at programming...n very new to it too..pls helpwith the following problem: #include <iostream> using namespace std; int main() { int side; cout << "Enter a number: "; cin >> side; for (int i = 0; i < side; i++) { int j = 0; while (j …

Software Development c++
Member Avatar for Phil++
1
99
Member Avatar for seraph_harim

Hello all, just hoping for a bit of understanding of new[]. I'm writing an insertion sort program for school (of course) and I've got most of it done; I have the program asking for a filename, and asking for file "size" (or how many numbers are in the file), and …

Software Development c++ file-system
Member Avatar for Campbel
1
192
Member Avatar for wanted08

hey .. how are u all ?? I have c++ problem .. i tried to solve it but i couldnt get the same input .. [COLOR="Green"]here is the problem:[/COLOR] Given the following file called “input.txt” which contains the freezing and boiling points of several substances. Note: the title is not …

Software Development c c# c++
Member Avatar for Tom Gunn
1
504
Member Avatar for doll parts

Hello. I am having problems with a program I've written to find the roots of a cubic equation using Newton's Method. The user inputs the coefficients in the expression (real) and an initial guess (real or complex), and the program is supposed to return a root of the function. However, …

Software Development c++
Member Avatar for huss_584
1
2K
Member Avatar for nirveshverma

HEy:) Buddies in early morning i want to calculate that exchange during download & you very well known that it is shown in byte so just i am g with c++ and play a game for writing this. thanks enjoy it. It's very easy and handy with simple logic.

Software Development c++
Member Avatar for tkud
1
5K
Member Avatar for PyroPaul2

Can any help, please? Can anyone provide me with the basics of passing (interprocess) a bitmap? Send & Receive in C# CreateFileMapping, I belive, is still the only way to do this. I'm not sure how you deconstruct/reconstruct the bitmap. Many thanks in advance.

Software Development
Member Avatar for PyroPaul2
1
356
Member Avatar for SoulMazer

So, I have a rather simple question today. I'll try to explain it by using an example. Let's say there is a line of HTML in the page "www.mywebsite.com/py" that says "<tr colData0='Friday'>". However, this line of code can change to be "Sunday", "Tuesday", etc. What would be the easiest …

Software Development html-css python
Member Avatar for SoulMazer
1
165
Member Avatar for Gaiety

/* difference between %i ad %d %i reads the value and it recognizes the value as what base it is when we read the value as 023 (base 8) it is 19 (base 10) and 0xa(base 16) it is 10 in (base 10). */ OUTPUT: /* Enter a number:023 Out …

Software Development c
Member Avatar for Ancient Dragon
1
161
Member Avatar for ashok.g15

Why do some code for eg in gstreamer etc use code which has code like struct xxx { int foo; ... .. char arrURI[1]; char data[0]; }

Software Development c
Member Avatar for Tom Gunn
1
952
Member Avatar for ryno365

Hello daniweb. I'm working on a Poker Holdem Application and I'm trying to work on a view/jframe for it. Everything was running smoothly until something weird happened. After deleting an old hand-coded MainFrame which extends JFrame file, I tried to create a new MainFrame/JFrame file but this time using netbeans …

Software Development daniweb-bug gui java
Member Avatar for ryno365
1
119
Member Avatar for PRWang

I have a vb.net 2008 application that is supposed to send a mouse click to a specified window. This can be any window, and the user selects the correct one from a list box during configuration. The user can also change the window or the mouse button to click at …

Software Development vb.net visual-basic
Member Avatar for TheKangaroo
1
677
Member Avatar for Ineedhelpplz

I have already completed my hex to integer conversion function which works properly with the provided driver. However, my integer to hex function gets stuck in an infinite loop and I have no clue why. The red section of my code is the function which is giving me problems. Everything …

Software Development c
Member Avatar for Ineedhelpplz
1
384
Member Avatar for MeBjess

I am having problems completing this program. I have included my notes, and stated current problems in the beginning. Please help. I have no idea what I am doing. This is all I have accomplished in 4 days! I am new to programming, well relatively, it was nearly 17 years …

Software Development c++
Member Avatar for MeBjess
1
117
Member Avatar for osgiedeprof

good day everyone there's something i've been trying to do in c++ its a program that finds the mean median and mode from a group set of data, it should use vectors to read these data from the user and then tabulate into: grade distribution class mark(x) fx i've tried …

Software Development c++
Member Avatar for mrnutty
1
106
Member Avatar for Samyx

Hi everyone, My program is doing what it suppose to do, except that it generates a loop with the answer. ... ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 …

Software Development c
Member Avatar for Samyx
1
152
Member Avatar for Massena

First of all I'd like to congratulate you on the excellent community you have here. It is helpful and knowledgeable. I'm looking for a library that would allow me to make a video file (.avi, .mov, any file works) from bitmaps, or other image formats, on the mac. I have …

Software Development api c++ os-x video windows-api
1
107
Member Avatar for mnemtsas

Here's possibly the single most useful function that I use. It simply takes an ADO record set and dumps the column names and row values into an Excel worksheet. To use it make sure you have Excel marked in your project references.

Software Development visual-basic
Member Avatar for chad0809
1
547

The End.