199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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, … | |
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 = { … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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? … | |
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 … | |
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 … | |
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 … | |
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 … | |
hi guys .......i am new around here ......would like you suggest something about..."Gaming using C or C++ languages" | |
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] … | |
![]() | 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 … |
** 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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. ![]() | |
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 … | |
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" … | |
why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget! | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
[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) … | |
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 | |
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 … | |
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 … | |
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? | |
[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 … | |
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. | |
"aung myo hein" to "nieh oym gnua" how to convert with CharAt GUI JTextField or JOptionPane | |
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 … | |
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. | |
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 … |
The End.