132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sonidhanni

hi!! my problem is im not able to start java in my pc. i am installing jdk1.5 in my pc n wenever i try to run my program by command javac example.java the program compiles bt when i try to intrepet by java example it shows an error [no main …

Software Development java
Member Avatar for p.bondam
0
139
Member Avatar for AnG'

[code=cplusplus] #include "stdafx.h" #include <iostream.h> struct MonthInfo { float totalRain; float highTemp; float lowTemp; float avgTemp; }; struct MonthInfo year[12]; int main(int argc, char* argv[]) { const int MONTHS = 12; // Change here for (int i = 0 ; i < MONTHS ; i++ ) { cout << "Enter …

Software Development c++
Member Avatar for Ancient Dragon
0
159
Member Avatar for iwlu

[COLOR=#333399]A bit of problem here, if anyone can help, I would appreciate any and all help with this. Thank you in advance.[/COLOR] [COLOR=#333399]Now I have no errors but when I execute the program I get this:[/COLOR] [COLOR=#333399] [/COLOR] [B]Big Bank: Monthly Checking Account Activity ----------- Account ----------- Beginning With- Ending …

Software Development java
Member Avatar for p.bondam
0
142
Member Avatar for dmmckelv

OK Can anyone help me understand what a tokenizer does? And why I have to put *tokenPtr? What is the * for? I am having a heck of a time figuring out how to write a program that takes the last two letters of a word in a sentence puts …

Software Development c++
Member Avatar for ~s.o.s~
0
262
Member Avatar for dmmckelv

My while statement does not work. This program is only performing the function on the first word in the sentence. Can anyone help me get the while statement to do all of the words in the sentence? [code=c] #include <iostream> using std::cin; using std::cout; using std::endl; #include <cstring> using std::strtok; …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for rQQt

Hello I'm writing a little selection sort program in C. Unfortunately the algorithm doesn't work correctly. After the selection sort some float numbers in the array are rounded down to whole ints. Here's the example: [inlinecode] Code: enter input filename:data // input numbers 5.000000 7.000000 -48.400000 8.800000 8.400000 1.500000 8.400000 …

Software Development algorithm c
Member Avatar for Salem
0
96
Member Avatar for krauz2

[COLOR=#000000]I am having trouble getting this program to work. This is my first applet and I can’t seem to get my mind around how to get the commands in correct format. I have completed this program in application and gui with no problems, but applet format is not working in …

Software Development gui java java-swing
Member Avatar for p.bondam
0
137
Member Avatar for Acquire

Ok, I'm doing a basic structure program that displays things. Here's an example of what it should display. [code]Invalid data in line 11 Daring Dunkers Player Statistics Player Field Goals Free Throws Total Tried Made % Tried Made % Points Jerry 2 1 0.50 2 1 0.50 3 Akeem 0 …

Software Development c data-structure
Member Avatar for WaltP
0
108
Member Avatar for Lois33

Hi, Inputfile.log TDR 30 /data/data2/log1 TDRM 60 /data/data2/log2 # This command will match both lines $ grep ^TDR Inputfile.log # This command will match lines with TDR word appear anywhere in the text (but not TDRM) $ egrep -w TDR Inputfile.log How can I just match TDR that appears only …

Software Development shell-scripting
Member Avatar for Lois33
0
89
Member Avatar for JRM

I have a funtion executing a loop, which semes to be progressing normally until the debugger halted with this message; Program received signal SIGSEGV, Segmentation fault. I pulled up a a backtrace and it had "normal lookuing" addresses for the this pointer and the reference variable. I could probably figure …

Software Development c
Member Avatar for Ancient Dragon
0
74
Member Avatar for sneekula

I am experimenting (playing around) with the Python Tkinter Gui, and wondered if there is a way to play a sound like from a .wav or .au file?

Software Development gui python tkinter
Member Avatar for sneekula
0
5K
Member Avatar for Acquire

I'm trying to make a loop that that will skip a number but has a certain limit to how high it goes... For example: I have a for loop: [code]for (i = 0; i < count; i++ ) { stuff }[/code] but lets say I want to skip a number …

Software Development c
Member Avatar for Acquire
0
494
Member Avatar for stupidenator

Hi everyone, I have a small problem. I am writing a program for school in which I will construct a hash table for dictionary words, using the soundex code of the word as the hash function. For the hash function, I have to take the soundex code and convert it …

Software Development c
Member Avatar for stupidenator
0
141
Member Avatar for Acquire

I'm fairly new to C and have been doing pretty good up until arrays. I understand the basics of them but not exactly how to use and impliment them in more complicated ways. I am trying to write a program that will display a table of strings and intigers from …

Software Development c
Member Avatar for majicbeans
0
241
Member Avatar for majicbeans

[CODE=c] #include<stdio.h> int main(void) { char letter; char *pletter; pletter = &letter; printf("%p", &letter; putchar('\t'); printf("%p", letter); putchar('\n'); puts("Understand?\nWhat is the right way? it is 4bytes different"); //*allows the value to be altered by the base adderess //&lets a datatype to value by its adderess from another datatype takes 2 …

Software Development c
Member Avatar for majicbeans
0
129
Member Avatar for balgarath

(c++) Ok so I understand how to use the system function, and how to output to a file. How do I pipe the output of say system("last") to a file? system() returns an int, so if I mystream << system("last") it will put an int in the file. I need …

Software Development c++ file-system
Member Avatar for balgarath
0
164
Member Avatar for dmmckelv

I am back this week with another homework problem. My array is not working like I thought it would. My brain is about to explode trying to comprehend what is going on. This code will compile but, it won't do what I want it to. The array is supposed to …

Software Development c++
Member Avatar for johnpeter1989
0
102
Member Avatar for swathi.s

hey ppl, for a project in coll i need to implement a simple lexical analyser in C....i did get a code but wen implemented it recognises EOF after one blank line...as d input n ouput are files...so if any idea as wat could be d reason??? n any codes to …

Software Development c
Member Avatar for iamthwee
0
131
Member Avatar for Little E

I designed a website for my husband, but I'm having trouble getting the submit button to work the way I want it. I want it to send the customers information to our email address and then to a thank you page. I've been able to get it to send the …

Software Development email perl
Member Avatar for Mushy-pea
0
113
Member Avatar for k8lj

i want to write a program that will output all of the factorials up to a maximum number provided....if anyone can guide me, thanks...

Software Development
Member Avatar for iamthwee
0
107
Member Avatar for rpjanaka

hi i want to know what happen if we do not "setAutocommit(true)" after a transaction.. at the begining of the transaction it is "setAutocommit(false)"; but then at the end of the transaction if i do not setAutocommit(true), is that will affected for the anoter transaction comming next....? please help me......

Software Development java
Member Avatar for jwenting
0
237
Member Avatar for balgarath

Here we go, I am working on some code to store an IP address in an object. I have overloaded operators >>, <<, and == and they are working fine with 1 problem. I am supposed to be able to cin >> ip1 >> ip2 >> ip3; but after I …

Software Development c++
Member Avatar for balgarath
0
98
Member Avatar for camdonsquire

Hi, thanks for the welcome. I hope you can help me with ,y java pursuit. [COLOR=#000000]I am trying to create a class Date which will eventually contains a single method called showMonth() which will display a calendar for a particular month in the following format ([/COLOR] [COLOR=#000000] January[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000]M[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]W[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]F[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]9[/COLOR][COLOR=#000000]10[/COLOR][COLOR=#000000]11[/COLOR][COLOR=#000000]12[/COLOR][COLOR=#000000]13[/COLOR][COLOR=#000000]14[/COLOR][COLOR=#000000]15[/COLOR][COLOR=#000000]16[/COLOR][COLOR=#000000]17[/COLOR][COLOR=#000000]18[/COLOR][COLOR=#000000]19[/COLOR][COLOR=#000000]20[/COLOR][COLOR=#000000]21[/COLOR][COLOR=#000000]22[/COLOR][COLOR=#000000]23[/COLOR][COLOR=#000000]24[/COLOR][COLOR=#000000]25[/COLOR][COLOR=#000000]26[/COLOR][COLOR=#000000]27[/COLOR][COLOR=#000000]28[/COLOR][COLOR=#000000]29[/COLOR][COLOR=#000000]30[/COLOR][COLOR=#000000]31[/COLOR][COLOR=#000000] …

Software Development java
Member Avatar for p.bondam
0
103
Member Avatar for krauz2

Hello everyone. I have been working on this program for over a week. I really need some help getting this done. I was able to get the math.random to work but when I run my program as an applet I have a text box that I dont know how to …

Software Development java java-swing
Member Avatar for p.bondam
0
159
Member Avatar for foxy xx

me agian lol I posted on here over a week ago about a java assignment.. thanks to those who offered help i really appreciate it even tho it wasnt much help to me at the time ;) ... i am ashamed to say, that even with all the great advice, …

Software Development java
Member Avatar for p.bondam
0
100
Member Avatar for gmpjames

Hi everyone I'm new here and was wondering if anyone could help me please. I am trying to implement dasher in java. Here is the link to dasher [URL]<snipped> I have already set-up the main GUI components and have left the BorderLayout.CENTER for the main program. I have also written …

Software Development gui java
Member Avatar for Ancient Dragon
0
39
Member Avatar for yanz

Hi everyone. Hope you guys can help me. Attached below are VB6 codes for a hand phone to call to a modem. When the action is executed, a message box will pop out ‘Ring Ring’. I just want to know is there anyone out there have the codes for SMS …

Software Development visual-basic
Member Avatar for dtbradio
0
220
Member Avatar for Nurilhansiz

hi! im somekind in a lost mode.how can i call a txtfile out so that it can run a machine? eg if i press this cmdA, it will call out txtfile1 and txtfile1(the command to run the machine is stored in here) will run the machine. and also how is …

Software Development visual-basic
Member Avatar for dtbradio
0
134
Member Avatar for boujibabe

I working on a program that summerizes text documents and I need a way to find the length of the longest and shortest lines in the file and display it in a log file. I've already done a character count and line count. Also say I wanted to created different …

Software Development c file-system
Member Avatar for boujibabe
0
333
Member Avatar for anandarose

The following code is supposed to use the data in the attatched file to generate a list of relavent houses available based on the specifacations that you enter. After I enter my prefered search method I can't get it to stop asking me how many bed/bathrooms or what price i …

Software Development visual-basic
Member Avatar for dtbradio
0
106
Member Avatar for rbinc

[B]Background:[/B] I need the user to type in an int "k" key for an encryption program. For the program to work right, the user entered int needs to be between 1-25. It can't be higher. The problem is if the user enters something other than an int, the program either …

Software Development c++ encryption first-post
Member Avatar for Lerner
0
221
Member Avatar for Gunner54

When i compile this code i get a few errors (i guess are simple for you guys) [CODE]void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) { { DWORD OldProt; VirtualProtect((void*) MemOffset, dataLen, PAGE_EXECUTE_READWRITE, &OldProt); RtlMoveMemory((void*) MemOffset, (const void*) DataPtr, dataLen); VirtualProtect((void*) MemOffset, dataLen, OldProt, &OldProt); } void EnableHack(BYTE* AddrToChange, BYTE* To, …

Software Development c c# c++
Member Avatar for WaltP
0
169
Member Avatar for MarkWalker84

Hi, So it seems my self-teaching experience isnt going as well as i hoped. Every time i think im starting to understand something new pops up that halts me in my tracks :-) lol Was wondering if someone could just give me a quick pointer in the right direction of …

Software Development python
Member Avatar for vegaseat
0
96
Member Avatar for johnpeter1989

I get this error that "LINKER ERROR : SEGEMENT _TEXT EXEEDS 64K". this error does not come on compiling(ALT+F9) but it shows 25 such errors on running(CTRL+F9). I am using a turbo c++ 3 IDE. I am doing a school activity. The program user graphics mode. this error doesnt show …

Software Development c++ ide
Member Avatar for johnpeter1989
0
109
Member Avatar for Ice4fire

Hi people, I'd really like to have a crack at learning java. Ive never touched it before in my life, so can anyone point me to a site where i can take my first steps at learning.. Thanks guys Sorry if this seems a bit of a wasted post Tony

Software Development first-post java
Member Avatar for Ice4fire
0
107
Member Avatar for joelw

im getting an error cannot convert 'int' to 'double' for argument '1' to 'double sort Array(double'.int)' while trying to debug code what does that mean here is another copy of my code now. [code] #include <iostream> #include <iomanip> using namespace std; // Function prototypes double sumArray(double[], int); double getHighest(double[], int); …

Software Development c++
Member Avatar for joelw
0
120
Member Avatar for pugg09

[B]RegQueryValueEx and ÌÌÌÌÌÌÌÌÌÌÌÌÌ !!!![/B] Does anyone know why my code gives me "ÌÌÌÌÌÌÌÌÌÌÌÌÌ" Here's the code. HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = "Volatile Environment"; LPCTSTR regReq = "USERDNSDOMAIN"; DWORD size1; DWORD Type; if( RegOpenKeyEx(HKEY_CURRENT_USER, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, (LPBYTE)rgValue,&size1); } RegCloseKey(keyHandle);

Software Development c++
Member Avatar for pugg09
0
119
Member Avatar for Tiggey

Hello! I need some help with my code. Here's the background information: Six students take three tests. I need to find the grade average of each student (test 1, 2, and 3), then I need to find the average grade of test 1, test 2, and test 3. Next, I …

Software Development visual-basic
Member Avatar for QVeen72
0
103
Member Avatar for centos123

Hi I have a text file which has 4 heading which will constitute the number of columns and based on values an array has to be populated. To give a clear picture it is as: input text file looks like: heading1 value1 10 value2 10 11 heading2 value3 10 11 …

Software Development c++
Member Avatar for centos123
0
197
Member Avatar for _Soul_

Hi everybody I already see in this forum how to make the program Hailstone Numbers in c++ But i need to make it in c#:confused: Could any charity soul help me plese...:)

Software Development
Member Avatar for Godfear1
0
139
Member Avatar for Gowsi

Hi friends.... how to connect MS.Acess database into vb.net...... is any ODBC setting needed?

Software Development vb.net
Member Avatar for Gowsi
0
204
Member Avatar for octopus1991

hey guys i need your help please really urgent can u give me visual basic codes for 1- a program that calculates the greatest common divisible(divisor) by only (while) statement ...plz guys ! only while or if statements ! 2- a program that prints the following nubers also by only …

Software Development vb.net visual-basic
Member Avatar for Dukane
0
84
Member Avatar for aznballerlee

[code] #define _CRT_SECURE_NO_DEPRECATE #include <iostream> #include <fstream> #include <cstring> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; const int MAXWORDS = 8000; const int MAXWORDLENGTH = 6; const int MINWORDLENGTH = 4; int nWords; void fillWords(char words[][MAXWORDLENGTH + 1], int maxwords, int& num); int playOneRound (int wordnum); void correct …

Software Development c c# c++
Member Avatar for ~s.o.s~
0
119
Member Avatar for Yustme

Hi, I'm trying to make a project which "converts" for example from meters to centimeters. I fill 20 labels with a random generated question containing a "fromUnit" and "toUnit" object. Here is my code: [code] public partial class Metrics : Form { private double[] _answer; private TextBox[] _textBox; private Label[] …

Software Development
Member Avatar for iamthwee
0
161
Member Avatar for Eddy Dean

Hello, I want to be able to read the memory of a process in Linux. After some googling I've read that ptrace can be used to this. The syntax of ptrace is as follows: [code]int ptrace(int request, pid_t pid, int addr, int data);[/code] The first value (int request) is what …

Software Development c ubuntu
Member Avatar for ~s.o.s~
0
250
Member Avatar for hoosier23

This program is supposed to show the adjacency lists that are built given the input pairs:: 0-2, 1-4, 2-5, 3-6, 0-4, 6-0, and 1-3 I am having trouble with the syntax of my code. Could someone please help? [code] #include <iostream> using namespace::std; int V; struct node { int v; …

Software Development c++
Member Avatar for hoosier23
0
353
Member Avatar for vdhara

Hi, I am trying to insert a record in a mySQL 5.0 database through a JSP. I am getting an error that the format is invalid. I don't know how to manipulate the code using Java itself. Can anybody guide me? Thanks VDhara

Software Development java java-jsp mysql
Member Avatar for jwenting
0
132
Member Avatar for rich84

Could anyone help me with completing this project? 1. In order to demonstrate your understanding of Object Oriented Programming within a visual environment you are required to create an object oriented graphical program to simulate a simple telephone network. Guidance: Use a suitable container to store the active phones within …

Software Development vb.net
Member Avatar for waynespangler
0
93
Member Avatar for batista06

I stumbled on this function that calculates #'s that are perfect, how ever I do not understand why it works. any one care to explain? [code] int perfect(int num,int den) { int rem = num - ((num/den)*den); if (rem==0) return(den); else return(0); } [/code]

Software Development c++
Member Avatar for DavidRyan
0
116
Member Avatar for matrimforever

I need help figuring this out. What I need is this:[LIST=1] [*]The section number, as a string [*]The instructor's name, also as a string [*]The number of students in this section, as an integer. [*]The student's scores for the test, as an array of integers. Declare this array to be …

Software Development c++
Member Avatar for Ancient Dragon
0
109

The End.