132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samurai1200

I have a 2D array whose cells represent each character in a terminal window that can either be ON or OFF (boolean). [CODE] bool grid[24][80];[/CODE] Then, using the ncurses API, I grab a key press: [CODE]key = getch();[/CODE] where key is an int type. The 'q' key is what I …

Software Development api c++
Member Avatar for samurai1200
0
696
Member Avatar for laveena

hi, I want a code for opening a particular folder on button click. I'm developing an file searching application for linux which gives result in jtable. I want to open the containing folder of selected file I able to retrive the parent folder path from jtable. I just want to …

Software Development java
Member Avatar for javaAddict
0
88
Member Avatar for miturian

So, I'm still working on my matrix class (in case anyone reading this also read my thread from the other day). I really like the array-feature that I can initialize an array with a list of numbers, such as [CODE]double array[2]={1,2};[/CODE] and would like to implement that in my matrix …

Software Development c++
Member Avatar for miturian
0
86
Member Avatar for NinjaLink

My program is created to output permutations. Depending on the input that I put in, I sometimes get the correct result, but it is not accurate. However, when I do "abc", I get the correct result. When I input peoples names, I get a random result. After trying to figure …

Software Development algorithm c c# c++
Member Avatar for Sodabread
0
133
Member Avatar for mysticstylez

Hi, I have a text file that contains bunch of phone numbers. Some contain invalid characters and some are too long. How do i read this file into a list using regex. I only want valid phone numbers to populate the list, and skip the invalid ones. this is what …

Software Development python regex
Member Avatar for TrustyTony
0
7K
Member Avatar for ranuvishwakarma

hoow to inset into database default image in byte formate when not selecting image from fileupload. protected void subbtn_Click(object sender, EventArgs e) { if (fp.FileContent == null) { Byte[] imgByte = new Byte["image/1.jpg".Length]; } else { FileUpload img = (FileUpload)fp; Byte[] imgByte = null; if (img.HasFile && img.PostedFile != null) …

Software Development image
Member Avatar for rohand
0
110
Member Avatar for jiten_raulo

Hi Experts, I have question on the bellow program (runs perfectly), 1. As I have created an instance (object) of startup class and we dint called method [B]paint[/B] from the [B]main[/B] method using the object but [COLOR="Red"]still it is called (how?)[/COLOR]. But in case of Instantiable classes, we need to …

Software Development java
Member Avatar for jiten_raulo
0
107
Member Avatar for coldheart27

using exception try, catch and finally derive a program that accepts any 10 letter string. if the string is greater than 10, display an error message; if string has no vowel display an error message else display only all vowels. can u help me for the java code of this …

Software Development java
Member Avatar for kvprajapati
0
201
Member Avatar for Iam3R

Hi, [CODE] #include<stdio.h> int main( void ) { float a = 0.2; if( a > 0.2 ) printf( "\n a is greater than 0.2" ); else if( a < 0.2 ) printf( "\n a is less than 0.2" ); else printf( "\n a is equal to 0.2" ); return 0; …

Software Development c
Member Avatar for Banfa
0
103
Member Avatar for painejake

This is my first time with C# (So far I've been using it for about a week) and I have a few small issues and would like some pointers on tiding up my code. I have decided to make this section of my code multithreaded as before it was cause …

Software Development
Member Avatar for powerbox
0
116
Member Avatar for prosmart1

Hi Everybody, I'm was given a project that manages sales activity within a company.I'm free to choose any language i would like. It is not a very complicated application. What are the advantges of programming the app in C# .NET vs.VB6 ? What would you choose? Thanks Dan

Software Development asp.net c# visual-basic
Member Avatar for QuickView
0
93
Member Avatar for ranuvishwakarma

i want to fill one datagrid on click of another datagrid cell values on same page.......plz answer. i used on datagrid having technology name on click of any technology name i want to fill another datagrid from database on same page.i used viewstate but didn't work......

Software Development
Member Avatar for rohand
0
78
Member Avatar for mmpjb

Hi all, Currently trying to write a piece of code for a project at university, with very little C Compiler experience I am struggling... Basically- we have 8 LED's, and 8 switches. We want 4 of the 8 LED's to light up at random when the program is run, that …

Software Development c++
Member Avatar for jwenting
0
301
Member Avatar for thompsonSensibl

Hi there I'm trying to check if an array area exists, e.g. [CODE]if (array[99][99].exists){ ....}[/CODE] THis doesn't work... e.g. It gives me an arrayIndexOutOfBounds error. What I need for it to do is just ignore and carry on the code. If it finds an arrayIndexOutOfBounds, fine, carry on, just ignore. …

Software Development java
Member Avatar for masijade
0
90
Member Avatar for deedee2

Hi there, I was wondering if anyone could help me find a procedure in python that takes in an unsorted list, and returns the difference between the largest and smallest values in the list, without using the built in max/min/sort procedures. Thank you!

Software Development python
Member Avatar for deedee2
0
111
Member Avatar for magicg

Hi I want c language code to open my web browser (IE or Firefox) and close it after 2 min. can any one help me?? please i need it.

Software Development c web-browser
Member Avatar for Software guy
0
146
Member Avatar for Phasa

It compiles and runs, but after "Here is the starting empty cubes vector" prints, I get this message: [B] Debug Assertion Failed![/B] [B] Expression: vector subscript out of range[/B] Can someone help me, please? [code=CPP] #include "stdafx.h" #include <iostream> #include <vector> using namespace std; // Cubed integers class cubes { …

Software Development c++
Member Avatar for caut_baia
0
139
Member Avatar for Lee21

hi guyz,how will I find an item that's in the combobox that everytime I pressed the keyboard it will be automatically displayed in the combobox?for example I have Items like cats,pigs,dogs in the textbox then when I press d or do the Items dogs will be displayed..please help me here!

Software Development vb.net
Member Avatar for Lee21
0
73
Member Avatar for mansoorhacker

Hello To all Great developers. i want to use urdu in my textboxes and grid and i want to insert urdu in to database via these controls, plz let me explain step by step how to use urdu in c#.net. in vb6.0 we used urdutexbox.ocx control but .net i think …

Software Development c#
Member Avatar for mansoorhacker
0
94
Member Avatar for Lefty_AU

Hi Guys, Ive been trying to write an app to receive exports of songnames from a broadcast automation system it receives the export via TCP/IP for the most part it works however I cannot get it to rotate songnames around in an array [CODE] var export:array[1..175] of char; songs:array[1..8] of …

Software Development pascal session
Member Avatar for FlamingClaw
0
101
Member Avatar for ibrahim2010

hi all,in one of my interview the question paper was like this. we need a banking system application which is having account types like saving account,current account and these account type having deposit,withdraw which are different for the account type,but the view account balance is same for the account type.you …

Software Development visual-basic
Member Avatar for AndreRet
0
118
Member Avatar for yanz

hi everyone, Recently i am doing a web application on receiving sms by PC. anyone has got any codes for receving sms using vb.net? or does anyone know where i can get relevant info for it? Thank you very much!!

Software Development vb.net
Member Avatar for mukuljain
0
111
Member Avatar for top123

hi...i worked on few projects on visual basic 5.0 on school which has windows xp......then i created exe file for it and tried to run it on my computer which has windows vista....but i am getting error message which says MSVBVM50.dll was not found...can somebody help me plz...

Software Development visual-basic windows-vista
Member Avatar for kinwang2009
0
119
Member Avatar for jelinky

hey, i am new here but i have taken a few c++ classes. im having trouble with a very easy program and i just cant figure out why its doing this. ive looked around the forum already and didnt find anything helpful so i thought id ask. [CODE] include <iostream> …

Software Development c++
Member Avatar for bugista
0
141
Member Avatar for bninja

Hi How can i check if some value exists in the data reader How can i do that ? any ideas please .

Software Development vb.net
Member Avatar for Oxiegen
0
223
Member Avatar for Duki

Hey guys, I'm trying to run this code [code=c++] // Copyright (C) 2001-2003 // William E. Kempf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } …

Software Development c++
Member Avatar for Duki
0
145
Member Avatar for black_berry

Hello, I have got a Java queue and i want to print out the smallest number in the queue. Right now my program prints out the first number in the queue. Here is the code: [CODE] import java.util.ArrayList; import java.util.Iterator; public class Assign1 { private final int MAX_QUEUE_SIZE = 5; …

Software Development java queue
Member Avatar for ~s.o.s~
0
112
Member Avatar for sharathk60

Please help to come to from this problem: i had written a sample code to display Hello and imported as jar files then created new dynamic web project and using a hello.jsp page i am calling the applet class but its not display the applect please give me the solutions: …

Software Development java java-jsp xml
Member Avatar for sharathk60
0
337
Member Avatar for Jsplinter

I am trying to write an if statement to test whether two conditions are both true. However, my code does not work when I combine the both tests into one if statement like: [CODE] if((last_smallest < samples[i]) && (samples[i] < current_smallest)) current_smallest = samples[i]; [/CODE] I know it is possible …

Software Development c++
Member Avatar for Jsplinter
0
114
Member Avatar for jemz

hello need help for this how can i trap if my mch_rs!qtyh is zero example H1010 the quantity on hand is 10 then if i input quantity 10 then click the add button so now my H1010 is zero.then if i input again the H1010 it should prompt that the …

Software Development visual-basic
Member Avatar for jemz
0
333
Member Avatar for Bemani_lover

I need some help with classes and methods. Here is what i need to do: 1. Create a concrete class, Robin, which inherits from Bird. Robin has a single instance variable, name, of type String with private access. Robin implements the remaining required methods. Here is the code for each …

Software Development java
Member Avatar for Bemani_lover
0
112
Member Avatar for kibong

I am trying to compare an array user_correct[] if it has a 0 it hasnt been used if it has a 1 it has. However it is not registering my if statements. [CODE]import java.util.Random; import java.io.*; public class Lottery { public static void main (String[] args) throws IOException { BufferedReader …

Software Development java
Member Avatar for BestJewSinceJC
0
135
Member Avatar for arsshaw

> Specification: Display a menu > Find Errors in this program #include "stdafx.h" #include <iostream> //change io to iostream #include <string> using namespace std; // added I get the `Error 1 error C2065: 'choice' : undeclared identifier line 17 which is 'choice'` What am i missing? int main ()// added …

Software Development c++
Member Avatar for arsshaw
0
414
Member Avatar for lashbandi

I am suppose to write a method that checks whether a string is a valid password. The password rules are: 1.) A password must have atleast 8 characters 2.) A password consists of only letters and digits 3.) A password must containt 2 digits I need to write a test …

Software Development java
Member Avatar for BestJewSinceJC
0
949
Member Avatar for bharatk

Hello I have 4 .py files along with __init__.py in a folder. I want to create a file which would act as a menu and load classes from the files in that folder. I have that file outside the folder. The contents of that file: [CODE]from files import * print …

Software Development algorithm python
Member Avatar for bharatk
0
224
Member Avatar for student.09

I had thought I was finally done with this program, it finally ran but then realized that it wasn't doing the right thing mean LOGIC error :( Can someone plz help me correct this error I have been messing around with it but keep running across errors Here is the …

Software Development java
Member Avatar for BestJewSinceJC
0
104
Member Avatar for neosonic

Hi, I would like to know how to free a memory after I am using a imagelist or picturebox/ image file. I have a program who loads picturebox into a imagelist, only 2 pictures at the time. My problem is, after running my program several times (by using "start" command …

Software Development visual-basic
Member Avatar for neosonic
0
375
Member Avatar for bgx90

Can anyone tell me why my recursive find function for a binary search tree isn't working? It keeps returning false when searching for items that are in the tree. Thanks. [CODE=cpp] template<class T> bool BST<T>::find(const T& sitem) const{ //Precondition: // A binary search tree exists // //Postcondition: // If item …

Software Development c++
Member Avatar for bgx90
0
96
Member Avatar for pythonNerd159

im currently trying to create a button widget using Tkiner and would like to know how to get a number from that button when i click on it. I have tried lots of methods and ideas from different people and i still haven't got the right bit of code. any …

Software Development python
Member Avatar for pythonNerd159
0
171
Member Avatar for mattloto

I need to pass a 2D array of int's into a function, which is normally fine, but the issue is that I don't know the last depth of the array. I know how to do it if I knew the length of the last dimension, but it is user defined. …

Software Development c++
Member Avatar for mattloto
0
130
Member Avatar for LucarioWill

About two weeks ago, I was given a simple project in Java II; code a program that displays an image, plays a sound, and has loop/play/stop buttons for the sound and zoom in/zoom out buttons for the image. I decided to go ahead in the book with this project to …

Member Avatar for BestJewSinceJC
0
164
Member Avatar for John Linux

I am reading in data from a textfile, specified by command line args eg.. <app> inputfile outputfile I have not yet done any file output, yet have developed some code. What I'm aiming for is printing out the shortest route from one node to another in a graph. *The graph …

Software Development c++
Member Avatar for John Linux
0
212
Member Avatar for progr

When making a GUI, does it matter whether you use 'content' or 'this'? For Example: [CODE]content.add(b1);[/CODE] OR [CODE]this.add(b1);[/CODE]

Software Development gui java
Member Avatar for progr
0
86
Member Avatar for Flippers321

I have been working with c# for about a year and with Visual Studio for a couple months. I was debugging a web browser that I made and I found out that when I go to a web site other than google, the url on the search bar remains the …

Software Development c# visual-studio web-browser
Member Avatar for Flippers321
0
124
Member Avatar for Maulth

Ok, so I'm done with my "Code Break" and I'm back in "action". A couple months ago I completely dropped programming to pay attention to other things in my life. I was only on the forums a brief period of time anyway, so most people probably don't remember me at …

Software Development api c++ sql windows-api
Member Avatar for paulojrudi
0
389
Member Avatar for NickMalone85

I'm having a problem with a homework assignment. I had to create a doubly-linked List class with an iterator. I have done this except there is one "display" method that displays a large integer that is stored in this List class. The method is constant and my custom Iterator class …

Software Development c++ linked-list
Member Avatar for NickMalone85
0
86
Member Avatar for notuserfriendly

Hello, i am programming a spreadsheet as my assignment. I have done it but the last step is to make it so uncalculated cells linked to other uncalculated cells need to be calculated. meaning if A1 hold the formula A1 = a2+a3 and if A3 in turn holds another formula …

Software Development c++ office-suite
Member Avatar for notuserfriendly
0
192
Member Avatar for Geodude0487

Hey everybody, I was wondering if somebody could help me. I'm having trouble with this assignment, tried to email my teacher a few days ago and he has not returned my email, it's for an online class. The whole chapter is talking about abstract classes and Inheritance and it's very …

Software Development java
Member Avatar for moutanna
0
323
Member Avatar for LevyDee

Hi, I have a homework assignment to copy the elements of one stack to the other except in reverse order. The algorithm is easy enough for me to figure out and implement. My only question is, I dont really understand how im supposed to add my own function to a …

Software Development algorithm c++
Member Avatar for LevyDee
0
119
Member Avatar for NinjaLink

In my program below, I am having problems running my program. The error I receive is "could not convert `nextPermutation(((char*)(&elements)), n)' to `bool'" I just want to print out the permutation of ABC. Will someone please check my nextPermutation function to see if everything is correct. I know there a …

Software Development algorithm c++
Member Avatar for NinjaLink
0
116

The End.