199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for george08.08

Hello again I am a bit confused about how to show a constant in a class constructor. I have a savings account class (A child class of Account) which has a constant interest rate. I have it in my class as a static constant double INTEREST_RATE;. Then outside of my …

Member Avatar for mzimmers
0
189
Member Avatar for Locane

This program simply creates an array of movies with a star rating for each one. My problem is, I want to have code that adds the contents of the array if the movie is the same. So for my example I was using Frozen Ground as the movie. In my …

Member Avatar for Locane
0
146
Member Avatar for akshayksh

hello i need to calculate age of a person and dispaly it in a label. for example i have a textbox, with these values, 130790, from this number it should generate my age. DDMMYY

Member Avatar for GeekByChoiCe
0
86
Member Avatar for dre-logics

I have a simple question. [COLOR="Green"]Do while loop[/COLOR] to check each record in a MySQL Table, see code [COLOR="Red"] But i want certainly not just want not use recordset or MySqlDataReader.[/COLOR] I Is that possible? Information: I use Visual Basic 8.0 and Mysql 5.0 I have one table: Articles Article …

Member Avatar for SamR44
0
5K
Member Avatar for VilePlecenta

Seen it asked for so here it is.[code]#include <Windows.h> #include <iostream> #include <conio.h> using namespace std; #define ClearScreen() system( "CLS" ) class _Notepad { public: _Notepad() { ZeroMemory( &Buffer, sizeof( Buffer ) ); pt.x = 1; pt.y = 1; } void GetUserString(); void SendToChild(); private: HWND nphWnd; POINT pt; char …

Member Avatar for fengdanbailu
0
1K
Member Avatar for george08.08

Hello I am creating a bank account for an assignment and the account number must be automatically generated with consecutive numbers. I have written some code that works, but now I need to know how to use it in conjunction with my Account class, especially how to add it to …

Member Avatar for mzimmers
0
206
Member Avatar for Vasthor

2-4. The framing program writes the mostly blank lines that separate the borders from the greeting one character at a time. Change the program so that it writes all the spaces needed in a single output expression. already google this, but what I got is a bunch of headache... so, …

Member Avatar for Vasthor
0
359
Member Avatar for sitmiller

I have a file with several lists of names with scores. Ex: Foo 3 4 5 4 3 80 90 40 I need to split the file and then make it so I can take the numbers and calculate averages, so the numbers need to not be seen by Python …

Member Avatar for woooee
0
203
Member Avatar for pelin

Jack loves to do jumping jacks. Create a simulation of Jack consisting of a stick figure and three buttons: start, stop, and quit. If the user clicks the start button, Jack begins jumping; if the user clicks the stop button, Jack stops jumping; if the user clicks the quit button, …

Member Avatar for pelin
0
467
Member Avatar for imperialguy

I want to create an ultimate list ctrl based table where the user can sort the columns by clicking on the column header. Here's the code I attempted: [CODE]import wx import wx.lib.mixins.listctrl as listmix from wx.lib.agw import ultimatelistctrl as ULC APPNAME='Sortable Ultimate List Ctrl' APPVERSION='1.0' MAIN_WIDTH=300 MAIN_HEIGHT=300 musicdata = { …

Member Avatar for woooee
0
487
Member Avatar for fatzky_04

HELLO! There is no error and it runs, but it doesn't show my desired output. What is the problem? [CODE]#include<stdio.h> #include<stdlib.h> struct list { int data; struct list *ptr; }; int main() { struct list *clist; struct list *top; struct list *tmpptr; int i; clist=(struct list *)malloc(sizeof(struct list *)); top=clist; …

Member Avatar for raptr_dflo
0
102
Member Avatar for algrandjean1

I am having a little trouble ending my program when I click on my End Program button. The current code that I have keeps making the program freeze when I try to exiting via the button. Also, I am having some issues with my Auto Button not working. Any help …

Member Avatar for woooee
0
185
Member Avatar for tvm78

So I'm trying to write a program that is due tomorrow. I am trying to overload operators and dealing with template classes. I have everything written already but keep getting this error whenever i try to compile the driver file: NOTE: proj4.cpp has #include "box.h" and box.h compiles fine, but …

Member Avatar for NathanOliver
0
276
Member Avatar for peste19

I made a function which will look up ages in dictionary and give out there name my dictionary si for example {george:16,amber:19} i made this [CODE] search_age = raw_input("Provide age") for age in list.values(): if age == search_age: name = list[age] print name[/CODE] but i know how to compare and …

Member Avatar for woooee
0
99
Member Avatar for huntaz556

I know this thread has been done alot but i cant find anything that i think i would like to do i want to make a program in python i have a pretty basic understanding of python and i really like it but i want to make somthing thats going …

Member Avatar for huntaz556
0
344
Member Avatar for phr33k

Hi, I am new to the forum. I am stuck on this assignment I have to do. I think i have defined the array suitably enough, I just cant implement the sorting specified in the question. Any help would be greatly appreciated. Here is the question: Create a program in …

Member Avatar for dctb13
0
328
Member Avatar for Creatinas

Hello, i need some help with code, i need to be able to print something that function returns then i press button on panel1 it should return text to panel2 textctrl in wxpython. Here is some bit of code.(i just cut code that i think is needed for this) [CODE] …

Member Avatar for Creatinas
0
155
Member Avatar for dgreene1210

I wrote this program and it compiled with no errors or warnings but when i went to run it i get a segmentation fault and i cant figure out what is causing it. Ive spent hours and hours on this . Anyone with some expertise willing to take a look? …

Member Avatar for Smeagel13
0
178
Member Avatar for datdude07

Hi I keep getting an error when trying to assemble and run my code and would like to know why. It says there is a syntax error in line 21 and "directive must be in control block" error in line 23. The program is supposed to write a square made …

Member Avatar for datdude07
0
227
Member Avatar for typedefcoder

I have a series of Key value pairs. Each Key has 2 values. Values of Keys ma coincide. Initially i start with Key1, ValueKey1, ValueKey2 are stored in a set.(Maybe Array). Now for each consecutive Keyi, i check if Valuei, Valuei+1 are in the set. If any one of them …

Member Avatar for typedefcoder
0
234
Member Avatar for bilal_fazlani

Hi, I have visual studio 2010 ultimate and i have installed sap crystal reports for visual studio. its a free edition for visual studio 2010. while working on a project in which i wanted to create a report, it was giving errors.. but that's not a problem, now i don't …

0
130
Member Avatar for Zssffssz

After trying to start writing my long paper "Programing, The Art" I noticed that, getting user imput, conditional statements, using escape charecters, exicuting system commands, and even declaring variables and using them so that they have use; these are all difficult outside of the domain of C and C++, even …

Member Avatar for xfbs
0
243
Member Avatar for Blue Hawk

hi guys .......i am new around here ......would like you suggest something about..."Gaming using C or C++ languages"

Member Avatar for xfbs
0
290
Member Avatar for raistie

Hi everyone, i am only just jumping on the AJAX train after all these years... and finding it such a headache - been spending days wondering why i keep getting it wrong. I am trying to load a jquery plugin in div using jquery AJAX. current i am using [CODE]$('#content').load('minishowcase/index.php');[/CODE] …

Member Avatar for Airshow
0
221
Member Avatar for hfx642

I'm using a horizontal JSlider. 1. The thumb slider is pointing [B]down[/B], and the ticks and labels are [B]below[/B] the track. How do I reverse this? I want the thumb slider to point [B]up[/B], and the ticks and labels to be [B]above[/B] the track. 2. How do I increase the …

Member Avatar for mKorbel
0
124
Member Avatar for tquiva

** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void …

Member Avatar for larsake27
0
749
Member Avatar for sballew

The source is available at [URL="http://code.google.com/p/java-cli-api/"]http://code.google.com/p/java-cli-api/[/URL]. It is not yet in the Maven Central Repository, but I did post the initial 0.0.1 release on the Downloads page if you do not want to check out the source. If anyone has comments/critiques on it, I would love to hear them. The …

0
131
Member Avatar for mprabuw

Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's …

Member Avatar for mprabuw
0
784
Member Avatar for thenewbiecoder

I have to write a game application that simulates a roulette table. The roulette table has 36 numbers (1 to 36) that are arranged in three columns of 12 rows. The first row has the numbers 1 through 3, the second row contains 4 through 6, and so on. There …

Member Avatar for Clinton Portis
0
380
Member Avatar for rjstamey

Hello all, I am trying to figure out how to create new class objects when the user is asked if he/she would like to. What I have is a program we have to write that takes a certain number of students and keeps track of their name, assignments, and the …

Member Avatar for xfbs
0
480
Member Avatar for wolfgangcs

Just learn PHP and wrote a very simple "app" and now wanting to take it offline. Is JavaScript how we access and create databases on a local level if HTML5 now? Trying to connect all the dots.

Member Avatar for jmichae3
0
135
Member Avatar for jhamill

So I had to make a program that calculates the volume of sound at a different distance, given a reference difference, and sound level, and the new distance. It works sometimes but depends on what values I put in. Much of the time it tells me the new volume level …

0
98
Member Avatar for VB 2012

So im making a app and theres a problem as always +++++++++++++ Form 2 _ [CODE]Private Sub CustmBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustmBtn.Click Dim IconLoc As String Dim CustmIcon As New OpenFileDialog CustmIcon.AutoUpgradeEnabled = True CustmIcon.DereferenceLinks = True CustmIcon.SupportMultiDottedExtensions = True CustmIcon.Filter = "Windows Based Icons|*.ico" …

Member Avatar for VB 2012
0
193
Member Avatar for collinskawere

why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget!

Member Avatar for siskaj
0
141
Member Avatar for morfious90

HI developers I'm new in c# .. i want to make periodic table .. but prob is i don't know how to make that periodic chart .. :( .. i i even dont know which section should i read to learn how make that chart ... i want to place …

Member Avatar for MORFIOUS
0
2K
Member Avatar for yuugib

Hello fellow members, I have recently started to study Java, but the lecturer went through basics very fast and now I'm having problems with starting to write a class. I have an idea of how to write the methods, but how to declare the array properly at the start to …

Member Avatar for stultuske
0
168
Member Avatar for danthevan

Hello I'm a vb.net programmer and I am learning java so I was trying to figure out what is "sender" (VB.net) keyword in java? sender is simply a keyword in VB.net, for example you have multiple buttons having the same event and the code but you differentiate them in the …

Member Avatar for danthevan
0
273
Member Avatar for klemme

Hi all, This is a ? about Ajax, PHP and form processing. When I submit the form further below, nothing happens! I didnt set the form-"action" to anything. I left it out, to make the form submit to the same page, so I can validate on the same page too …

Member Avatar for McLaren
0
234
Member Avatar for Jsplinter

class MapClass holds copies of class DataStruct so that instances of class Action only have to store the key value associated with the DataStruct: [CODE]struct DataStruct { friend bool operator< (DataStruct const &lhs, DataStruct const &rhs) { if (lhs.xData < rhs.xData) return true; else if (lhs.xData > rhs.xData) return false; …

Member Avatar for Jsplinter
0
139
Member Avatar for hudsonzp

[CODE] #include <iostream.h> main(){ int balance; int payment; int payment_num = 1; int months = 0; float interest; cout << "Please input a value for the balance" << endl; cin >> balance; cout << "Please input a value for the payment" << endl; cin >> payment; while (balance > 0) …

Member Avatar for WaltP
0
587
Member Avatar for sasikrishnasamy

Can any one tell me why continue statement is not working in if ? i tried with following code [CODE] outA: if(userValue==randomValue) { int luck=s.nextInt(); int randNo=(int)(Math.random()*(userValue*2+(1))); int arrValue=point[i]; arrValue+=userValue; point[i]=arrValue; continue outA ; } [/CODE] but it shows error

Member Avatar for sasikrishnasamy
0
180
Member Avatar for jhamill

Hey so I've been working on a lab for my intro to software developing class and have been trying to get my program to work for several days now. It's a real basic program, im sure someone will be able to figure out the issue im having. Hopefully once I …

Member Avatar for jhamill
0
233
Member Avatar for senergy

Hello, I've added TXT file to my resource, but now I need to know how to access data in it? can I use iostream to read data? I have this: resource.rc [code]LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDR_0_1 0 "..\\..\\..\\..\\..\\Desktop\\test.txt"[/code] resource.h [code]#define IDR_0_1 119[/code] main.cpp [code]HRSRC hRes = FindResource(0, MAKEINTRESOURCE(IDR_0_1), "0"); HGLOBAL hData …

Member Avatar for Moschops
0
193
Member Avatar for SteveyD

Taking a string result collected from a function in a class (not a form) resultstring1 I want the string resultstring1 to be available to Form1 and Form2. How do I pass the string?

Member Avatar for SteveyD
0
74
Member Avatar for NtheN

[CODE]Imports System.IO Public Class LoginForm1 Dim password_guardada As String Dim user As String Dim pass As String Dim pass_desincriptada As String Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim erro As Boolean = False If UsernameTextBox.Text = Nothing Then MsgBox("Erro, não pode deixar o campo …

Member Avatar for NtheN
0
171
Member Avatar for bangla

Hi, I have two tables. Payment and expense. 1. select sum(amount) from payment gives me total payment amount 2. select sum(amount) from expense gives me total expense. 3. I want to join payment and expense table. How can i subtract query1 minus query2 in one join query? Thanks.

Member Avatar for MeSampath
0
101
Member Avatar for aungmyohein

"aung myo hein" to "nieh oym gnua" how to convert with CharAt GUI JTextField or JOptionPane

Member Avatar for woodenduck
0
190
Member Avatar for csharp_user

Hi, Im new at C# and im trying to make a booking system where i have a combobox on the first form. From that form i have to choose 1 out of 3 items. Depending on which item i choose i will come to another form. How can i get …

Member Avatar for csharp_user
0
163
Member Avatar for bbman

Hey everyone, I have the following varaibles: $_POST['month'] $_POST['day'] $_POST['year'] I need them to be put into a string format such as '2012-02-15' (Year-Month-Day). Could someone please help me do this in php? I've tried a few times but can't connect them with the "-" successfully. Thanks for your help.

Member Avatar for bbman
0
174
Member Avatar for dmservers

Hello all, I've ran into a bit of a problem and I can't figure out how to get out of it. Basically, I have an autosuggest input field on my website and I would like to get data from 2 mysql tables. It is similar to yell.com where you search …

Member Avatar for cwarn23
0
182

The End.