132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MEversbergII

[code]import TerminalIO.KeyboardReader; public class TempConversion { public static void main(String [] TemperatureCalculations) { KeyboardReader reader = new KeyboardReader(); double fehrenheit; double celsius; System.out.print("Enter degrees Fahrenheit: "); fahrenheit = reader.readDouble(); celsius = (fahrenheit - 32.0) * 5.0 / 9.0; System.out.print("The equivalent in Celsius is "); System.out.println(celsius); reader.pause(); } }[/code] I picked …

Software Development java
Member Avatar for AlwaysLearning
0
235
Member Avatar for fdrage

when you have a variable and you are not using it at all in the code... i.e you forgotten about this particular member well in eclipse there is something that indicates that, that particular member is unused... some exclamation mark or something.... my question is, is there such a feature …

Software Development java
Member Avatar for fdrage
0
108
Member Avatar for gobiv

I need to write simple program in C++! I need to write program that read information from file,which contain <50,students name and respective score.My program need to calculate average score and print out students name,who get below average mark to screen!But,i don''t know how to use string to do it.... …

Software Development c c# c++
Member Avatar for gobiv
0
113
Member Avatar for kathy78

Hello, I'm very new to .net so please be patient w/me. I'm using C# in VS2005. I have the following in my login.aspx page for the button [B][U]login.aspx[/U][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]tr[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]td[/COLOR] [COLOR=#ff0000]align[/COLOR][COLOR=#0000ff]="center"[/COLOR] [COLOR=#ff0000]colspan[/COLOR][COLOR=#0000ff]="2">[/COLOR] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]asp[/COLOR][COLOR=#0000ff]:[/COLOR][COLOR=#800000]Button[/COLOR] [COLOR=#ff0000]ID[/COLOR][COLOR=#0000ff]="Submitbtn"[/COLOR] [COLOR=#ff0000]runat[/COLOR][COLOR=#0000ff]="server"[/COLOR] [COLOR=#ff0000]Text[/COLOR][COLOR=#0000ff]="Log In"[/COLOR] [COLOR=#ff0000]ValidationGroup[/COLOR][COLOR=#0000ff]="Login1"[/COLOR] [COLOR=#ff0000]BackColor[/COLOR][COLOR=#0000ff]="DarkGray"[/COLOR] [COLOR=#ff0000]Font-Bold[/COLOR][COLOR=#0000ff]="False"[/COLOR] [COLOR=#ff0000]ForeColor[/COLOR][COLOR=#0000ff]="Black"/>[/COLOR] [COLOR=#0000ff]</[/COLOR][COLOR=#800000]td[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff]</[/COLOR][COLOR=#800000]tr[/COLOR][COLOR=#0000ff]>[/COLOR] This is the code behind. Somehow when …

Software Development asp web-server
Member Avatar for kathy78
0
116
Member Avatar for Gessa

Hey guys I'm Gessa I recently started my graduate studies where I have to take at least programming two, the last programming class I took was in my associates degree and one in the beginning of my bachelor's degree. And need some real help with some code and how to …

Software Development java
Member Avatar for iwlu
0
178
Member Avatar for THK

hi everyone i need some help with java..:sad: [B]Write the definition of a method twice , which receives an integer parameter and returns an integer that is twice the value of the parameter.[/B] and [B]Write the definition of a class Telephone . The class has no constructors, one instance variable …

Software Development java
Member Avatar for masijade
0
387
Member Avatar for chicagoavonlady

Could somebody help me understand what this is asking for? I have tried different c++ codes and I don't think im reading it right... NOTE: IM NOT ASKING FOR THE ACTUAL CODE... I want to try and figure this one out 1st....but I don't think the way I'm reading it …

Software Development c++
Member Avatar for chicagoavonlady
0
112
Member Avatar for beantowner2

Does anyone know anything about Java applets using 100% of the CPU cycles? The only clue I have is that I've been told that MSJVM has problems that Sun's JVM doesn't have. I'd be interested to know whether anyone else has had this problem and fixed it successfully.

Software Development java
Member Avatar for masijade
0
101
Member Avatar for Mistro116

I want to do something like this: class foo { private: class foo2 { ... void Print (ostream & out) .... }; ostream & operator << (ostream &out, const foo & temp); public: ... } I want it so class foo can cout << foo2 objects only in the foo …

Software Development c++
Member Avatar for Mistro116
0
123
Member Avatar for vheart20

hi am in urgent need of a good vb 6.0 project with oracle.i will be very thankfull if u could help me as soon as possible

Software Development oracle visual-basic
Member Avatar for WaltP
0
161
Member Avatar for mlawson22

Im so lost in this C++ class I have a vague idea of what to do but am getting myself confused. If anyone would help me get started on doing this assignment I would greatly appreciate it. :sad: Assignment: A mail order house sells five different products whose retail prices …

Software Development c++
Member Avatar for WaltP
0
254
Member Avatar for stan yost

Has anyone ever had a form freeze up in vb 5.0? When I run by program the form is displayed in the smaller size and the 3 buttons at the top of the screen (the minus sign, the box and the X) are not functional.

Software Development visual-basic
Member Avatar for stan yost
0
80
Member Avatar for Sashar400

Hi I am new to this forum and to c++.I am having problems reading data from a txt file into a 2d array. The data is in the file like this 1 5 87 3 3 24 2 4 62 4 2 22 I am only suppose to read in …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
221
Member Avatar for moussa.eltayeb

Hi, has anyone of you an C++-code of game of life ...

Software Development c++
Member Avatar for Ene Uran
0
82
Member Avatar for jan1024188

sory im complete newbie i have [code]include <stdio.h> int main() { int x; for(x=1; x < 10; x++) { printf("%d\n second ", a); } return 0; }[/code] [code]for.c:1: error: syntax error before ‘<’ token [/code]

Software Development c
Member Avatar for jan1024188
0
90
Member Avatar for jan1024188

ive got this [CODE]#include <stdio.h> #include <unistd.h> int main() { int a; int b; a = 3; b = 30; until (a == b) printf("%d\n second ", a); a++; usleep ( 990000 ); printf("\n\n hvala ker usate ta pgr \n\n"); return 0; } [/CODE] but i got this error when …

Software Development c
Member Avatar for jan1024188
0
79
Member Avatar for kathy78

Hello everyone, I am using VS2005 (C#) and have the following code behind for my login page. When I try to compile it, I get the following error on the line in bold below. Seems like I need to convert "UserName" and "Password" to strings. Can someone please help me …

Software Development
Member Avatar for peterbyrne
0
102
Member Avatar for pfunix

Greetings All! I would like to get some feedback to all ya good python folks here at daniweb regarding some implementations that you guys doing with Python and using MySQL db. I'm looking for some mysql plugin for python. I've tried sourceforge 's mysql-python but with no luck(installing) .. maybe …

Software Development daniweb-feedback mysql python
Member Avatar for ghostdog74
0
160
Member Avatar for Clinton Portis

I am writing a simple program.. enter first and last name and a search is performed.. and their phone number (if found) is returned. I have used vector class iterators before a couple of times.. but devcpp does not seem to like this code.. and stops compilation somewhere inside of …

Software Development algorithm c++
Member Avatar for iamthwee
0
127
Member Avatar for mrwan
Member Avatar for jwenting
0
99
Member Avatar for THK

You are given a class named Clock that has one int instance variable called hours . Write a constructor for the class Clock that takes one parameter, an int , and gives its value to hours . help me some one :(

Software Development java
Member Avatar for THK
0
224
Member Avatar for maheshsayani

Hi All I want the form look like image. I mean that the form should be shaped as the image. for example when you click on skin mode in windows mediaplayer you will find the window like head shaped. i want my form look like that Pls any one help …

Software Development image visual-basic
Member Avatar for Comatose
0
87
Member Avatar for NZStudent

I have a block of MIPS code that implements a pseudo-instruction operating on the values from two registers. The problem is i am having trouble undertanding what it does. The code is: sll $t0, $s0, 31 srl $s0, $s0, 1 srl $s1, $s1, 1 or $s1, $s1, $t0 I think …

Software Development operating-system
Member Avatar for Charles Esson
0
273
Member Avatar for Matt Tacular

I am taking grade 12 programing and in the course, you can make any program in any language for a final project, and I want to do one in python, but I dont know what to make, I need help to come up with an idea for a rather useful …

Software Development python
Member Avatar for Ene Uran
0
135
Member Avatar for Barefootsanders

Hey everyone. I dont know if anyone here can help me but I run a site powered by the Joomla CMS. I wanted to design a component for my site and I was wondering if i could use C++ to design it instead of PHP and just use the 'system' …

Software Development c++ cms first-post php
Member Avatar for Barefootsanders
0
106
Member Avatar for jan1024188

i have [CODE]#include <stdio.h> int main() { int a; int b; a = 3; b = 30; while (a < b) { printf("%d\n crap .....", a); a = a + 1; } return 0; } [/CODE] i got output [QUOTE]crap .....4 crap .....5 crap .....6 crap .....7 crap .....8 crap …

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

Hey guys. Ive been trying to write this program for a while and I keep getting errors on line 78, "Circle undeclared." I think it has something to do with the constructors and templates. I dont think im calling it right. Can someone take a look at it for me …

Software Development c++
Member Avatar for Barefootsanders
0
132
Member Avatar for fdrage

I have an algorithm problem with recursion: i have a route from A to D and it looks like this [CODE] [A, B, C, D][/CODE] the alphabet in the above list is an object of a class, lets call that class Nodes each of this Nodes object they have some …

Software Development algorithm java
Member Avatar for iamthwee
0
121
Member Avatar for doraemon

I just start learning C++. I thought I can access an integer array by using pointer arithmetic method. why does the first program work but the second one does not??? [code] #include<iostream> using namespace std; int main() { int array [5], i, *p; for (i = 0; i < 5; …

Software Development c++
Member Avatar for rowly
0
148
Member Avatar for dunderhead

Hi, I am having a problem with function and class syntax. I have one class (MakePanel1) that creates a button and label. The button-click event of the button is linked to a function (daclick1) that changes the text of the label. This works well. I have another class (MakePanel2) that …

Software Development python
Member Avatar for dunderhead
0
2K
Member Avatar for rowly

Hi, can any one tell me what size_t_count does, i couldnt get it . thanks guyz ! [code] fwrite([COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]void[/COLOR]*_str,size_t_Size,size_t_count,file *_File); [/code]

Software Development c
Member Avatar for rowly
0
355
Member Avatar for rmeader

Can anyone point me to a discussion or reference tutorial, etc. on how to write a program in Assembly to reverse a simple string?

Software Development assembly
Member Avatar for Evenbit
0
106
Member Avatar for joem1973

hi every one!! can anyone send me a sample program that creates a different beep sounds.. meaning by pressing diffrent letter, a diffrent tone sounds.. beep of diffrent frequency...

Software Development assembly
Member Avatar for Evenbit
0
2K
Member Avatar for SyLk

can someone explain how i could go about applying this recursive method to a string of integers from a text file. so far i have read the string into an int array in my main using a tokenizer and im unsure of how i should manipulate the array now. also …

Software Development java
Member Avatar for Cudmore
0
125
Member Avatar for jan1024188

please help me [url]http://www.linuxforums.org/forum/linux-applications/72657-qt3-designer.html[/url]

Software Development c
Member Avatar for jan1024188
0
101
Member Avatar for jan1024188

ok im newbie... i have a question if i have [code] #include <stdio.h> int main() { printf("type something:"); char a; scanf("%c", &a); printf("%c\n" ,a ); return 0; }[/code] i will aways get one character in output.My question is: -how to get world "hello" as standart output from variable using printf?

Software Development c c# c++
Member Avatar for jan1024188
0
126
Member Avatar for amishosh

Hi! On different occassions (random as much as I can tell) the "gets" command does not work. The compiler simply skips it and moves on to the next code line. Like I said, other times it does work. Any suggestions? Thanks Ami

Software Development c++
Member Avatar for ~s.o.s~
0
303
Member Avatar for Laiq Ahmed

i want to calculate the complexity of the following code snippet [code] for(int k=0;k<n; ++k) for(int j=0; j<k; ++j) for(int i=0; i<j; ++i) cout<< "Hello World" <<endl; [/code] here! i got the hint! that summation of natural numbers series would be used if its correct why ? bit confused:sad:

Software Development algorithm c
Member Avatar for Infarction
0
96
Member Avatar for hoosier23

If I were to overload the subscript operator, aka '[]', it would probably look something like this: [code] int &operator[](int); [/code] If I filled this array with 10 digits.. 1.2.3.4, etc... How could I return the largest digit, and then the next largest digit? etc... I'm not sure if a …

Software Development c++
Member Avatar for iamthwee
0
191
Member Avatar for FireSBurnsmuP

Okay, I know that Python is a programming language (it comes with some Linux installs), but what are its stats? I mean, how efficient is its build? How much larger or smaller are the programs than C++? How much faster are the programs than those created by C++? What are …

Software Development python
Member Avatar for vegaseat
0
180
Member Avatar for sugantha

I am doing a lexical analysis program and this is a part of the code that counts number of keywords [code] int keyword=0; char str[]="int float + - 78"; char* ptr; ptr=strtok(str," "); while(ptr!=NULL) { if(((strcmp(ptr,"int"))||(strcmp(ptr,"float")))==0) keyword++; ptr=strtok(NULL," "); } cout<<keyword; [/code] to my knowledge there is no imbalance of …

Software Development c
Member Avatar for iamthwee
0
95
Member Avatar for hano

hi iface aproblem in c program i want to write aprogram to read R={(1,2),(2,1),(3,3),......} then covert it to matrix0/1 please help me quickly

Software Development c
Member Avatar for iamthwee
0
87
Member Avatar for Gigs_

Hey people, does someone know program that can open something.X files and that is big about 2GB? thanks appologies for post here.

Software Development c++ first-post
Member Avatar for ~s.o.s~
0
121
Member Avatar for dhaya

i need a program urgently for round robin schedulng algorithm using circular linked list implementation.. please send a program using c++... post the prg to my mail id.. << moderator edit: removed email address >>

Software Development algorithm c c# c++ email first-post linked-list
Member Avatar for Paul.Esson
0
1K
Member Avatar for shiman999

:cool: can any one help me to get the latest version of borland C++/ turboC++, which is fully funcional.... plz help me.... i am planning to do project in C++... which shuld have a complete features.... i have turboc3 compiler..... plz any latest....:?:

Software Development c++
Member Avatar for Ancient Dragon
0
156
Member Avatar for dev.cplusplus

Hi to all, I don't now if this is the rigth place, but I will ask anyway. I'm trying to improve the performance of my ISAPI application (written in C++), I'm looking for information to read in the web but I dind't found much, I was wandering I you have …

Software Development c++ visual-studio
Member Avatar for dev.cplusplus
0
90
Member Avatar for bobbymusic

In my form I have two rich text boxes.In both of them I put two different text files(.txt or .rtf).I looking for some code to compare them, and to have the result as marked differences into the second rich text box.How I have to compare them-as strings or as files? …

Software Development visual-basic
Member Avatar for bobbymusic
0
151
Member Avatar for Jeffxxx

Hi, I am a newbie in this wonderful world of PIC programming and having some problems, so I'm hopeing some one out there can help me out. I have written a program for the pic 16f876a microcontroller, this uses RA0 as an analogue input. I have tested it with MPLAB …

Software Development assembly
Member Avatar for Jeffxxx
0
200
Member Avatar for Niklas

I am trying to make my program more easy to use and not have computer illiterate people struggle to install my program. My question is can a C++ program install ITSELF into another directory upon execution. I want the program to run, but I also want it to make a …

Software Development c++ first-post
Member Avatar for iamthwee
0
156
Member Avatar for johnnyrocket

I've placed a CSV file into an array with C++ with each row being a single array element, but the file contains many, many columns that I don't need. I only need columns 1,2,3,4,6,7 out of about 50. Is is best to read the full value into the array and …

Software Development c++
Member Avatar for iamthwee
0
5K

The End.