199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jemartalaban_1

is there any java programming software that looks like vb6 ? our panelist said on our thesis defense that we must use java for our interface but we dont have any background in java programming, but only vb. please help. thanks

Member Avatar for jwenting
0
279
Member Avatar for ronnel09_1

#include<stdio.h> #include<conio.h> #include<dos.h> void main() { int minutes,seconds,timeremaining,input=1; char cAns,cAnswer; clrscr(); gotoxy(35,15); printf("Press S to start the game: "); cAns=getche(); if(cAns=='S'||cAns=='s') { clrscr(); printf("\nAre you a human? Y or N: "); scanf(" %c",&cAnswer); timeremaining=input; do { input=timeremaining; minutes=input/60; input=input-(minutes*60); seconds=input; gotoxy(1,1); printf("%02d:%02d",minutes,seconds); timeremaining++; delay(1000); }while(timeremaining<=90); if(timeremaining>=90) { clrscr(); gotoxy(33,12); printf("TIME'S …

Member Avatar for ronnel09_1
0
533
Member Avatar for techyworld

I retrieve data from an associative array and i want to insert it in another associative array. anyone can tell me how to do it?

Member Avatar for Airshow
0
163
Member Avatar for tony75

Hi Im working with a python Odd numbers and my question is?. > An integer can either be odd (like 1,3,5,7,. . . ) or even (2,4,6,8,. . . ). > > 1. Write a python code which takes as input two numbers and displays all odd numbers between them …

Member Avatar for tony75
0
275
Member Avatar for RounaqJJW

Program to Find the words starting with a or A from the source code itself and then modify it by removing the words from the source code and put it in another file. The following code doesn't work. Pls Help!!! #include<iostream.h> #include<conio.h> #include<fstream.h> #include<string.h> void Write(fstream &a, char b[]) { …

Member Avatar for Lucaci Andrew
0
508
Member Avatar for sonyj

how to give image to a particular cell in datagrid view in vb.net I want to add rows in to a grid while running. I added new rows by enabling add property of gridview In that row one of the cell is an image .if i am adding one cell …

Member Avatar for sonyj
0
356
Member Avatar for paku_dnj

Hi I want to take input of two variable as integer and than do addition with the two variables. The ans will stored in another variable. The program will repeat after every addition end and will ask for user input of varibles and will do addition again. My qus is …

Member Avatar for JamesCherrill
0
205
Member Avatar for StefanRafa0

hello guys im trying to send email from java program but when i pressing the button i get this message: errorjavax.mail.AuthenticationFailedException: failed to connect, no password specified? and here is the code: String username = Username.getText(); String password = Password.getText(); final String username2 = "stefanrafaa@gmail.com"; final String password2 = "my …

Member Avatar for JamesCherrill
0
215
Member Avatar for tamil.arivu.18

I want to add Joomla SEF Translate Module or Component to my php,html Website Page. how can i include this module and how to run this. please tell anyone Thanks advance

Member Avatar for tamil.arivu.18
0
183
Member Avatar for xHellghostx

Hello guys, so I am facing a problem to understand the following.. Creating a GUI based program that has a user control box that contains a list of images of a 52 cards deck, the cards are based on an enum actually 2 enums one for the rank and one …

Member Avatar for Ketsuekiame
0
259
Member Avatar for tolap21

hi everyone i need a help in my php project with mysql database connection. I have a form that contains Fname, lname, contact and my problem is when i press the submit button without filling up the form the query will execute which inserts the blank data to my database.

Member Avatar for Webville312
0
188
Member Avatar for deepak.fugo

Hi All, I am uisng Mysql DB and i have a task for suggesting Categories based on User keyword input. I have written the query as below but i need to ignore white spaces while matching, how can we achieve it SELECT search.*, MATCH (name) AGAINST ('black' IN BOOLEAN MODE) …

Member Avatar for pritaeas
0
908
Member Avatar for anumash

I have a very confusing question to ask and it is the difference between array of pointers & pointer to an array. I want to understand this concept very well so please please do help me understand this concept. I'll start with what I have understood about array of pointers. …

Member Avatar for anumash
0
167
Member Avatar for GlenRogers

Hi. My page has a men that holds categories of products, some of these categoriees have subcategories, some dont. I have mysql tables category, subcategory and products. My code right now only adds products to the subcategories, it takes the id value of subcategory and puts it in the product_id …

Member Avatar for RvSon
0
180
Member Avatar for kajalDighe

Hello, I have a 3d dicom image with .dcm extension and i want to display it using jframe. is there any solution for it..? How's it possible to display the .dcm img in java..? will u please help me..?

Member Avatar for kajalDighe
0
196
Member Avatar for hwoarang69

error detials: Java Plug-in 10.17.2.02 Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM User home directory = C:\Users\dave ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide …

Member Avatar for hwoarang69
0
203
Member Avatar for saurabh.mehta.33234

The following code gave error on gcc compiler int main() { extern int a; printf("%d",a); return 0; } static int a=5; But when static is removed from int a then it runs with no errors..Can someone please clear the doubt??

Member Avatar for saurabh.mehta.33234
0
312
Member Avatar for mkweska

Hello all! I am sorry to have to waste your time with such an easy problem but I am stuck with some coders block on this one. I know it is definitely an easy fix I just cannot seem to wrap my head around it at the moment... I do …

Member Avatar for mkweska
0
272
Member Avatar for ronnel09_1

I just want to ask if i can run a timer at the same time with my program? It is like a quiz bee, i'm asking questions and there is a specific time to finish answering. Thank you!

Member Avatar for ronnel09_1
0
95
Member Avatar for triumphost

Assuming a simple class like below and the main like below, will the class variable be stack/heap allocated depending on how the class is instantiated? OR will the class variable be allocated depending on how it is implemented? class Foo { private: std::string Bar; public: Foo() : Bar(std::string()) {} }; …

Member Avatar for mike_2000_17
0
17K
Member Avatar for sachintha81

I have a simple USB barcode reader which I intend to use to scan COD 39 barcodes. I know that just scanning the barcode while having a text field on focus will get me the text input of the barcode I'm scanning. However my requirement is a bit different. I …

Member Avatar for welkhanson
0
4K
Member Avatar for Papa_Don

Group, I'm trying to change the "sa" password to my SQL Server Database via the 2008 SQL Server Manager Express. I have followed every instruction dillegently and can't seem to "complete" the change. Each time when trying to login with the SQL Server Authentication, I get the error message that …

Member Avatar for Papa_Don
0
370
Member Avatar for jaejoong

Hi, I would like to know how to view shutdowntime from another IP address. I only know how to view it from my localmachine. This is my code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = GetLastSystemShutdown().ToString() End Sub Public Shared Function GetLastSystemShutdown() As …

Member Avatar for jaejoong
0
245
Member Avatar for Potgiesh

Hey guys i have an advanced programming project , which is to run on both linux and windows operating systems. And i wanted to know if there is an IDE with drag and drop features which i can use to code the graphical user interface

Member Avatar for mike_2000_17
0
467
Member Avatar for mical700

I am getting wrong output. My Code is following, in which I have to use function unsigned long powerof2(int n); #include <stdio.h> #include <stdlib.h> #include <math.h> //int powerof2(int n); unsigned long powerof2(int n); int main(void) { printf(" n 2^n\n"); printf("-- ---\n"); for (int n=0; n<65 ;n++) { //printf(" n 2^n\n"); …

Member Avatar for mical700
0
232
Member Avatar for brandon66

Problem: How many times must I will I need to throw two dice to get three 2’s, three 3’s, three 4’s, three 5’s, three 6’s, three 7’s, three 8’s, three 9’s, three 10’s, three 11’s and three 12’s. Write a program that will roll two dice over and over until …

Member Avatar for Reverend Jim
0
210
Member Avatar for mjsmitten

Hi I am really not good with javascript but I have a script that retrieves a list of state names with this code: map.objectList = new AmCharts.ObjectList("listdiv"); Apparantly it is withouth any format retrieved in a UL LI format. I need to "catch" this list (I know it has 51 …

Member Avatar for mjsmitten
0
195
Member Avatar for mical700

I am trying to print: 0 1 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 11 2048 12 4096 13 8192 14 16384 15 32768 16 65536 17 131072 18 262144 19 524288 20 1048576 21 2097152 22 …

Member Avatar for mical700
0
395
Member Avatar for lttleastig

I need to extract the value of studentId just 1413 how could this be done? All this code below is stored in a single variable I think with regex it is possible but had no luck with it $(document).ready(function () { var getSchedule = function () { $.ajax({ type: 'GET', …

Member Avatar for pixelsoul
0
171
Member Avatar for cooling

SELECT Facility.[Facility Name] FROM Facility LEFT OUTER JOIN Reservation on Facility.FacilityID = [Reservation].FacilityID AND [Check-in time] = '" & Integer.Parse(cboHour.Text) & "' AND [Check-in date] = '" & lstDate.SelectedItem.ToString & "' WHERE Reservation].ReservationID Is NULL AND Facility.[Facility Type] = '" & cboFacilityType.Text & "' I have this sql statement which …

Member Avatar for adam_k
0
1K
Member Avatar for paku_dnj

How to read a specific value from a text file and then save the value in another text file. Example: in data.txt file there is some values. Item Name : m-01 Item Brand : One Man Item size : XXL Item Price : 1000 Item vat : 15% these are …

Member Avatar for paku_dnj
0
486
Member Avatar for Dum_Bass

I am trying to create a simple scoring function using sprite collision. I have my sprite ids defined under a seperate header and my class is in order. LEFT_SCORE is animated using a sprite sheet (obviously). int Ball::leftGoal( ) { int leftScore = 1; if (dbSpriteCollision (BALL, 12)) {++leftScore;} dbSetSpriteFrame …

Member Avatar for Dum_Bass
0
167
Member Avatar for Violet_82

HI all, I was wondering if anybody can help me to understand this exercise: "A small airline has just purchased a computer for its new automated reservation system. Write an application to assign seas on each flight of the airline's only plane (capacity: 10 seats). Your application should display the …

Member Avatar for Violet_82
0
7K
Member Avatar for korathualex

How to convert date format to dd/MM/yyyy in Linq to Sql select Query I tried as below: DataTable dt = Common.dc.TblMaintenances.Where(a => a.ContractId == Id && a.IsScheduled == true || a.IsScheduled == false).OrderBy(a => a.ScheduledDate).Select(a => new { a.MaintenanceId, a.MaintenanceDate.ToString("dd.MM.yy"), a.MaintenancePerson,a.Remarks,a.ScheduledDate,a.IsScheduled,a.Cost }).getDataTable(); But didn't work

Member Avatar for pixelsoul
0
1K
Member Avatar for dottomm

Hello and thanks in advance to anyone who can help me with my array problem. I've always struggled with arrays, and now I Need to understand how I can use them to solve my latest problem. I've created a test scenario to recreate what I'm trying to do in real-life. …

Member Avatar for dottomm
0
178
Member Avatar for Shania_01

Hello, does anyone know how i can draw a small handle (square) on the edge of the circle at each quadrant( for e.g at the north,east,west and south quadrants) I used general path to draw the circle, now I'm having difficulties to draw the handles. Here is my code: //class1 …

Member Avatar for gusano79
0
226
Member Avatar for Robert Storm

The Class will create a program to store the name and the grid position of 6 common minibeasts. The Students from Calibre Academy will write a program to store the position of each common minibeast. The Software will. Allow one of six minibeasts to be selected from a menu. Enter …

Member Avatar for Ancient Dragon
0
208
Member Avatar for vaironl

Hello Everyone, I understand this is a basic problem, with a simple solution, but I cannot find a way to fix it. I'm trying to add a Jpanel to a JFrame and when I do the following. g.drawString("HELLO", 500, 0); The string is not seen on screen now if I …

Member Avatar for vaironl
0
1K
Member Avatar for fedaa91

hi i am trying to read a file and save to array i wrote one and it worked accept it not reading ot line by line, so i wrote another one but i am trying to make it as function when i make function call i get this error read.c:32:13: …

Member Avatar for fedaa91
0
205
Member Avatar for hwoarang69

i created a game in applet and i want to put it on a site. the problem is that my games has alot of classes. how can i use applet tag to up it online? java.php <html> ... <applet code = "Main.class" width = 900 height = 400> </applet> ... …

Member Avatar for hwoarang69
0
190
Member Avatar for Asmaa_2

I'm asked to Write a program to create a calendar and I have a problem with defining the first day in every month whether it's satureday or sunday, etc can anyone give me a hint to fix this BTW, I'm not allowed to use functions :/ I'm disappointed about my …

Member Avatar for gusano79
0
391
Member Avatar for cdoggg94

Basically we have a lot of people that want to view our site that use work computers and don't have the option to upgrade their browser. Most likely its an old version of IE. All I want to do is detect if they are using something older then say IE …

Member Avatar for cdoggg94
0
246
Member Avatar for cssweb

hello i want to creat script "most viewed" so i want to select most topic that have been wached between two dates for instance from date 10,10,2012 to current date i mean from 10 days ago untill current time

Member Avatar for cssweb
0
197
Member Avatar for fedaa91

hi i have this small problem in my code which is that when i run the code it enters to the wrong condition i mean in the if clause where i enter "download" it executes the body of the upload even though the first if clause condition meet and the …

Member Avatar for fedaa91
0
153
Member Avatar for cproger

I type in <graphics.h> and "graphics.h" for terminal on my mac and it says fatal error: 'graphics.h' file not found Please help me.

Member Avatar for cproger
0
159
Member Avatar for New-Reign

I am currently working on a hotel booking system. There are 4 rooms types, 3 have 5 rooms and 1 has 10 rooms. I have everything working apart from the ability to check which are booked or not. The SQL I used to create the tables is listed below; CREATE …

Member Avatar for New-Reign
0
4K
Member Avatar for clausont

I have a Gridview that I need to add a button for each row and need to do this programmatically. I am able to add the button, but I am missing something as it is creating a new column and adding the button only in the new column. When the …

Member Avatar for clausont
0
848
Member Avatar for rory.duncan.14

Thanks in advance for anyone who can a)understand this, and b) give any help in my struggles. We are coding in C++, have half a circle, starting a a certain point (e.g. (0,-310)) and finishing at a certain point (0,310). We have the radius, and we have the equation X^2 …

Member Avatar for Ancient Dragon
0
192
Member Avatar for harinath_2007

Hi all , Here comes the same general question. I want to store the text ( you can call 'paragraphs' ) . What is the best way to do that? Files? OR database is OK? Thanks in advance :)

Member Avatar for harinath_2007
0
204
Member Avatar for turpentyne

I'm trying to reuse a function and it isn't working. I put it like so, and it works fine: $('.square-container').on('click', '.square', function(event) { $("#testit").removeClass("main_page"); if ( $(this).hasClass('active') ) { /* actions here */ } else if ( $(this).hasClass('one') ) { /* actions here */ } else { alert('error - nothing …

Member Avatar for EvolutionFallen
0
203

The End.