132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jasneg16

i'm trying to make a hangaroo game imitation but i dont know how to make the 4 labels to individually be marked as "X" when i click the wrong letter. i made all the letter answer invisible and the "X" mark invisible [CODE]' the Answer is "PLANTS VS. ZOMBIES" Private …

Software Development visual-basic
Member Avatar for jasneg16
0
100
Member Avatar for gaurav_13191

I am trying to find out inorder successor of a node in a binary search tree. I read the algorithm from "Introduction to Algorithms,Cormen" and understood it. But the problem I face is that I can't find out the parent of the node when it is needed in the algorithm. …

Software Development algorithm c data-structure
Member Avatar for thekashyap
0
426
Member Avatar for swathys

hi, How do i check for time difference for eg: i have code like this [COLOR="Red"]If GetServerDateTime() < Format(Now, "MM/dd/yyyy hh:mm:ss tt") Then msgbox ("Invalid datetime") endif[/COLOR] i want to make it like if the time difference is within 2 min from the current time.... the application still can allowed …

Software Development vb.net
Member Avatar for swathys
0
352
Member Avatar for shivanis17

how to insert the values of checkbox and radiobuttons in the sql databse using vb.net??? we are getting problem in inserting and don't know what to do................ like i have one form with two text boxes named username and password and one label say gender....which has two checkboxes male and …

Software Development sql vb.net
Member Avatar for Saikalyankumar
0
3K
Member Avatar for manofhouse

ok so for some reason its telling me my "else" has no matching "if" in line 51, i have to make it so the binary output is spaced which im pretty sure i did and has to have a separate output if the character length is more than 8 [CODE]#include<iostream> …

Software Development c c++
Member Avatar for WaltP
0
467
Member Avatar for keeda

[CODE] #include<iostream> using namespace std; char* Invert(char* input,int start,int end); char* reversewords(char* current); int main(){ char inputstr[] = "London is a city"; cout << "Inverted string : " << Invert(inputstr,0,strlen(inputstr)) << endl; int start,end ,i; while(*inputstr){ if (*inputstr == ' ' || *inputstr == '\0') { Invert(inputstr,start,end); start = i+1; …

Software Development c++
Member Avatar for keeda
0
213
Member Avatar for MoreHelp09

Create a class that represents the grade distribution for a given course. In this class you should write methods to perform the following tasks: Read the number of each of the letter grades A, B, C D and F Set the number of letter grades A, B, C, D and …

Software Development java
Member Avatar for dononelson
0
1K
Member Avatar for pivotcity

Hey everyone, I'm new to the site, this site returned the most results when trying to look for relevant information so here i am. I have seen people write questions to assignments on here without trying expecting people to answer the assignment question. And ive also seen people steal code …

Software Development c++
Member Avatar for pivotcity
0
186
Member Avatar for Aepexx

Write a Payroll class that uses the following arrays as fields: [LIST] [*]employeeId. [*]hours. [*]payRate. [*]wages. [/LIST] [U]employeeId.[/U] 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 I should have two classes: [LIST=1] [*]Asn07Employees [*]Assignment07 [/LIST] *I am to use arrays and not vectors Here is some skeleton code that my instructor …

Software Development java
Member Avatar for dononelson
0
138
Member Avatar for triumphost

I've download this following program source from a SVN repository.. [url]http://blanddns.no-ip.org:81/repos/public-smart/[/url] How do I compile it?? I've tried but it has c++ and java files included in it.. and some are even in separate folders. Can someone tell me how? Do I have to do command line? Do I need …

Software Development c++ visual-studio
Member Avatar for triumphost
0
115
Member Avatar for cyberbemon

i'm writing a C program in unix that take a number upto 5 and creates that amount of threads..if the use doesn't enter anything the program quits after 5 secs...and this is where i'm stuck T_T ..how do i do this ? time.h ? code of wat i've done so …

Software Development c unix
Member Avatar for Ancient Dragon
0
177
Member Avatar for BlueDevil

Hello everyone,I'm having a problem with an exercise in C,I hope more experienced programmers will help me.I want to create a simple version of the game Tic-Tac-Toe.In my edition there will be a 3x3 matrix.The 2 players that will play the game will start to fill the matrix with the …

Software Development c
Member Avatar for abhimanipal
0
97
Member Avatar for lxXTaCoXxl

Okay so this has been bugging me for quite sometime. I thought if I skipped it and came back maybe I might figure it out but I guess not. The basic idea is to let the user generate their own content into a list box, text box, and the content …

Software Development storage
Member Avatar for lxXTaCoXxl
0
130
Member Avatar for ThrasherK

I don't understand what I am doing wrong here. I am trying to quickly write this program so that I can use it to test a flowchart diagram that I made earlier. When the output comes up on the console "Enter a course name" and I put any input in …

Software Development c++
Member Avatar for ThrasherK
0
171
Member Avatar for uditjindal

I want to update information i previously stored on a file but cannt do. My code is[CODE]//----------------------------- //--------------------------------"s"-Structure created-------------------- struct student { char regno[20]; //----------------------Pinfo var------------------ char name[50],gender[7],dob[20],otno[20],colg[50],branch[20],hno[10]; int rno; //----------------------Einfo var------------------ char doj[10]; float teage,twage; //----------------------Painfo var----------------- char fname[20],occ[50],ladd[100],cadd[100],ftno[20]; //----------------------Payinfo var---------------- char payj[200],dues[200],smoney[200],mode[20]; //----------------------Remarks var---------------- char remark[900]; //----------------------Marks var------------------ …

Software Development c c# c++
Member Avatar for abhimanipal
0
145
Member Avatar for rockerjhr

[CODE]i need a function that checks in two linked lists are equal thi is what i have so far bool equal(list L1 , list L2 , int (*p_cmp_f)() ){ if( L1==NULL && L2==NULL) return TRUE; else if( L1==NULL || L2==NULL) return FALSE; else if( (*p_cmp_f)(L1->data,L2->data) == -1) return FALSE; else …

Software Development c linked-list
Member Avatar for rockerjhr
0
211
Member Avatar for eileenc87

Dear All, The problem I'm facing now is when I set my DateTimePicker format yyyy-MM-dd, when I put a date in that column, they will auto generate the time now. For example, i entered 2011-03-30 but they will save in database 2011-03-30 10:56:54 AM. Question here is: How can I …

Software Development vb.net
Member Avatar for eileenc87
0
91
Member Avatar for ispeakbinary

I am learning c++ now and have encountered a problem in trying to create single digit addition, multiplication and subtraction math questions. The numbers used in the questions are randomly generated from 1 to 9 and when I try to print the answer for the corresponding question, I get a …

Software Development c++ oop
Member Avatar for prvnkmr194
0
200
Member Avatar for leo88

Hi, i had write the following code but it seems like gt exception, can help me check got what problem? Dictionary<string, double> sortList4 = new Dictionary<string, double>(); List<double> list = ISUPP.Items.OfType<double>().ToList(); double[] value1=list.ToArray(); int c = 0; foreach (string gk in Comset2.Items) { sortList4.Add(gk, value1[0]); c++; }

Software Development
Member Avatar for leo88
0
141
Member Avatar for rookanga

I need to make an address book that doesnt use a database. It suppose to have First name Last name Birthday Telephone number Address (street) Address (city, state, zip) Email address All information shall be stored in a structure at run time The application should read and write to a …

Software Development data-structure vb.net
Member Avatar for rookanga
0
293
Member Avatar for valestrom

So i'm making this periodic table kinda program here mainly outta boredom. But I came across a problem, when I type in the name for the element, the program just closes. Any ideas on how to get it to work properly. Here's my current code. [CODE]#include <iostream> #include <windows.h> #include …

Software Development c++
Member Avatar for valestrom
0
153
Member Avatar for rockerjhr

[CODE]#include <stdio.h> #include <stdlib.h> #include "globals.h" #include "list.h" status write_int(generic_ptr p_n)){ printf(" %d " , *(int *)p_n ) ; return OK ; } int compare_int( generic_ptr x , generic_ptr y){ if( *(int*) x < *(int *)y ) return -1 ; if( *(int*) x > *(int *)y ) return 1 ; …

Software Development c
Member Avatar for rubberman
0
204
Member Avatar for ajayb

[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * VideoStreamingform.java * * Created on 29 Mar, 2011, 7:01:42 PM */ package audivideotransmit; import javax.media.MediaLocator; import javax.swing.JOptionPane; /** * * @author ajay */ public class VideoStreamingform extends javax.swing.JFrame { …

Software Development java java-swing open-source
Member Avatar for mcriscolo
0
120
Member Avatar for Khoanyneosr

[CODE]#define WIN32_LBAN_AND_MBAN #include <windows.h> LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASSEX windowClass; ZeroMemory(&windowClass, sizeof(WNDCLASSEX)); windowClass.cbSize = sizeof(WNDCLASSEX); windowClass.style = CS_HREDRAW | CS_VREDRAW; windowClass.lpfnWndProc = (WNDPROC)WindowProc; windowClass.hInstance = hInstance; windowClass.hCursor = LoadCursor(NULL, IDC_ARROW); windowClass.hbrBackground = (HBRUSH)COLOR_WINDOW; …

Software Development c++ visual-studio
Member Avatar for Khoanyneosr
0
138
Member Avatar for sumprit

Hi, everyone i have a problem in displaying Jlabels and Icons in a single JPanel. I have used Gridlayout and tried to display the Icons and JLabels in the JPanel. But using GridLayout the JLabels and Icons get dispersed and not in proper order and also the icon get crop, …

Software Development java
Member Avatar for sumprit
0
174
Member Avatar for sbiren

[CODE]def main(): i=input() print(i+1)[/CODE] (I use PYTHON 3.2) Why i get an error converting message ?

Software Development python
Member Avatar for richieking
0
176
Member Avatar for SeePlusPlus2

I don't understand how it works. What are lines 19-33 doing exactly? Why did they do "arraySize = obj.arraySize;" ? [CODE]#include <iostream> #include <iomanip> using namespace std; class NumberArray { private: double *aPtr; int arraySize; public: NumberArray(NumberArray &); NumberArray(int size, double value); ~NumberArray() { if (arraySize > 0) delete [] …

Software Development c++
Member Avatar for mike_2000_17
0
117
Member Avatar for maxxjr

(I did search for this, but didn't find exactly what I am looking for). I am working on a function that will generate a sine wave at a given frequency AND sampling rate. Something that will "fill a 10k sample buffer with a 1 kHz wave at a 44.1 kHz …

Software Development c
Member Avatar for gusano79
0
8K
Member Avatar for ITKnight

Hi all, I already save my login config at registry. Thanks to Jx_Man and Debasisdas for helping me on previous thread. My following code running nicely. [CODE]SaveSetting "AddressBook", "Login", "Username", Trim(txtUserName.Text)[/CODE] My settings currently saved on "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AddressBook\Login" How i can save it one level more deeper. …

Software Development visual-basic
Member Avatar for ITKnight
0
101
Member Avatar for Resentful

I'm currently working on one of the last parts of a project and I'm at a standstill. I am needing to remove pixels from an image that are smaller than a certain aspect. For example, if an image has a square or triangle that is smaller than 35,35 pixels, I …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
279
Member Avatar for ppatryk

Hi, is it ok to use an if condition as a presence check, this is my code - [ICODE]if (textBox1 != null) { MessageBox.Show("Dont Leave Blank"); } else MessageBox.Show("Successfully added");[/ICODE] my code runs however no matter if there is text in textbox1 or if its left empty it shows "Dont …

Software Development
Member Avatar for gusano79
0
246
Member Avatar for coconutdumplin

Hi guys this is my very first python program I've been trying to use re.match to test to see if a string is an identifier as defined by this syntax [CODE]identifier -> letter{ letter| digit}[/CODE] I tried the following statements but when i test my program every single time it …

Software Development python
Member Avatar for coconutdumplin
0
117
Member Avatar for shyla

the letter e is the most frequently used letter in the english language, and the letter z is the lease used. a friend of yours doing a blah blah believes that this may not be necessarily be true of writings of first year college students. to test his theory, he …

Software Development c++ file-stream
Member Avatar for shyla
0
1K
Member Avatar for Taimoor Rana

Hello, I'm having trouble displaying an output from my code. It suppose to act like a stopwatch where seconds increment and then minutes and then hours but for some reason its not working and I cannot figure out why... :-( hope some some can guide me. Thanks [CODE]/* * To …

Software Development java java-swing
Member Avatar for Taimoor Rana
0
1K
Member Avatar for hawita

Hi i am trying to write a program where the user inputs a list of space separated words (more than ten are required); the program then reverses and prints the order of the words. Example: input:“Extra Credit Programs”; output: “Programs Credit Extra” but my program s far is not behaving …

Software Development c++
Member Avatar for hawita
0
138
Member Avatar for denmarkstan

i created a new project, added some textboxes and labels with one button. when i built the project the first time, i just got the error: general error c101008d: Failed to write the updated manifest to the resource of file "..\Debug\Login.exe". Access is denied. mt.exe Login someone help me please!

Software Development c++
Member Avatar for chrjs
0
192
Member Avatar for penguino138

I need help position a bunch of things. Mostly the text bar. Here's my code: [CODE] package swingHW2; import java.util.Scanner; import javax.swing.*; import java.awt.*; public class swingHW2 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // The Layout FlowLayout lout = …

Software Development flash gui java java-swing
Member Avatar for penguino138
0
186
Member Avatar for jowana

Hi, what does this error mean? : error C2440: 'initializing' : cannot convert from 'char' to 'const char *' i'm trying to read an image from a file using this code: [COLOR="Green"]#include "itkImage.h" #include "itkImageFileReader.h" int main( int , char * argv) { typedef unsigned char PixelType; const unsigned int …

Software Development c++
Member Avatar for jowana
0
275
Member Avatar for Aepexx

Here is the output that I should be receiving: [CODE] Please enter the name on the check (First Last): John Doe Please enter the amount for the check (as a float): 123.45 --------------------------- Pay to : John Doe $123.45 one hundred twenty three dollars and 45 cents[/CODE] Now, what I …

Software Development java
Member Avatar for Aepexx
0
180
Member Avatar for nadleeh

how would i go about sorting multiple items in a binary search tree.. for example if i have a list of first last and middle names and i want to sort it in a tree by last name, how would i store all three of them in each node.. should …

Software Development c
Member Avatar for Narue
0
122
Member Avatar for ekin5683

Hye..i dont know how to output the position for array. [QUOTE] Enter value for array A(4x5): 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 Enter value for array B(4x5): 1 2 3 4 5 1 2 3 4 …

Software Development c++
Member Avatar for Narue
0
125
Member Avatar for nihaS

hi I m new here and not sure about how things go about... but could any one tell me about collaborations of objects in c++

Software Development c++
Member Avatar for rubberman
0
1K
Member Avatar for leo88

How to get minimum value? [code] ArrayList arrKey = new ArrayList(); double v; double min; foreach (string subKey in sortList4.Keys) { foreach(string mee in arrKey) { sortList5.Add(mee,1); if(sortList3.ContainsKey(mee)) { sortList3.TryGetValue(mee, out v); if(v>min) { //what should do at here? } }}} [/code]

Software Development
Member Avatar for leo88
0
146
Member Avatar for touda

I'd like to know: 1.) On line of code which says: "Production possibleExpansion(infile);", what is the nature of possibleExpansion(infile)? Is it a function? Is it an object of class Production? 2.) On line of code which says: "possibleExpansions.push_back(possibleExpansion);", what is the meaning of it? [CODE]#include "definition.h" #include "random.h" Definition::Definition(ifstream& infile) …

Software Development c++
Member Avatar for Narue
0
150
Member Avatar for Jessurider

here table is creating but the values is not inserting [CODE] private void button_Click(object sender, EventArgs e) { SqlConnection cn; cn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=J:\\Rcar\\motion\\db_image.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"); if (cn.State==ConnectionState.Closed) { cn.Open(); } SqlCommand cmd; string sq1; sq1 = "CREATE TABLE [" +Box1.Text+ "] (name CHAR(50) PRIMARY KEY," +"id CHAR(15), …

Software Development open-source
Member Avatar for Mitja Bonca
0
165
Member Avatar for vavishy

The CashAndCreditShop supermarket determines the retail price of a product based on the time it is expected to stay on the shelf. Any item that is expected to sell in one week or less is marked up 10%, and any item that is expected to stay on the shelf for …

Software Development c c# c++ ios
Member Avatar for mcriscolo
0
212
Member Avatar for casinoua

[ICODE]import java.io.*; import java.util.*; class MyClass { public static void main(String s[]) { int a,b; a = Integer.parseInt(s[0]); b = Integer.parseInt(s[1]); System.out.print("Hello World \n"); } }[/ICODE] I'm getting the following error " Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at MyClass.main(Myclass.java:8) " Someone please help me out.....

Software Development java
Member Avatar for Ezzaral
0
91
Member Avatar for smandape

Hello experts, I am trying to extract the abstract from the following XML code that appears as follow; [CODE] <abstract> <p> In eukaryotes, glutathione S-transferases (GSTs) participate in the detoxification of reactive electrophillic compounds by catalysing their conjugation to glutathione. GST is found as a domain in S-crystallins from squid, …

Software Development xml
Member Avatar for iceandrews
0
113
Member Avatar for MrHardRock

Hey everyone the program I am writing has to find the mode, max, and median from an array. I think I have everything except there is one error I cannot figure out, thanks in advance. [CODE] import TerminalIO.KeyboardReader; public class med { public static int MAX(int[] a) { int MAX …

Software Development java
Member Avatar for MrHardRock
0
104
Member Avatar for globusak

I have a problem that i need to solve, and dont know how to do it. I have two arrays of 80 numbers (array[1..80] of integer) and i want to multiply them, saving the result in another array. I am beginner in pascal, learning it at school, so i have …

Software Development pascal
Member Avatar for Wolfgan
0
704

The End.