132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rsg31

Hi, i have this letters, A,R,V,G,M,N,B. And from those i need to get 4 of them randomly, bit i dont know how to do it, please help! :D

Software Development c
Member Avatar for thomas_naveen
0
188
Member Avatar for ubi_ct83

Hi all, FYI im really new in Java.last time my project was in C but suddenly my supervisor changed to Java.i got the code from him (see below).wanna ask u guys how to learn Java and these means? Lastly, how to create dropdown menu? [CODE] import java.awt.Color; import java.awt.Container; import …

Software Development java java-swing
Member Avatar for tiny7415
0
119
Member Avatar for micmagicfly

I have to write a multiple choice program and the following code is as far as i've gotten. It's coming back with invalid answers and I'm not sure where i'm doing it wrong. You’ve been asked to write a program to grade a multiple choice exam. The exam has 20 …

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for stankit

I need to write a program that asks for the input of variables and one variable must be entered as "?", but I cannot get the program to use "?" at all. Also, I don't know how to create a driver function. Once I get the "?" input working, will …

Software Development c++
Member Avatar for WaltP
0
325
Member Avatar for bigbags911

it works but instead of it reverseing the characters i want it to do this "This is a test.” should be reversed to read: “test. a is This” i want it to do all this in a text file [code]import java.io.*; import java.util.*; public class reverse{ public static void main(String[] …

Software Development java
Member Avatar for bigbags911
0
133
Member Avatar for chetanbasuray

I need to check the income for a particular department for a certain period of time. My inputs are the two dates between which the income has to be calculated,and the department name,the department name is the primary key for my table I need to show the transactions for the …

Software Development
Member Avatar for chetanbasuray
0
96
Member Avatar for Danny_williams2

When i try to log in i keep getting this error and i dont have a clue what it means the code i used is below along with the error message: code - Dim dr As OleDbDataReader = cmd.ExecuteReader error - Syntax error in FROM clause

Software Development vb.net
Member Avatar for kvprajapati
0
99
Member Avatar for jenjenjenjen

Hey guys and gals. Like I said in my last post I am in college. Well I wrote a program and a friend who majored in computer science said that my program will work... Well it does but doesnt do like I want. I am in need of advice using …

Software Development java
Member Avatar for kvass
0
66
Member Avatar for ena_gb

hi everyone! need help in using all the listbox contents for filtering a datagridview2 (that is binded with an access database) my code is as follows: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim tables As DataTableCollection = VPC_DatabaseDataSet.Tables Dim view1 As New DataView(tables(4)) …

Software Development vb.net
Member Avatar for kvprajapati
0
399
Member Avatar for bushimports

Below is the code I have for doing this but something is really wrong . Filenames is the container I am using. Filename is a string. [CODE] void SaveFileName(){ ofstream out; out.open("..\\..\\Bush Breakout 3D\\Exe\\Level\\filenames.txt",ios::out | ios::app | ios::binary); // out.seekp(0,ios::end); int size = Filenames.size(); for(int i = 0;i < size;++i){ …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
237
Member Avatar for mommie

Trying to finish my program for binomial coefficients. It compile but it keeps giving me 0 which is not correct. I think it may be a problem with my for loops but I can't figure it out. Here is the pseudocode: [CODE]/* pseudocode for Binomial Coefficients */ int binomial(int n, …

Software Development c++
Member Avatar for VernonDozier
0
100
Member Avatar for churni

hi guys, i'm frustrated at my piece of code for a heap sort function. i believe everything is correct but i am a hardcore beginner at c. i have made a rand.txt file with some floats in it in the form; 91.175598 68.562500 96.664803 29.593500 43.156502 34.241001 59.178200 85.542702 81.852798 …

Software Development c
Member Avatar for IsharaComix
0
89
Member Avatar for ShaggyB

hey, I've just joined daniweb - usually just search around on the net till i find solutions to coding problems but this time i'm stuck.... probably a simple problem but nonetheless... Anyway, I'm making a program that connects to an access database, retrieves data and the data is taken into …

Software Development dataset
Member Avatar for ShaggyB
0
111
Member Avatar for mackychan12

please help me about this program...i dont how to sort the even numbers inputted. [CODE]import java.io.*; import java.util.*; public class mp5{ public static void main(String[ ]args) throws IOException{ BufferedReader br=new BufferedReader (new InputStreamReader (System.in)) ; int num=0,sum=0; String snum; System.out.print ("Enter size of Array: "); snum=br.readLine( ); num=Integer. parseInt( snum); …

Software Development java
Member Avatar for rue64ja
0
199
Member Avatar for micmagicfly

What is wrong with the following code segment? [CODE] const int limit = 100; int eprep[limit]; int examp[limit]; for (int index = 0; index <= limit - 1; index++) { eprep[index] = 0; examp[index] = 0; } if (eprep == examp) cout << "Equal"; [/CODE] At first I thought it …

Software Development c++
Member Avatar for Banfa
0
96
Member Avatar for Violet_82

Hi there, could anybody tell me how to compile a program and run it using Visual C++ 2005? This is what I have done: -File, New, Project; -In the menu, I choose Win 32 and then Win 32Console application; then I give a name to the project and save that …

Software Development c++
Member Avatar for Violet_82
0
167
Member Avatar for josolanes

Okay, I've been working on my own version of a Date class and I had it working before but thought I'd try to revise the code a little at a time, after reading "Effective C++: Third Edition" by Scott Meyers I'll start with the code as I'm not too sure …

Software Development c++
Member Avatar for mitrmkar
0
137
Member Avatar for smi ensi

I should do programme in C , but I don 't know witch struct I can use.:( question : we have congresse , where there is 2 type of activities : activity 1 and activity 2 in each one there is many activities where many people are linked in :( …

Software Development c
Member Avatar for Ancient Dragon
0
136
Member Avatar for Talguy

I have created a icmp ping function but it doesn't always work due to the firewall of the computer I am trying to ping. I heard you can get around this using a tcp ping. How can i construct a tcp ping packet. I did a little research and it …

Software Development c
Member Avatar for Talguy
0
143
Member Avatar for goodwin912

I did a project last year in VB for image processing, basically link to a folder, load an overlay and loop through the folder overlaying a watermark. I now need to get the same thing running in python to cater for cross platform use. I have translated all the image …

Software Development gui python
Member Avatar for goodwin912
0
155
Member Avatar for prashanth s j

Hi all, for the following string I want to search a pattern The string is lcpstr = "2008/03/25 log:true lcp: 78888 -> 100 lck=0 to=900 un=5840 l=0 BMN" If I take the pattern as "lcp: 78888", pattern checking is successful when I give the following statement: temp = re.search("lcp:"+" "+'[0-9]+'+" …

Software Development python
Member Avatar for snippsat
0
123
Member Avatar for BigPandaCake

What I'm working on is a video rental project in visual basic 2008. I have a local database which contains info on DVDs, Members and a table for current rentals. [B]The columns i have in the current rentals table are:[/B] MemberID | DVDID | DaysOnRent | DateRented | DueDate | …

Software Development mssql sql vb.net
Member Avatar for BigPandaCake
0
187
Member Avatar for micmagicfly

What is the side effect in the following function? [CODE] int ExamPrep (int param1, int& param2) { if (param2 = param1) return param2; else if (param2 > param1) return param1; else return param1 * param2; } [/CODE] A side effect is defined as the result of an operator, expression, statement, …

Software Development c++
Member Avatar for Spartan-S63
0
130
Member Avatar for ITgirl2010

This is the question i was given --------------------------------------------------- Here is a program that prompts the user to enter a student’s marks, and then prints out whether they have passed or failed a unit. '''calculate a students grade given their final mark''' def calcFinal( asg1, asg2, exam ): final = asg1 …

Software Development python
Member Avatar for snippsat
0
165
Member Avatar for garyinspringhil

I'm a newbie so please be patient... :) [CODE]def canvas(self): import qt self.setCaption('My Canvas') c = qtcanvas.QCanvas(self) # <- gives the canvas a parent QObject c.resize(315, 207) v = qtcanvas.QCanvasView(self) v.setGeometry(QRect(200,590,321,211)) lay = qt.QVBoxLayout(self) lay.addWidget(v) v.setCanvas(c) l = qtcanvas.QCanvasLine(c) l.setPen(qt.QPen(qt.Qt.black)) l.setPoints(10,10,390,390) l.show() v.show() c.update() l1 = qtcanvas.QCanvasLine(c) l1.setPen(qt.QPen(qt.Qt.red)) l1.setPoints(20,60,10,230) l1.show() …

Software Development python qt
Member Avatar for garyinspringhil
0
139
Member Avatar for albert101

Hi everyone, I am new to Java and more recently Swing. I was wondering if anyone would be able to show me a way of inputting a value into a text box, and being able to use this to calculate a sum for example. Also I am interested to know …

Software Development java java-swing
Member Avatar for albert101
0
91
Member Avatar for BuhRock

Can someone help me with error trapping. For instance, if I asked the user to input only a numeric type, 0-9. Then how would I go about creating an error message if the user inputs "hey." I know that I could easily use the Try, Catch statements but I want …

Software Development java
Member Avatar for chaospie
0
141
Member Avatar for MTW1989

[CODE]include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; int i,j, score[numofgamesinseries][numofplayerson… char …

Software Development c c# c++
Member Avatar for MTW1989
0
196
Member Avatar for mytime19

Hello Everyone, I am trying to extract integer values from 2 int variables i have created in my database table "mytab". The data or table values i have extracted on console and its working fine. But i want to use the values as x,y coordinate for my label i have …

Software Development java java-swing
Member Avatar for mytime19
0
813
Member Avatar for qwertyui

i have 2 list contaning 4 element i must create 2 new list which contain 2 element 1st new list must contain an element from each original list 2nd list must also contain 2 element apart those of the 1st new list

Software Development python
Member Avatar for woooee
0
175
Member Avatar for unbrknchane

Hey Guys, So I am working on a program in class that asks for the age of your dog and translates it into human years....needless to say overly easy and boring. So I want to get into adding sprites to C. My first question is where I can find some …

Software Development c
Member Avatar for jephthah
0
240
Member Avatar for max1million

I need to bit reverse 8-bit integers. eg 208 (11010000) becomes 11 (00001011) This works but it's too slow: [CODE] private short MyReverse(short a) { int[] order = new int[8]; for (int i = 0; i < 8; i++) { if ((a & Convert.ToInt32((Math.Pow(2, i)))) != 0) { order[7-i] = …

Software Development
Member Avatar for ddanbe
0
221
Member Avatar for davethebear10

I have to get three pieces of information from the files i have 1. The name of the owner of the file which appears after the pattern tag <foaf:name> 2. The ID of the owner of the file which is embedded in the filename, e.g., http%3A%2F%2Ftalk.ie%2Fvbulletin%2Ffoaf.php%3Fu%3D12 belongs to user 12. …

Software Development file-system python vbulletin xml
Member Avatar for woooee
0
253
Member Avatar for rumpleteaser33

Hi I'm doing a project where I need to have people register by entering a username and password. When they click register I want them to be added to the database, but I'm having trouble doing this. Can anyone help? This is my first time using VB. This is the …

Software Development microsoft-access vb.net visual-basic
Member Avatar for rumpleteaser33
0
238
Member Avatar for danizzil14

ok I had looked on the internet and found one form of running an exe file from a py script, i goes like this. [CODE]import os os.system("c:/windows/iexplore.exe") # Or wherever it lives[/CODE] Problem is, whenever i run the script with the appropriate path loaded in, i get the following: [CODE]Traceback …

Software Development python windows-server
Member Avatar for o0b3600
0
373
Member Avatar for alcx88

I am not sure what this means and I get it all the time. Can someone help me fix this code? [ char add_account(account_t a[]) 7 { 8 int i, N=1000000; 9 char ch; 10 char str1, str2; 11 int m=20; 12 13 for(i=0;i<N;i++) 14 { 15 if(a[i].number==0) 16 { …

Software Development c
Member Avatar for jephthah
0
2K
Member Avatar for guht

I have a VB.NET application created in Visual Studio 2005. The application uses crystal reports. It works fine on the developer machine, but I am receiving the following error on a client machine: System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=11.5.3700.0 This is a standalone executable and not distributable …

Software Development assembly vb.net visual-studio
Member Avatar for kjohnston
0
1K
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Software Development c++ file-system oop
Member Avatar for Sodabread
0
209
Member Avatar for rajeshswain

Hello, I am creating a windows application to draw 3d cubes. I am preferring to give all the details of the cube in the code itself i.e. dimensions, colour etc.. Suppose there will be two cubes, say with different dimensions and we provide the details with the manner that is …

Software Development c# opengl
Member Avatar for superbokey
0
561
Member Avatar for Yeen

I have to use a queue in an solitaire assignment, but I'm having some trouble using the linked list Queue class that I made. It won't take arrays at all. [code] class Testing { public static void main (String [] args) { Queue testlist = new Queue(); // testing Queue …

Software Development java linked-list queue
Member Avatar for lafigueroa
0
795
Member Avatar for shahab_qureshi

[COLOR="Red"][B]we want to add functionality like "run" in windows.[/B][/COLOR] [COLOR="Green"]add one text box and button under button write this code [/COLOR] --> [CODE] System.Diagonestics.process.Start(TexBox1.Text);[/CODE] now run it. here you have to give name of processes. for example process name for windows media player is [I][I][B][COLOR="Green"]wmplayer[/COLOR] [/B]so when you write this …

Software Development
0
45
Member Avatar for southtucky

First let me say I am thankful I found these forums for assembly, and that I am a complete newbie. I've been reading documentation, and even bought a book on learning assembly, however, there is still one question I have that baffles me. I would appreciate it if someone could …

Software Development assembly operating-system
Member Avatar for NotNull
0
154
Member Avatar for majestic0110

Hi all just a quick question, what code do I use to make user input of RETURN(enter button) defaulting to an OK button on a windows form? thanks for your time.

Software Development
Member Avatar for shahab_qureshi
0
132
Member Avatar for Rahul8389

hiiiiiiii friends i want to get path of current directory . tell me as soon as posible

Software Development vb.net
Member Avatar for shahab_qureshi
0
87
Member Avatar for SgtMe

Hi guys! I am in the process of making a game...similar to this one: [url]http://www.miniclip.com/games/nfl-lateral-collateral/en/[/url] I am using the following code to detect key presses: [CODE] pygame.event.pump() key = pygame.key.get_pressed() if key[pygame.K_LEFT]: ... [/CODE] How can I detect if a key is released? I have seen this done with using …

Software Development python
Member Avatar for tbone2sk
0
14K
Member Avatar for MyrtleTurtle

This is my first question here. My latest assignment is to create a random walk program using a 2-d array. The program worked fine until I tried to put this code into a function: [CODE] for(int i = 0; i < 100; i++){ //reset field of flowers for each attempt …

Software Development c++
Member Avatar for Fbody
0
246
Member Avatar for eyal27

Hii !! I try to update excel file by using Odbc and Oledb objects with out success. my problem when i try to update string in cell that the Odbc "think" this cell is have different datatype. how can i force the Object to put string at cell that have …

Software Development open-source
Member Avatar for eyal27
0
962
Member Avatar for tkpanther

I have been given an assignment to create a random race program where 2 different lines race. How the lines travel is determined by a random number generator, but that is not the issue I currently have. I am suppose to create a window that is 500x600, with the x- …

Software Development python
Member Avatar for ssmokincamaro
0
194
Member Avatar for ntombazana

ive just started c++, n im not really good, even with the simple programs, couls someone help me with this? thanx Question 3 (10 marks) Concepts: • Static local variables Implement a function to track various details regarding a list of exam results. Download and extract prac6-q3.tar.gz and read the …

Software Development c++
Member Avatar for emilo35
0
146
Member Avatar for ueoptimum

[CODE]#include <stdio.h> #include <iostream> #include <conio.h> #define p printf #define s scanf float np, in, ir, pf, ad, md, re, rr,pfl,al; char bn[20],bc[5],rn[10], c[10]; main() { system("title Application No. 2"); system("color F4"); do { p("\nEnter your name please: "); s("%s", &bn[20]); p("\nEnter your code (A-C): "); s("%s", &bc[5]); p("\nEnter your …

Software Development c++
Member Avatar for Pynolathgeen
0
257

The End.