199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vjames

Hi, I'm making a snake game and I got a timer to check everything and repaint the component. How can I achieve a 60 fps without affecting the movement of the snake. I need help to come up with an equation for the speed of the snake. Need to change …

0
259
Member Avatar for violette

Hi all :) I have two excel files for data(one is to retrieve data from outer source(file1) meanwhile the other one is for template(file2)) and 1 excel file for macro(file3). I would like to create a macro to copy data from the file1 to the template(file2) and save it as …

Member Avatar for violette
0
204
Member Avatar for mokong

hi guys, i have a problem regarding on how to view the image in the database when i select one information in my list view. and change it when i select another. Public Sub studentList() Me.ListView1.ListItems.clear Set rs = New ADODB.Recordset With rs .Open "select * from tblStudentProfile", db, 3, …

Member Avatar for mokong
0
119
Member Avatar for myrongainz

I know this program only takes few lines. I don't now how to out put the text to print every other letter for example: shsofwbanrqeiyzobu output: h o w a r e y o u [CODE]int main() {string k; cout << "eneter a text" << endl; getline(cin,k); for(int index =1; …

Member Avatar for myrongainz
0
620
Member Avatar for marvolo1300

Hi there, I have to create a card game as an assignment, and i am having trouble with a part of the assignment. Basically, there is an array, 'playerHand', which holds a set of integers. What i want to do is to add the elements of the array and then …

Member Avatar for marvolo1300
0
166
Member Avatar for vbnoob1

Hey i am very new to vb.net and am creating a simple unit converter, i want my unit converter to display results in a listbox and want the user to be able to specify the start, step and end value in a For Next loop. Here is the code i …

Member Avatar for Reverend Jim
0
237
Member Avatar for Jazerix

Hey there So, I was working on a program and unfortunately i got a blue screen while i was working. When I got back on my computer, Visual Studio wasn't able to open my Form1.cs and Form1.Designer.cs. Opened it in notepad, and it was completely empty however the filesize is …

Member Avatar for Jazerix
0
155
Member Avatar for mt2009

I heard the best method to share session across multiple domains on same server is to use custom php session handler. (ie, domain name different like abc.com, xyz.com but single application.) But after i tried it, even custom php session handler that using SAME DATABASE ON 1 SERVER can't share …

Member Avatar for tolinho
0
752
Member Avatar for CSharpUser

I'm new to MS SQL and trying to solve a problem where I need to extract specific data from a remote SQL Server 2005 DB into a local SQL Server 2008 R2 DB. In a Stored Procedure, I'm trying to use Linked Server via Ad Hoc links in the following …

Member Avatar for BitBlt
0
504
Member Avatar for caswimmer2011

Hey, I am now programming in a MacBook Pro and for the KeyCodes in the Robot Class, there is no set key for Command. Can I set a KeyCode to do the actions of the Command key? Thanks

Member Avatar for caswimmer2011
0
210
Member Avatar for saideepak89

hi.. i know little bit about the casting in java ie (from "float"to "int" or/etc) like wise my question is how the oracle converts the data in condition this is my sample query branch -t branch_bnk_code number3 branch_brn_code number3 branch_city_code number3 mybranch -t mybranch_bnk_code varchar2 mybranch_brn_code varchar2 mybranch_loc_code varchar2 by …

Member Avatar for hfx642
0
191
Member Avatar for P0lT10n

Hello all community again ! I only want to know what is faster and better (logical, not writing or tabbing) between: IF...ELSE...IF...ELSE... IF...ELSEIF...ELSEIF...ELSE... For example: [CODE=PHP] $i=0; if($i>5){ echo '$i is greater than 5.'; }else{ if($i>0){ echo '$i is greater than 0 but less than 6.'; }else{ echo '$i is …

Member Avatar for almostbob
0
138
Member Avatar for Concatch

Hi, I have two tables. Cla_case cc and Cla_event ce. The join between the two tables is on cc.cla_event_no = ce.cla_event_no. In cla_case i have the following columns : Discover_date and Notification_date. In cla_event I have the column Incident_date. I need to perform a SUBQUERY that will find the latest …

Member Avatar for hfx642
0
185
Member Avatar for AndrewConroy

I started a programming course about a month ago, recently we started learning about using different code outside the main string and using them in order to pass data to each other I really got lost and didn't understand a word, wonder if anyone could help explain how it works, …

Member Avatar for Akill10
0
128
Member Avatar for mike2828

Hi i am new to java gui, i have trouble using color constructor. please tell me what the problem . thank you . [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass1c extends Applet { Color c = new Color(5,25,205); public void Color(int r,int g,int b); public void init() { System.err.println("Hello from …

Member Avatar for Ezzaral
0
218
Member Avatar for techlawsam

Hello all, im doing this problem which will allow a store to return a invoice, I have two classes and I guess I am at the very end and need help fixing some things so I can finally have the program execute: Class1: "Invoice": [CODE]using System; using System.Collections.Generic; using System.Linq; …

Member Avatar for Mitja Bonca
0
179
Member Avatar for Jonathan C

When the Generate button is pressed an array of doubles with a random length of 50 to 1000 values will be created. The array will be filled with random double values ( use rndGen.NextDouble( ) ) each with a range of 0.0 to 100.0. The contents of the array will …

Member Avatar for Momerath
0
936
Member Avatar for Amr87

Hello Everyone, I`m a PHP developer, These days I`m thinking seriously about learning ruby , but I`m not sure if it gonna add to my knowledge , so i have few questions about it and hope that a ruby specialist will answer me 1- Do I need to learn ruby …

Member Avatar for Amr87
0
375
Member Avatar for dan1992

This program must calculate permutations but it gives me a result with smiley , Can someone help me, Thanks!! [CODE]#include <conio.h> #include <stdio.h> #include <math.h> const n = 10,num=4; int i,a[n]; void tipareste(){ int i; for(i=0;i<num;i++) { printf(" %d \n", a[i]); } } void permuta(int k) { int i,x; if(k==1) …

Member Avatar for dan1992
0
140
Member Avatar for sam1

hi, I have three comboboxes in my windows form. I want to relate them all with each other. the data is coming from database a table which has the following columns: id description ap code seg code now if user selects description then ap code and seg code should change …

Member Avatar for bikashdas
0
211
Member Avatar for Heinz Stapff

HAVE CLIENT-SIDE FORM COOKIE GET AND SET FUNCTIONS IN THE SECOND WINDOW DOCUMENT EXTERNAL JS.FILE OF A DUMY TEST SITE FOLDER ON MYCOMPUTER. IE8 THROWS 'SYNTAX ERROR' ON THE 'WINDOW.LOAD=FUNCTION, FIRST COOKIE FUNCTION HIGHLIGHTED'. CAN I ACTUALLY TEST COOKIES ON A TEST SITE ON MY COMPUTER WITHOUT THE SERVER (MYCOMPUTER) …

Member Avatar for Heinz Stapff
0
196
Member Avatar for pendo826

can anyone see why the status.health wont take away the 20 ???? [CODE]#include <iostream> #include <string> // To allow use of Strings. using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void displayStats(); void statsObject(); void gameOver(); void stats(); void inventory(); void exitGame(); int playGame(); class status{ public://Access …

Member Avatar for pendo826
0
198
Member Avatar for Farhad.idrees

Hi....Friend i have to make this task...... create a time clock that display on the status bar and keep on changing every after 1 second. Kindly keep the format as given in the picture. i have created code but i dont know how to put on status bar... my code …

Member Avatar for Farhad.idrees
0
938
Member Avatar for stangn99

Hey guys, I'm hoping this isn't anything complicated. I don't know any javascript, but I think it can be done with it. Basically what I need is on select option to change the value of another selection option. More specifically: when a user selects a time from the first option, …

Member Avatar for stangn99
0
122
Member Avatar for ben1996123

I just decided that I wanted to make one with C++, but I'm not really sure what I should put in it. Any ideas? I don't just want it to be some boring thing where you have to "Press enter to continue" all the time.

Member Avatar for Cireyoretihw
0
265
Member Avatar for minghags

Hello. I have to do an program that writes an scale from num 1 to num 2. I managed to do that writes out from 1 to given number. Can anyone help me do that I can insert an scale starting number? Code: [CODE]#include <iostream> using namespace std; void prime_num(int); …

Member Avatar for minghags
0
257
Member Avatar for dannydc

Hi All I'm new to VB and trying to learn for a specific project - I've done plenty of VBA (although not for a year or two) in the past but that's my limit. I'm helping to manage some equipment which adds a new record to a csv log file …

Member Avatar for dannydc
0
163
Member Avatar for Netsurfers

I searched daniweb, google, etc. All had multible code snippets but I couldnt get any to work.. Well my database is "wallet" and in the row is "id" and "amount" So I tried like [CODE]$result = mysql_query("SELECT amount FROM wallet WHERE id LIKE '%$id%'"); while ($row = mysql_fetch_assoc($result)) { $money …

Member Avatar for Netsurfers
0
148
Member Avatar for kkasp

I've searched all over, but Have not been able to find exactly what I need help on. I am creating a program that takes user input of a word and determines if it is a Palindrome or not....the catcher is I need to use stacks. They are confusing to me. …

Member Avatar for TrustyTony
0
1K
Member Avatar for s_r_k

I'm doing a project for school and I'm having difficulty getting the average of two averages, using arrays. I have to get the average of high temperatures for a year, the average for low temperatures for a year, and then find the average of those average. We used 366 days …

Member Avatar for s_r_k
0
156
Member Avatar for Matthew N.

Hello. I don't know if this is the right forum for this. I have resently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the …

Member Avatar for Matthew N.
0
388
Member Avatar for pendo826

Hi[QUOTE]just wondering how i would set up a menu so that i can call anytime when pressing "M". im nearly sure it would have to be a loop but im not quite sure how to do it. can anybody help? thanks [/QUOTE]

Member Avatar for pendo826
0
150
Member Avatar for ayeshashahid

i have a serious problem with this malloc function used in C language.i have been studying the topic "new" for few days,and there i found a code in which malloc was used.i am trying to change it to new but my compiler always always CRASHES. the line which i think …

Member Avatar for ayeshashahid
0
166
Member Avatar for Locke123

I have a subroutine that is passed a pointer to a bit string in the si reg and an index in the ax register. I declared the val variable in the data seg [CODE]getbit: cmp ax, 1783 ; max value of the index being passed ja goback push si mov …

Member Avatar for Locke123
0
213
Member Avatar for Behseini

Hi Guys Can you please take a look at following app to see what I am doing wrong? [URL="http://www.mediafire.com/?38pwg0uwj0930e3"]Download App(WinFormsStarts)[/URL] What I want to do is running multiple modal forms AND keeping the MainApp form accessible until finishing all required modals.As you can see from the application, as soon as …

Member Avatar for Behseini
0
260
Member Avatar for riahc3

Hey Lets say I have 2 columns in table1 Id Value Id is obviously primary but I want Value to be unique.... I tried "NOT EXISTS" with a subquery but I cant really seem to get it to work. It would be something like [CODE]INSERT INTO table1(value) WHERE VALUES('3'); [/CODE] …

Member Avatar for rch1231
0
107
Member Avatar for AmerJamil

i'm beginner in C++, please help me in display function to display the linked list of my following program thanks [CODE] #include <iostream> using namespace std; template< class T > class Lnode { public: T data; Lnode< T > *next; }; template< class T > class List { public: int …

Member Avatar for mazzica1
0
155
Member Avatar for cgen

I need help understanding this algorithm Design a variation of algorithm TreeSearch for performing the operation findAl(k) in an ordered dictionary implemented with a binary search tree T, and show that it runs in time O(h + s), where h is the height of T and s is the size …

Member Avatar for cgen
0
423
Member Avatar for glamourhits

Your task is to implement Stack and Queue classes for Objects. Both Stack and Queue should extend Collection, which is an abstract class that will be given to you. You will need to download and modify the NetBeans project that goes along with this assignment. Stack should have the following …

Member Avatar for Taywin
0
589
Member Avatar for corby
Member Avatar for Narue
0
144
Member Avatar for PSP1202

Hey all I'm having trouble with loops again and this time it is for loops. I need to calculate monthly balance and interest paid on a balloon mortgage and am having trouble with the calculations. An example of what the program should look like: Enter Mortgage: 100000 Enter Interest Rate: …

Member Avatar for WaltP
0
113
Member Avatar for IndianaRonaldo

Hi all, I am just going through C++ basics now and I read that enum types cannot be input directly with cout and cin and such.And also that type coercion from int to enum is not allowed.But when i do this, [CODE] enum SumEnum{ENUM1,ENUM2,ENUM3} SumEnum VarEnum; scanf("%d",&VarEnum); printf("%d",VarEnum); [/CODE] It …

Member Avatar for Tumlee
0
1K
Member Avatar for needhelpinjav

Write a java project (applet) that has two classes. The driver class (has the init() method) should allow the user to enter into an Input Dialog Box, the mail type ("P" for Priority or "F" for First Class), a blank space, and the weight in ounces of the piece of …

Member Avatar for mKorbel
0
251
Member Avatar for cse.avinash

Hello everyone I am trying to apply [URL="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes"]Sieve of Eratosthenes[/URL] in program, but its not working. Here is my code:-- [CODE] #include<stdio.h> long long arr[10000]={0}; int main() { long long i,j,num,inc=2,m=0; num=5000; for(i=0;i<num;i++)arr[i]=i; for(i=2;i<=num/2;i++){ if(arr[i]>0) { for(j=inc*i;arr[j]<=num;j=j+i) arr[j]=-1; inc++; } } for(i=0;i<num;i++)printf("%lld ",arr[i]); printf("\n"); return 0; } [/CODE] This code …

Member Avatar for cse.avinash
0
103
Member Avatar for bogut

The question is as follows: How long – number of steps -- does it take a drunken ant to fall off the edge of a square table if it starts in the middle? Perform a simulation to find out. Imagine an ant in the middle of a table with, say, …

Member Avatar for FlamingClaw
0
191
Member Avatar for Creatinas

Hello again, Can someone please help me learn some easy multiprocessing or threading :) I want to write a simple program that opens let say ~50-100 web page at a same time and write some HTML from those sites. What is better to use multiprocessing of threading? What different ? …

Member Avatar for Gribouillis
0
177
Member Avatar for dorkwad

Hey, i'm trying to have 2 browse file dialog boxes, one that allows you to select a file from a folder, and the other folder should allow you to chose the location to copy the file to. Thanks

Member Avatar for zakeer.ms
0
180
Member Avatar for grimreaperx2

Ok I have been working on this program for some time now. The program is to take any number of any size and then add them together. After which it will print out the result. The problem I am having is that the gut of the add function seems to …

Member Avatar for aramil daern
0
112
Member Avatar for compulove

I have code (below) that opens a dialog box to either open or save a file. What I need to do though, is have the file location in the textbox next to it. Can anyone tell me the code to do that? [ICODE] protected void Browse_Click(object sender, EventArgs e) { …

Member Avatar for butler1233
0
175
Member Avatar for P0lT10n

Hello all Community ! My question is very simple: What is the difference between [ICODE]$_SESSION['id'][/ICODE] and [ICODE]$_SESSION[id][/ICODE] ? Both works the same ! What is better ? Does anyone know which is faster ? Thanks all ;) !

Member Avatar for P0lT10n
0
117

The End.