132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pocnib

I am taking a class in Assembly this semester and am currently at a loss. The first two projects I found easy enough but now we are working with strings. I have a basic skeleton for the program that gets input. [CODE] .data strbuf: .space 80 # Buffer for string …

Software Development assembly
Member Avatar for Salem
0
136
Member Avatar for ItecKid

Hello, How to call a function which takes dynamic array argument? That is to say, if I have: [code=C++] void fctn (int *a[], int n) { *a = &n; //do stuff with a. } [/code] How to call this in main? Must I have another array declared in main to …

Software Development c++
Member Avatar for thelamb
0
107
Member Avatar for gabec94

Hi, I am trying to write a connect four program in python, which I am not very experienced at. This is what I have so far: [Code] row7 = [' ', ' ', ' ', ' ', ' ', ' ', ' '] row6 = [' ', ' ', ' …

Software Development python
Member Avatar for lllllIllIlllI
0
138
Member Avatar for curtissumpter

Hi, I'm having trouble with using and updating graphics in a JFrame. I'll include my code below along with some classes. They're necessary for the program to work properly. The issue is that the paint method is painting over my UI. Then it won't display the graphics. I don't have …

Software Development ide java java-swing oop
Member Avatar for Ezzaral
0
998
Member Avatar for 3pid

Well what do you think about my round-robin scheduling tournament? Is it good n complete? [url]http://rapidshare.com/files/19116739...edule.exe.html[/url]

Software Development c++
Member Avatar for 3pid
0
231
Member Avatar for smstry

Id like to use lapack to invert large martix but i am lost . i don't know even how to install it and call it in a program. i have searched for a month in the web but always the method does'nt work or complicated . can someone do something …

Software Development c++ ubuntu
Member Avatar for Ancient Dragon
0
244
Member Avatar for cynical

Hi! I'm using VS 2003 and MS Access. I have this Form1 that displays Record details on textboxes (they are databinded).. The records are retrieved from MS Access using the code: [CODE] Public Sub loadFund() '[Load Items] Dim selectAllSQL as string = "SELECT * FROM Table1" Dim selectAllCMD As OleDbCommand …

Software Development dataset vb.net
Member Avatar for Jx_Man
0
162
Member Avatar for masterarcher

[code=c] void EvaluateHighScore(top10scores ListToBeChecked[], unsigned char Time) { unsigned char RankTen = ListToBeChecked[9].TimeTaken, loopcounter=0, NewRank=0; char UsersName[USERNAME_LENGTH], MoveName[USERNAME_LENGTH]; if(Time >= RankTen) printf("\n\n\tYou Took %d Seconds To Complete The Quiz Well Done\n\tUnfortunatly You Didn't Get A High Score\n", Time); else { printf("\n Please Enter Your Username: "); fflush(stdin); gets(UsersName); for(loopcounter=0; loopcounter<TOPTENSCORES; …

Software Development c
Member Avatar for ianvdl
0
108
Member Avatar for riahc3

Hey The title is a bit confusing so Ill explain. I have a function that returns random values from 0-4 for the computer (which has numberofplayers). Lets say number of players is 2. One is me and the other is the PC. I (myself thru a scanf and I being …

Software Development c
Member Avatar for Salem
0
183
Member Avatar for shadows09

I have no idea how to get started -Prompt user for an integer -If the number is even, divide it in half - If the number is odd, multiply it by 3 then add 1 - If the number reaches 1, stop; otherwise go to step 1 -Use while loop. …

Software Development algorithm python
Member Avatar for leegeorg07
0
186
Member Avatar for d4diaz

hey guys please help me out here.i really liked to know how to convert hexadecimal to binary

Software Development c++
Member Avatar for Freaky_Chris
0
89
Member Avatar for aashaw

Hi all, Can anyone send me the Apriori Algorithm implementation in C and a dataset so that I can able execute and learn. Your help is greately appreciated. Thanks, Arthur

Software Development algorithm c dataset
Member Avatar for Salem
0
108
Member Avatar for En-Motion

I'm trying to validate my textbox so that the user must enter a Table Number between 1 and 20. The click event of the exit button checks this and if invalid input, displays a message box. It works for all numbers except 3-9 where it displays the warning even though …

Software Development visual-basic
Member Avatar for En-Motion
0
73
Member Avatar for revenge2

Having trouble understanding using wxPython....:?: [CODE=Python] import wx class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,wx.ID_ANY, title='Hello wolrd') self.buthello = wx.Button(self, wx.ID_ANY, label ='helo') self.buthello.Bind(wx.EVT_LEFT_DOWN, self.helloevent) self.Show() def helloevent(self, event): msg = 'hello' msgbox = wx.MessageDialog (self, message = msg, style = wx.OK) if msgbox.ShowModal() == wx.ID_OK: msgbox.Destroy() app = wx.App(redirect = False …

Software Development python
Member Avatar for Ene Uran
0
125
Member Avatar for djzmo

Hello I need to create a table (using multidimensional array/vector) that contains datas in a spiral form. Here's my work so far: [code=C++]int current_char = 0, rows = 3, columns = 4; string input = "abcdefghijkl"; vector< vector<string> > str_table(rows, vector<string>(columns)); for(int i = 0; i < (int)input.length(); i++) { …

Software Development c++
Member Avatar for Sky Diploma
0
117
Member Avatar for lehe

In the following code: [code] for(int i = 0; i < argc; i++) cout << (i > 0 ? " " : "") << argv << (i < argc - 1 ? " \\" : "") << endl; [/code] I try to use "next" to step over, but always step …

Software Development c++
Member Avatar for lehe
0
152
Member Avatar for anu123d

Greetings, how can i write a search program to search a user entered string saved in an array, in a text file using File Operations in C. Specially using fseek() function. Plz reply, Thanks in advance..!

Software Development c
Member Avatar for Narue
0
86
Member Avatar for Hedelerden

Hi everyone, I am having trouble with a function that mergesorts a generic array (using void *); it seems that I can't swap two elements in it Here is the code [code=C++] void mysort( int n, // Number of elements int elementSize, // Size of each element void * array, …

Software Development c++
Member Avatar for Narue
0
890
Member Avatar for Vms100

I'm developing a mod for Quake2. When the level is changed, some stats are cleared and some are written to save game file. My mod has a level system that affects the power of weapons, etc things. But, then i encountered a problem. I want to save my character data …

Software Development c
Member Avatar for Vms100
0
93
Member Avatar for kadamora

i'm doing a game for my c++ course and there is something wrong with a class the error comes up in class hero...function jumpright [code=cplusplus] #include <iostream.h> #include <conio.h> #include <afx.h> #define rows 48 #define cols 80 class screen { private: char x[rows][cols]; public: screen() { int i,j; for(i=0;i<rows;i++) { …

Software Development c++
Member Avatar for Nick Evan
0
333
Member Avatar for thorster

Hi! I am new to C and need some advice here. I have a solution to this problem but I still think there should be a way to do this more efficiently: I have a file where I have stored null-terminated strings including the '\0' char. I now want to …

Software Development c file-system
Member Avatar for Ancient Dragon
0
2K
Member Avatar for adam291086

I am trying to print out some database resutls as follows [CODE] cursor.execute("SELECT * FROM User") numrows_user = int(cursor.rowcount) i_user = int(0) Results_user = cursor.fetchall() while i_user < numrows_user: print Results_user[i_user]["ID"] [/code] Put i am getting nothing i know i_user is working and i know there is information in the …

Software Development python
Member Avatar for adam291086
0
110
Member Avatar for neighbordave

This code is supposed to find the nth short word For example, if you are passed an array containing the words "Mary", "had", "a", "little", "lamb" and you are asked to return the second word, you would return "a" Below is my attempt to solve this but im pretty confused …

Software Development java
Member Avatar for verruckt24
0
105
Member Avatar for nagatron

Please help me how to ignore case sensitivity in VB. My program is to store data in the database, though I use small letters or big letters, the database store the data starting with a capital letter followed by small letters. Ex. [B]Input[/B][B]:[/B] [COLOR="Red"]Neil, neil, NEIL[/COLOR] [B]In the database:[/B][COLOR="Red"] Neil[/COLOR] …

Software Development visual-basic
Member Avatar for nagatron
0
226
Member Avatar for zhane88

good day, I am in need of a hand ...i am building a Wire transfer software for remmitance into bank accounts but i am having some errors..i would like you to contact me in any case if you can be of assistance. my email is [email removed] Please do get …

Software Development java
Member Avatar for stultuske
0
76
Member Avatar for avillachandok

hi, i've an insertion sort algorithm and a selection sort algorithm. i'm not sure how to measure the performace(best case and worst case in terms of N= size of the list, deque, vector etc.) i'm trying to insert comparecount and movecount in the program. Bubble sort was easy but im …

Software Development algorithm c++
Member Avatar for avillachandok
0
99
Member Avatar for edadma

I'm learning Scala after having used Java for years. I'm wondering if anyone has found a good Scala programming software other than Eclipse and NetBeans, both of which have bugging Scala plugins? I know about the Jedit Scala plugin. It's even worse than Eclipse. And then there's this funny little …

Software Development java java-netbeans
Member Avatar for peter_budo
0
93
Member Avatar for dhpatil1

Hi , I'm using oracle 10g and vc++ 8 .Net 2005. Can anyone help me out in loading oraocci10.dll dynamically. when applcation run that time "This application has failed to start because oraocci10.dll was not found. Re-installing the application may fix this problem." popup display. I also copy oraocci10.dll ,oci.dll,oraocci10.lib,oci.lib …

Software Development c++ oracle
Member Avatar for tomtetlaw
0
200
Member Avatar for Liszt

I have made a program that stores a file like this: [code] ofstream out; out.open("C:\\reg.txt"); [/code] This file is used everytime a program starts in order to find if the encrypted password is correct within this file. This works without any problem on my computer, using XP Proffessional and where …

Software Development c++ windows-server windows-vista
Member Avatar for mostermand
0
171
Member Avatar for BestJewSinceJC

After some research I found this link [url]http://splainhow.com/jogl_eclipse.html[/url] which explains how to set up a project in Eclipse to use OpenGL with it. But I want to integrate the OpenGL libraries for JOGL with Eclipse so that I can import and use them with any projects. Does that make sense? …

Software Development java opengl
Member Avatar for stephen84s
0
102
Member Avatar for Burrito

I have found a few examples online of how to write a socket server for a chat application. I pieced a few together and got it working great in a console application. I have since tried pushing it to a Winforms application and run into a small snag. When I …

Software Development windows-server
Member Avatar for LizR
0
134
Member Avatar for cVz

:yawn: I am trying to import the address book from MS Office, can anyone tell me where to locate the MS Outlook addressbook ? Thank you in advance... [ICODE]cVz[/ICODE]

Software Development
Member Avatar for cVz
0
100
Member Avatar for lonely_girl

HI I need a little help with this program [code=c] #include<stdio.h> #include<conio.h> void main () { float num1,num2,result=0; char ch; clrscr(); printf("\nEnter 1st num:"); scanf("%f",&num1); printf("\nEnter 2nd num:"); scanf("%f",&num2); wrong: printf("\nEnter + for addition" "\nEnter - for subtraction" "\nEnter / for division" "\nEnter * for multiplication\n"); scanf(" %c",&ch); if (ch=='+') …

Software Development c
Member Avatar for lonely_girl
0
140
Member Avatar for 0av067

within a windows forms class (form1) I declared a cliext vector of vectors of strings with [CODE]cliext::vector<cliext::vector<String^>^> myvector;[/CODE]. Then, within a function in that same class I tried to push back a vector of strings in myvector but it resulted in an error. I attempted to push back the vector …

Software Development c++
Member Avatar for 0av067
0
538
Member Avatar for evilllllll

My hw is to create a strategy for this rock paper scissors game. this is my code for the game itself: import java.awt.*; import java.awt.event.*; import javax.swing.*; /** *The RPs applt plays Rock paper *scissor, lizard, Spock game and *keeps track of how many times *you won lost or tied …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
116
Member Avatar for sonicstage

Hello all, I just started using c++ and I'm supposed to write a function that takes two positive integers, p and q, where p<q, and i have to return the sum of all the numbers >=p and <=q which are divisible by 7. here's what i have so far: # …

Software Development c++
Member Avatar for sonicstage
0
95
Member Avatar for ACParson2001

Having some troubles with a program I'm writing. I'm using SharpDevelop, and I'm writing a VB.net program, that I am doing for a friend. I have a combo box that has a list of races, that are already added (Human, Elf, Dark Elf, Draconian, Viera, Wingly). Upon selection, the appropriate …

Software Development vb.net
Member Avatar for ACParson2001
0
130
Member Avatar for orthographer

hey..i am a novice when it comes to C programming coz i am a bio-engineer..however, i landed a job with an It giant, and we have been allotted a project(for practice's sake though!) by them on a trainee level..ofcourse, it involves a normal-login program..i was able to figure out most …

Software Development c
Member Avatar for WaltP
0
208
Member Avatar for crackerjacker

Hi- so i want to be able to type in a file name (not knowing the path) and have it search the c: drive. then, when it finds the file it will return the path (in a variable, label, etc.) thanks!

Software Development visual-basic
Member Avatar for crackerjacker
0
80
Member Avatar for mannyg

so i no ive read this stuff about hmwrk. but i have done a lot of work and dont want anyone to finish it for me i just need advice, im making a coffee machine and i have made a layout, but i dont no how to put in the …

Software Development gui java java-swing user-interface
Member Avatar for sillyboy
0
126
Member Avatar for serkan sendur

How it is useful to create a static variable in a non static member function? The compiler allows that, and i wonder in what situations it is useful to create static variables in the function bodies as they are going to be disposed at the end of the function call.

Software Development c++
Member Avatar for Rashakil Fol
0
165
Member Avatar for daviddoria

Is there anyway to get the calling function? ie [code] void A() { if (A() was called from B() ) do something; else do something else } [/code] Is this possible? Dave

Software Development c++
Member Avatar for Rashakil Fol
0
132
Member Avatar for user2009

(Using MS Visual Basic 2008) Hi I have Created this program so far for a uni assignement, how ever i need to be able to total the arrays so i can display correct total overall, however the array size has to be defined by the user therefore the size of …

Software Development c++ visual-basic
Member Avatar for vmanes
0
134
Member Avatar for asifjavaid

Hi, I am in problem. I have written some code in VC++.NET 2008. It is using third part AMT SDK. It is using file handling of C using fopen() function. The file are opened in binary mode (rb). It is working very perfect according to our requirment on my local …

Software Development c++ file-system operating-system
Member Avatar for cikara21
0
1K
Member Avatar for ribena500

Hi, I have some basic code: cout << "HOW MANY BOTTLES IN THE BASKET? "; cin >>bottles; I want to put an if statement to make sure that no letters are entered and only numbers are? How would i do this? Thanks guys!

Software Development c++
Member Avatar for StuXYZ
0
199
Member Avatar for mitso6989

Looking for some help catching flash as3 POST command with python. Anyone done this? below is my AS3 Code:(I have on pretty good authority that this part is right) [code] function savedata(event:MouseEvent):void { trace ("i've been clicked"); var myData:URLRequest = new URLRequest("user_info.py") myData.method = URLRequestMethod.POST var variables:URLVariables = new URLVariables() …

Software Development flash python
Member Avatar for perica.zivkovic
0
432
Member Avatar for rottmanj

I have setup a class that stores the data for my database connections. Inside the class I have several members that either set or get the variables. Inside my main I have set the value of the hostname. Now I have a second class that I am testing with called …

Software Development c++ oop
Member Avatar for StuXYZ
0
100
Member Avatar for athtsa

Sorry for my English firstly! I have the below project to do in assembly language!I don't know Assembly and i would like if anyone has the time to help me! It's a project from my school and it must be done! I would appreciate any helpful information! I look forward …

Software Development assembly
Member Avatar for Salem
0
118
Member Avatar for flipjoebanana

Hello, I am trying to figure out why pointer address is not preserved over a function call and how to fix it. For example: [code] void test_function(char **,char *); int main() { char **argv = calloc(64,sizeof(char *)); char *line = "MAMMAJAMMA!"; test_function(argv,line); printf("argv[0] == %s",argv[0]); return 0; } void test_function(char …

Software Development c++
Member Avatar for flipjoebanana
0
96
Member Avatar for xmoon2000@gmail

Hi, I ran the code beloew but with different version of the "if" statement. Do either boolean, int or double comparisons. Astonishingly, they all give the same order of timings! I would have assumed that boolean would be MUCH fatser than doubles. Can anyone explain why this is? Moon std::clock_t …

Software Development c c# c++
Member Avatar for StuXYZ
0
185

The End.