132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sidra 100

i have jst started programing in java m beginer. m making gui which contains a two radio button a slider and a text message. although its compiling coreectly but it doesnot display any thing [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GUI { JFrame frame; JLabel coord; JRadioButton Man=new …

Software Development gui java java-swing
Member Avatar for hfx642
0
128
Member Avatar for tnimblett

Hi, I don't really have a programming issue rather a artistic issue. Look at the following code of the front view an unfinished building. I'm trying to add a side view to the right or left. I just can wrap my mind on how it is supposed to look. [CODE] …

Software Development java
Member Avatar for tnimblett
0
101
Member Avatar for renzlo

Hi All, I need to compare one file in each file in the folders, some sort of duplicate check through md5 hashcode that I've found in my google search. Here's the code of functions: [CODE]Public Function CompareFiles(ByVal FirstFile As String, _ ByVal SecondFile As String) As Boolean Return ReadFile(FirstFile) = …

Software Development file-system vb.net
Member Avatar for renzlo
0
325
Member Avatar for dsmey

Hi all, I'm trying to create a simple function in MS Visual Studio which would take a function and a range of values, divide that range into 500 equal steps, and barf out the results to a CLR richTextBox. The function looks like this: [code]void Form1::Range(double from, double to, double …

Software Development c++ visual-studio
Member Avatar for Narue
0
174
Member Avatar for MrEARTHSHAcKER

Hi, I created the class for converting decimal to binary numbers and I wish to make the Windows application but there's an error: [ICODE]E2285 Could not find a match for 'TForm1::TForm1()' [/ICODE] The source code: [CODE]//--------------------------------------------------------------------------- #include <vcl.h> #include<math.h> #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 …

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
204
Member Avatar for akshaya kochare

Please do help me!!! i have to validate date using date time picker such that u can't choose the date /month/year before you were born.

Software Development vb.net
Member Avatar for bluehangook629
0
79
Member Avatar for evilsilver

c++ I am making a game and decided to put in a bogus company animation thing, kinda like Blizzard does, but need to find a way to play the file that we made without going on in the code. ie it comes to the line to play the file (c:\evilsilver.avi) …

Software Development c++ file-system
Member Avatar for omid80
0
180
Member Avatar for baldwindc

Hi, I am tasked with writing selection sort in assembly. We are writing for the ARM processor. Currently, this is what I have: [CODE] sort2: 73 stmdb sp!, {v1-v5, lr} @ Copy registers to stack 74 ldrb r5, [a2] @ J = n 75 76 ldrb v2, [a1] 77 cmp …

Software Development assembly programming-construct
0
394
Member Avatar for Taino

Hi, I have an assignment that requests that two integers be provided in a range and that these numbers should be checked if they are prime or not. I am having the following problems with my code. a) [U][COLOR="Red"]the number 4 shows up in my calculation and four should not …

Software Development c++
Member Avatar for Clinton Portis
0
159
Member Avatar for notSo smartGuy

I am trying to read from a file and save rows to a string or array Im not sure which would be more efficient. string[] array = new string roomNumber[30]; string[] testScore; I have the test file set up the following with random values; studentID, classroomNumber (1-30), testScore (1-100); SID001, …

Software Development
Member Avatar for thines01
0
324
Member Avatar for sohair

Hello guys this is my first post I was having trouble interfacing a remote controlled car using serial port I have made the circuit for interfacing the serial port with the relays to control the car remote but the problem is that I need to make a C++ or C …

Software Development c++
Member Avatar for raptr_dflo
0
355
Member Avatar for coolbeanbob

This is a lot of code, but most can be ignored. I am just having a problem with using templates/types. main.cpp(48) : error C2664: 'HashTable<Entry>::insert' : cannot convert parameter 1 from 'int' to 'int &' There is basically a type mismatch between line 48 of main (int) and the HashTable::insert …

Software Development c++
Member Avatar for raptr_dflo
0
493
Member Avatar for anwar.mustafa

I am facing a problem, I have pulled some records in DataGridView from database. Now I want that when I select some rows from DataGridView and click on command button, ID's of all selected rows should be displayed through message box. By using followng code I am able to display …

Software Development display vb.net visual-basic
Member Avatar for lolafuertes
0
160
Member Avatar for kodemaaster

I am declaring a structure as this [CODE]typedef struct Request { deque<int> roomsList ; }Request;[/CODE] Then , in some other function I get a segmentation fault in the highlighted line : [CODE] int initRoomsList(Request *R) { int roomSatisfying ; char roomName[20] ; int roomNum, capacity,wb,proj, lcd, sound, aud, vid , …

Software Development c++
Member Avatar for raptr_dflo
0
2K
Member Avatar for Mike Bishop

i am having issues with an update query. i normally use SQL 2005 but for this project i am using an access 2007 database please can anyone point me in the right direction, [CODE] Dim con As New OleDb.OleDbConnection Dim cmd As New OleDb.OleDbCommand Try con.ConnectionString = "Provider=Microsoft.Ace.OLEDB.12.0;Data Source=" & …

Software Development microsoft-access open-source vb.net
Member Avatar for Mike Bishop
0
205
Member Avatar for thenewbiecoder

These are my homework questions. I have attempt to do most of it and I need somebody to check to see if im doing this right. 1. Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID number as …

Software Development c++
Member Avatar for raptr_dflo
0
211
Member Avatar for mrnutty

This code below add two positive numbers in any base from binary to base 36 with any length allowed by memory. The snippet comes with examples. There might be some bugs, because I haven't tested extensively, so forgive me if you find bugs. Hope people find it useful somehow. Thanks …

Software Development c++
Member Avatar for Tumlee
0
690
Member Avatar for xxblinddzxx

Hi , i am on a projet and i am stock. I'll first explain you my prog abit so you'll know what im looking for. First my prog scan a specific path "C:\music" which contain Mp3. Then it takes the MD5# of all mp3 and put it in a listbox1. …

Software Development vb.net
Member Avatar for xxblinddzxx
0
141
Member Avatar for PlUmPaSsChIcKeN

Ive created a dictionary with all the letters of the alphabet, assigning each one to another random letter. encode={'b':'a','B':'A','c':'e','C':'E','d':'i','D':'I','f':'o','F':'O','g':' u','G':'U','h':'b','H':'B','j':'c','J':'C','k':'d','K':'D','l':'f','L':'F','m ':'g','M':'G','n':'h','N':'H','p':'j','P':'J','q':'k','Q':'K','r':'l','R':'L' ,'s':'m','S':'M','t':'n','T':'N','v':'p','V':'P','w':'q','W':'Q','x':'r','X': 'R','y':'s','Y':'S','Z':'t','z':'T','a':'v','A':'V','e':'w','E':'W','i':'x',' I':'X','o':'y','O':'Y','u':'Z','U':'z',' ':' ','!':'!'} Now what Im trying to do is to create a single function that takes the input, does the calculation, and produces the output, using …

Software Development python
Member Avatar for PlUmPaSsChIcKeN
0
171
Member Avatar for meli1

Heya i ran into a little problem, well more of a mental dilemma using strtok(), i already know how this function works, heres an example code: [CODE] void split_me(char *input) { char *split = NULL; //reset split size_t len = strlen(input); char to_array[len]; int i = 0; split = strtok(input, …

Software Development c
Member Avatar for meli1
0
144
Member Avatar for akshaya kochare

i need to validate the textbox such that in can accept numbers only but the entered no should be greater than 0 , it can be 0.1 and should be less than 101.

Software Development vb.net
Member Avatar for Mitja Bonca
0
228
Member Avatar for ronnieaka

i have been trying in vain to implement fibonacci in prolog, and so far i've done that in c++,javascript,python and java. but it just irritates me since i'm new to prolog and i just can't code much, because i haven't seen the prolog equivalents of c++'s for loops,if-else statements,basic variable …

Software Development
Member Avatar for TrustyTony
0
7K
Member Avatar for Panathinaikos22

Whats wrong with this? [CODE] NAM test // Namee ORG 0 // Memory start point LDA 100 / Load to register A memory adress 100, A=100 ADA 200 // Addd to register A memory address 200, A = 100+200 END [/CODE]

Software Development assembly
Member Avatar for gizerakos
0
84
Member Avatar for KWhite

boolean robotsAlive[]; int robotCount; public int deadRobots (int robotCount, boolean robotsAlive[]) { int deadRobots = 0; boolean robotsALive = true; for( int i = 1; i > robotCount; i++ )//a for loop to loop through the array { //inside the for loop if( robotsALive[] == false ) //and if statment …

Software Development java
Member Avatar for JamesCherrill
0
183
Member Avatar for angeriel1

how can I use JList object in place of JFilechooser show the directory content.any tips or somthing to help me understand this will be apreciated. [CODE]// Display directory content in a JTextArea object. // The user selects a directory via JFileChooser object. import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; …

Software Development java java-swing
Member Avatar for JamesCherrill
0
155
Member Avatar for PapaGeek

I’m an old fashion Visual Studio 6 C programmer. I’m writing my first 2008 Form application using C++. The application will be able to run multiple instances at the same time. The first tool will be a selection box where you can chose the project you are working on with …

Software Development c++ visual-studio
Member Avatar for PapaGeek
0
127
Member Avatar for CSloan7597

Hey everyone. I have recently decided to try and learn how to use java Sockets for client/server communication, as well as swing and threads, etc. and have (pretty much) completed a small client server application. The application is basically a syntax-highlighting notepad, a client swing GUI which connects to a …

Member Avatar for CSloan7597
0
295
Member Avatar for Wolxhound90

Hey all, I'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string. I'm just wondering if there's an easier way to it other than: [CODE]CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)[/CODE] I have thought about creating a …

Software Development vb.net
Member Avatar for codeorder
0
814
Member Avatar for anwar.mustafa

I am developing a Windows Forms Based Application using dbo.database and Visual Basic: I populate some Orders in DataGridView1 using LINQ 2 SQL from "tbl_Orders" where OrderStatus is "Pending". I change OrderStatus Column Type to "CheckBox" in DataGridView, Now I want that when I select some records (Orders) by checking …

Software Development asp.net vb.net visual-basic
Member Avatar for adam_k
0
309
Member Avatar for FELIGO

how can I sort rows of a 2D array in ascending order?

Software Development
Member Avatar for thines01
0
2K
Member Avatar for FELIGO

My Console Application window can't display letters from other alphabets(e.g russian) when I run the program. It's just displaying question marks in place of them. Please help if you can.

Software Development
Member Avatar for arunkumars
0
173
Member Avatar for coroche

Hi I'm trying to write a program that will print the results of the series sqrt(1), sqrt(1)+sqrt(2), sqrt(1)+sqrt(2)+sqrt(3),...., sqrt(1)+sqrt(2)+sqrt(3)+...+sqrt(n) where n is chosen by the user. The output should look something like 1, 2.414, 4.146, 6.146, 8.382, 10.831, ..... Here's what I have so far [CODE]#include <iostream> #include <cmath> using …

Software Development c++
Member Avatar for coroche
0
138
Member Avatar for sys73r

input.csv 1,2,text, date, qwertyuiopasdfghjklñzxcvbnm, yhnujmik,2121212121 [code] import csv reader = csv.reader(open('input.csv', 'rb'), delimiter=',',quoting=csv.QUOTE_NONNUMERIC)) csv_out = csv.writer(open('output.csv', 'w')) for row in reader: content = row[0] + row[4] + row[5] + row[11] + row[12] + row[13] + row[16] + row[17] + row[22] csv_out.writerow( content ) [/code] # I want it to save …

Software Development python
Member Avatar for sys73r
0
200
Member Avatar for techyworld

Hii i want to save data to the database when user register. I dont know whats wrong. Am having this error: Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on line 13 Warning: DOMDocument::schemaValidate() [domdocument.schemavalidate]: The document has no document element. in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on …

Software Development php xml
Member Avatar for pritaeas
0
437
Member Avatar for mehnihma

Can you help me how to convert this for loop to Enhanced For-Loop? Thanks [CODE] for (int x = 0; x < grade.length; ++x) if (grade[x]==grade1) { gradesum = score [x] * testscore1; }[/CODE]

Software Development java
Member Avatar for masijade
0
144
Member Avatar for Daniel85

***I have a feeling that there might be something wrong with my function int fgetAnswers(int*pos, char res[], FILE*inp); I am able to compile, but the problem is that wherever the black screen appears, a box would pop out saying that the program has stopped working. Can any of you guys …

Software Development c
Member Avatar for Daniel85
0
167
Member Avatar for hemant_rajput

Hi, i've used the Beautifulsoup module to parse the site and grab the img tag from it, but the problem is , Beautifulsoup while parsing not returning the whole content of the given url. The truncated content contain the image location I want to download: [CODE] from urllib2 import urlopen …

Software Development image python
Member Avatar for Gribouillis
0
461
Member Avatar for prithvisrini

Hi, I have declared a function as virtual in base class. In derived class I am overriding the same function. According to me function in derived class should have been executed when I make a call to the function. But the base class function is executed. Does anyone knows why …

Software Development c++
Member Avatar for prithvisrini
0
103
Member Avatar for skylinedrifter

Hey fox... got a problem in codding im a newbie at this so take it easy on me ... The question Write a C++ program by completing the following steps: Write a value-returning string function called MonthAbbrev that takes an int value as a parameter. The parameter, month, represents the …

Software Development c++
Member Avatar for richieking
0
149
Member Avatar for z_zendegi

Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel …

Software Development c#
Member Avatar for jz_gook
0
714
Member Avatar for Daniel85

Is there anything wrong with my coding? Why do I keep getting the message..."Error Opening Input File!" #include <stdio.h> #include <conio.h> void fgetAnswers(FILE*,int*,char[]); void fgetAnswers2(FILE*,int*,int,char[]); int main() {char ans[50],choices[50]; int n,i,id,missed[50],tot; FILE *input,*output; input = fopen("examdat.txt","r"); if(input == NULL) { printf("Error opening input file!\n"); getch(); return 0; } fgetAnswers(input,&n,ans); output …

Software Development c
Member Avatar for Daniel85
0
227
Member Avatar for nav07

My date and time is different, i want time calculate in total minutes example:- A time is 10/19/2011 1:26:00 PM B time is 11/11/2011 7:14:00 AM please suggest.....

Software Development
Member Avatar for nav07
0
102
Member Avatar for xiangzhuang

Hey guys, I have this HW for school for Java but I just can't seem to figure it out. I know I have to use a for loop for it but I just can't seem to figure out everything else. Thanks :D public int factorial(int n) { }

Software Development java
Member Avatar for JamesCherrill
0
429
Member Avatar for pseudorandom21

I have a database bound to a listbox but I would like to view only certain items, how to do that? It sounds like a really simple task but I don't know how to do it.

Software Development
Member Avatar for pseudorandom21
0
106
Member Avatar for roshan_iiita

I am working on Hand Gesture Recognition System and I want to generate keystrokes for any application using gestures as input. But i am not getting any idea that how can i make this work on both Linux and Windows platform, as keybd_event is there for Windows but it doesn't …

Software Development c++
Member Avatar for roshan_iiita
0
334
Member Avatar for spelltox

Hi guys ! A little something i hope you could help me with - I've converted an html to XML and now i want to get all the child nodes nested within a DIV element with a specific attribute (class="itemInfo"). Because the html that the XML is based on changes …

Software Development vb.net xml
Member Avatar for spelltox
0
482
Member Avatar for iamthesgt

This is another homework problem. I thought it was easier, and I wouldn't need help, but I keep getting a segmentation fault when running the program. The assignment is to use a recursive function to output the amount of candybars we can buy with a user-inputted amount of money. Each …

Software Development c++
Member Avatar for markshah2
0
632
Member Avatar for lavenzo

hi, i having some problem here. I have a DLL written in C# but I need to re-write it in C++ using visual studio 2005. I have no C++ language..o.O so could some one help guide me? help translate my code..should i use new project > 'Class Library' project or …

Software Development c c# c++ visual-studio
Member Avatar for thines01
0
2K
Member Avatar for Dakot

hello , i'm trying to solve this problem [QUOTE]Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 1 2 3 5 8 (beginner)[/QUOTE] the problem is that the …

Software Development c c# c++
Member Avatar for WaltP
0
184
Member Avatar for triumphost

I have a file that has the layout: [CODE] 0 0 0 1 1 0 1 1 [/CODE] I want to read it into a multidimensional array and use the values. The thing is I don't know how to read it in.. I can read the amount of columns and …

Software Development c++ file-system ios
Member Avatar for triumphost
0
244

The End.