132,726 Archived Topics
Remove Filter ![]() | |
In the code below I am getting a complier error that looks like this: ';' expected }while (employee_equals("")) ^ I am not sure why I am getting this error or how to fix it. [code] //get employee name { System.out.println( "Enter employee name: " ); employeeName = input.nextLine(); do { … Software Development java | |
Hello out there ? i have one question rather a strange one i have two tables say admission and attendance with different fields however admn id , name are the fileds common to both of them when i add my data in admission table (via form) can i at the … Software Development vb.net | |
I am new to programing. i know how to return a date [code] public Date yesterday() { if(this.day == 1) { if(this.Check("Mar", this.month)) { if (this.checkLeapYear(this.year)) { this.day = 29; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = this.monthOfYear[this.flipBack(this.monthOfYear, this.month)]; } else { this.day = 28; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = … Software Development java | |
I found the following code in the 'Code snippets' section( written by nanodano). i tried compiling it in my Dev-Cpp compiler, and i got the output as shown in the attachment for up, left, down and right arrow keys respectively. All other defined keys i.e., F1 to F10 gave the … Software Development c | |
Hi - Please help me with the following. I have to a parse a log file and here is the part of the log file which is occurs repetitively. [Text1] [Text2] [Text3] [Text4] [Text5] [Text6] [Text7] [ ===== PATTERN1 ======= Text8_line1: value1 Text8_line2: value2 Text8_line3: value3 Text8_line4: value4 . . … | |
I've been doing some more work on my robot today and I'm having a bit of trouble with calling a random function like so: [CODE=python] import speech import random import pythoncom running = 1 class OnTopic: topic = "nothing" def TopicChange(self): self.topic = "nothing" print OnTopic.topic class Know_Raptors: def RapYoung(self): … Software Development python | |
Hello ALL, In my program, I first receive data from another machine, then processing the data. Data receiveing is fast, but data processing is relatively time consuming. Hence, I put the code for data processing in a POSIX thread (i am using Red Hat enterpriese linux AS 4). In the … Software Development c++ | |
I would like to have a count down that have days, hours, minutes and seconds. I have labels, lbldays as Days lblhours as Hours lblminutes as Minutes lblseconds as Seconds I want to countdown to 1 January 2009, 0000, and it will counting seconds by seconds. When it reach the … Software Development vb.net | |
what difference between access and sql. i use access in a database project not sql. what what problem i will faced for not use sql. or what advantage i will get for using sql. Software Development sql visual-basic | |
Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i … Software Development java | |
I'm a beginner to C++, I use CodeBlocks which I think is related to Ming so please make your answers pointing to C++ but not Visual C++. Thanks! And also, please ecplain things in detail ... Well, after a long search on the net I found the code that looks … Software Development c++ | |
A lot of blah blah, scroll down for the matter i need help with... Hello everybody. I'm a moderator of a gaming forum and a big fan of bishoujo games. I sometimes do my own game releases/revamps, but what i've did till now didn't involve much "real" coding. I want … Software Development audio data-structure gaming perl python | |
Iam having problem with the following code: All this code does is extract words separated by spaces from string when i compile it i get error27 C:\Dev-Cpp\Untitled1.cpp invalid operands of types `char*' and `char*' to binary `operator*' plzzzz help [code=cplusplus] // Tokenizing program:pointer version #include <iostream> #include <cstdio> using namespace … Software Development c++ | |
Hi all, I have a piece of program written in Visual C++ which works just fine in Win XP. However when its run in Vista, the error message "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." … Software Development c++ windows-vista | |
Hello there! I wrote a small program in C on Windows using DevC++. It works perfectly, but when I try to run it on Linux I get compiler erros at these lines: [code=c]void printOctets(int octets[][], char []); void printInterval(int suntwk[][], int brdc[][]); [/code] This is a college assignment and I'm … Software Development c | |
Hi there. I do not understand the following line of code. [ICODE] program_counter = (memory[0xFFFD] << 8) | memory[0xFFFC]; [/ICODE] [QUOTE] The array memory[] represents the memory space of our processor. The starting address for a 6502 program is stored at location $FFFC and $FFFD in memory. The 6502 stores … Software Development c | |
I think this could be a simple question. I have declared a 2D vector like below. The thing is that by default all elements is set to 0. What I want to do is to declare all of these elements to: -1 how this is possible without doing that with … Software Development c++ | |
Hi everyone... i'm just a beginner in vb2008 i try to make a program that will shutdown pc in the network and i try the shell command below.... shell("shutdown -m \\PC04 -s") I type this code but nothing happen it just open a command promt look alike. PC04 has not … Software Development vb.net | |
This thing is pushing me around. I've been through my book, and I have even downloaded the professor's notes on subject (he posted them). I can't find what I'm doing wrong. Below is the code I've written, below the code is what the console is "supposed" to look like. (Code … Software Development c++ | |
I really don't know where to start and to be honest I really don't know what I'm doing. I was given this project and we never went over these topics in class or the previous class. My attempts to wing it are not going so well and quite frankly its … Software Development c++ | |
Hi, I am using fgets in my program to count the number of lines in file. The number of columns in each line is entered by the user. But the number of lines are not known. After counting the number of lines in the file i am again using it … Software Development c++ | |
Hi I have a question. Basically I want to create a dictionary of words, where a user has typed in a couple of sentencies. Im then supposed to sort it in alphabetic order and also count how many times a word has appeard. The sentence contains letters and whitespaces. Ex: … Software Development c++ | |
This triangle shape full of numbers is the reference I have to use for the first part of a homework problem, but I haven't the slightest clue as to why the rows and columns are indexed starting at zero and what that means in terms of all the other rows. … | |
I havebeen using wxdev c++ but have problems when compiling directx code even though I have installed devpaks for DX9 anyway i think the best thing is for me to get a real compiler not freeware. Are there any good compilers that have gui design tools that will compile directx … | |
Hi, Ive made a little program that calculates the area of a circle by doing Pi * r2, but its not working and I don't know why: [code=cplusplus] #include <iostream> using namespace std; #define PI 3.14159265358979323846 #define NEWLINE '\n' int main () { float Radius = 0; cout << "Radius: … Software Development c++ ![]() | |
I have to take a 2d array of [6][8] floats that represent a star map and add the four surrounding numbers to it to measure it's intensity of light. Would something like make sense??? [CODE]for(i=0;i<6;i++) { for(j=0;j<8;j++) { stars[i][j+1] + stars[i+1][j] + stars[i-1][j] + stars[i][j-1];}}[/CODE] instead of writing many lines … Software Development c++ | |
I have just installed Delphi 2007 in my Vista (jumping from 6 in wonderful XP). Everything is new and unknown. Help seems impossible to find, and I need to get a DLL showing its object in my Tool Palette so I can compile old programs. Could someone please guide me … | |
![]() | Let's say I have a text file separated by tabs containing stuff like: [code] 1.02 \t hello \t 01/02/2008 [/code] How do I get python to recognise that 1.02 is a number, hello is a string and 01/02/2008 is a date. The file has no pattern, i.e it won't always … Software Development python |
Hello! I need some help figuring out how to display my array. The program I am working on is one in which the user can enter any given 20 integers and it display them in descending order. I was able to get that part to work but cannot get the … Software Development c++ | |
Hey... do anyone knows c++ function for implementation of big numbers...i tried googl it...but, i can't find nothing that solve my problem i need to calculate a^e(mod n) example: 125^107 (mod 187)=5 result of 125^107 is too big for standard notation in c++... can someone please help me! Software Development c++ ![]() | |
i am writing a program on 2-D transformation which handles transformations for three objects, namely, point, line and a triangle. i have created a base class Object and derived three classes - Point, Line, Triangle - from it. Here i will discuss just the Object and Point class. The code … Software Development c++ | |
I Have To create a ToolBar,I searched on the Internet & I found the Foll. Lins Useful- [url]http://cgeers.wordpress.com/2008/02/16/internet-explorer-toolbar/#bandobjects[/url] [url]http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx[/url] In both the links, ToolBar is Created using BandObjects. I have no idea abt it,Can somebody plz explain me what is BandObjectLib....... | |
I am trying to paint my own form by using the following code: case WM_PAINT: hDC = BeginPaint(hWnd, &ps); hBrush = CreateSolidBrush(RGB(255,0,0)); FillRect(hDC, &ps.rcPaint, hBrush); EndPaint(hWnd, &ps); break; My problem is, that when you resize the form or drag it around, you can still see it flash grey between paints.... … | |
![]() | Alright I am totally new to Visual Basic and might have just shot myself in the foot agreeing to do this class! Our first project is due tomorrow and not only has my book still not arrived but I was violently ill the past few days and missed class! (Senior … Software Development user-interface vb.net visual-basic |
I want to download MSDN for VB 6.0, From where can I? Regards, Engineer Jokhio Salahuddin Kohistani, Bachelor Of Engineering 2nd Year 4th term Department of Computer Systems & Software Engineering Institute of information & Communication Technologies Mehran University of Engineering & Technology, Jamshoro, Sindh Pakistan. Software Development engineering visual-basic | |
I'm trying to create a function that will delete an already saved file. I was hoping std::remove() would do the trick but I don't know the syntax. Will std::remove() work or should be trying something else... Software Development c++ | |
Well, the basic structure is a form which uses multiple classes defined in seperate files. Below is my controller class which is supposed to keep track of which files are opened. It's included in both the form and the [i]Map.cpp[/i] file, which contains all Map function implementations. I'm supposing these … Software Development c++ data-structure visual-basic | |
Hi, I am trying to create an application that gets the contents of two folders. It should compare the file names in the two folders and put files with different names into a list (unique). Each file with the same name in both folders should be read and the contents … Software Development c++ | |
Hello, i have two questions concerning programming in Java. [U]1st Q:[/U] i have more than frame opened for the same program and when i want to close one of them, all the program closes as well. basically i write this code for closing the frame when clicking on a button: … Software Development java | |
hello ppl, i have a doubt how do i append [B]MSWord[/B] in my proj. if i have a form on which i make a button now on clicking that button [B]MSWORD[/B] should open. If i use [B]system.diagnostic.process.start() [/B]and the whole path of [B]MSWORD[/B] in the bracket it will work but … Software Development vb.net | |
Im not able to run my program witht the following code! [ICODE] Dim rst As ADODB.Recordset Dim sql1 As String sql1 = "insert into Passport_Release VALUES('0259','14/09/2008','returned')" CN.Execute sql1 As Recordset [/ICODE] instead of the last statement i even tried CN.Execute sql1 alone.... but nothing is working... i doubt if error … Software Development visual-basic | |
I need help with my output. I have pretty much everything done. I'm just getting an output like: "The class average is 5.8%" "The class average is 12.4%" "The class average is 13.6%" "The class average is 18.4%" etc. "Highest grade is 58%" "Highest grade is 66%" "Highest grade is … Software Development c++ | |
i have made a sstab with three tabs... i want to know that if i hv to assign different funtions like only one tab should be active for one user at a time where as the other should be disabled... please help soon... very urgent Software Development visual-basic | |
Hello, I am relatively new to Java. I would like to know how to add additional threads to this applet. Particularly adding additional balls that bounce at the same time. I think the problem lies in my mousePressed event. The program will start a new ball, but make the existing … Software Development java java-swing | |
Ok. I'm not experienced at all, and I need to program a set of different math formulas into a code. Here is the first step I'm trying to take. I have an octahedron that has 8 plates. Each plate is composed of 3 vectors. There are 6 vectors in total … Software Development c++ | |
****I'm stuck as to what my next step should be?? I also want to know if I'm on the right track. I've tried searching for some type of sample program as I am sure there are plenty, but when I start to write it doesn't seem to make sense. Any … Software Development c++ | |
Hi friends, I have problem of selecting recordset between a specified date. I am giving my coding detail below. I took a field in Ms Access table table name-travel fieldname - doj datatyoe - Text and vbcoding dim db as new adodb.connection dim rc as new adodb.recordset db.open"Provider=Microsoft.Jet.OLEDB.4.0; Data Source='d:\tmgmt.mdb'" … Software Development microsoft-access open-source visual-basic | |
i'm pretty new to using python...i'm still in the 1st basics... nyway i've tried to work this up... but it didn't work :s... it shows that there's something wrong with the "def" of the add and sub and div and mul formulas...here is the program... tell me what i did … Software Development python | |
I have worked on this class all last night and I am having trouble finding the problem. When I compile this file I am recieving errors and I do not understand what is the problem. Here is the program code: [code] public class Employee { private String employeeName; //name of … Software Development java | |
I'm finally getting my robot's software off the ground!:) (Although I'm giving my "artificial learning" program a rest for later). However, here's something I've been wondering how to do for quite some time now. I'm using the time module to allow my robot to tell me the time upon vocal … Software Development python |
The End.