132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for henryford07

public class Student { private String name; public Student(String nameIn) { name = nameIn; } public String getName() { return name; } public void setName(String nameIn) { name = nameIn; } } and i get this error Exception in thread "main" java.lang.NoSuchMethodError: main

Software Development java
Member Avatar for thekashyap
0
73
Member Avatar for ajrabbit

does anyone know how to convert an integer (3) to floating point single (3.0) ? it tried this but got an error bc of the $t3 cvt.w.s $f4, $f4, $t3 i have a value stored in $t3 register and need to move it from there to a fp register like …

Software Development assembly
Member Avatar for kaliko
0
5K
Member Avatar for mrjoli021

I am using c++ I have a string array and I need to convert it to an int array. I tried static_cast and that did not work. Any suggestions

Software Development c++
Member Avatar for iamthwee
0
68
Member Avatar for marlon ng

I'm a beginner so pls bear with me. Try to make your explanations as simple as possible. The program i'm going to make will be like this: the user enters the customer name, the items ordered by the customer, the quantity of those items, and their prices. Here are my …

Software Development visual-basic
Member Avatar for WaltP
0
103
Member Avatar for pavani2006

1.WHAT IS THEDIFFERNCE BETWEEN LOCAL INNER CLASS AND NON LOCAL INNER CLASS? [B]2.Is there any tool in java that can create reports ? 3.?What is meant by a resource leak[/B] ?

Software Development java
Member Avatar for jwenting
0
79
Member Avatar for LieAfterLie

For some reason, newline characters seem to be using 2 bytes in text files instead of one. Is this normal? When I open a text file and look at the size, I get one more for every character I add, except for newlines, which add 2 bytes.

Software Development c
Member Avatar for John A
0
119
Member Avatar for mrjoli021

I have a two dimensional array that I need to make into a global variable to be able to access it from other functions. I can't quite figure out what the correct syntax is. [code] [COLOR=#008000] [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] "stdafx.h"[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <fstream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <string>[/COLOR] [COLOR=#0000ff] using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff] void[/COLOR][COLOR=#000000] …

Software Development c++
Member Avatar for Aia
0
124
Member Avatar for addicted

:rolleyes: I need some one to define prime numbers for me A full definition, I am trying to write a program to determine wether a number is prime, print all prime numbers in a specific range ... e.t.c so i need a full definition of prime numbers, i know prime …

Software Development c
Member Avatar for Lardmeister
0
87
Member Avatar for peterhis

hi everyone, i am newbie for python.. what i want to do is to click on the button and the python script will add up for what i ordered/choose from the webste... th can some one give me idea?

Software Development python
Member Avatar for 8374
0
287
Member Avatar for mrjoli021

in c++ how do I get the size of a string array. sterlen(arrayname) does not work or size(arrayname) either. I am getting sterlen or size as idenitfier not found at compile time.

Software Development c++
Member Avatar for WaltP
0
224
Member Avatar for Phily

I would like to write a programme that can demonstrate how gravity work by showing bouncing balls on the screen- the idea is that the user can set the strength of the gravity, and then see how the balls react and bounce differently depending on how strong gravity is. I …

Software Development pascal
Member Avatar for Phily
0
107
Member Avatar for emr

hi i am a new member of daniweb and i have problem i wrote a program in c that finds the numbers which are like that abc...=pow(a,3)+pow(b,3)+pow(c,3)... there are 5 number like that these are 1,153,370,371,407 but my program doesnt show 371 please look this [code=c] #include<stdio.h> #include<math.h> int main …

Software Development c
Member Avatar for Aia
0
194
Member Avatar for tasomaniac

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=22498"]this[/URL] thread >>[/I] I am a student in Bogazici University/Turkey. We have a project and I want to change the cursor position but there is a problem. Our teachers are using Microsoft Visual C++ 2005 Express Edition. In this compiler there is no windows.h header. What can …

Software Development c++
Member Avatar for TkTkorrovi
0
714
Member Avatar for Aia

If you would have to write your own implementation of the function [COLOR=Blue]getchar()[/COLOR] in C; how would you do it?.

Software Development c++
Member Avatar for vijayan121
0
490
Member Avatar for alba07

I have the following class and I am now supposed to add a parameter T, so that the value of Variable <T> is of type T rather than object. I am now lost with this and need some help. Not getting the generic classes. public class Variable { private Object …

Software Development java
Member Avatar for alba07
0
127
Member Avatar for jan1024188

I have compiled a project using Visual Studio in Vista ultimate. On my computer the application works fine, but on the computer where XP is installed I get the error like "Progam configuration is wrong". Do I have to compile my WIN API project in XP to be runned on …

Software Development api c++ visual-studio
Member Avatar for vijayan121
0
302
Member Avatar for LieAfterLie

I'm making a program that compresses text files using the LZW compression algorithm and creates a seperate compressed file. I made a file type and extension and icon for this file type (.nct), and set up 2 actions for it - one that calls the program and passes the .nct …

Software Development algorithm c file-system
Member Avatar for vijayan121
0
122
Member Avatar for bondo

I'm working on a program where I'm reading a file and I have to count the number of entries in the file. Each entry takes up a different number of lines, but each entry is also separated by a '#'. I'm wanting to read through the file and count the …

Software Development file-system java
Member Avatar for iamthwee
0
115
Member Avatar for pavani2006

i want to find the second smallest number ib array but it is displaying second highest number int max=0,second=0; if(a[0]>a[1]) { max=a[0]; second=a[1]; } else { max=a[1]; second=a[0]; } for( i=2;i<n;i++) { if(a[i]>=max) { second=max; max=a[i]; } else if(a[i]>second) second=a[i]; } System.out.println("the second smallest nubmer is"+second);

Software Development java
Member Avatar for ajay_tabbu
0
164
Member Avatar for nytrokiss

Does anyone know where this comes from or comes in! I haven't seen it and now i have seen it in my code ( i know what it means but can anyone provide somemore info....)

Software Development python
Member Avatar for nytrokiss
0
106
Member Avatar for Manzar

Write a Fibonacci function then takes an input from the user in main program and pass to function which prints Fibonacci series up to this number. Hints: Enter the value up to which you want to print the series : 5 0 1 1 2 3 5

Software Development c
Member Avatar for Aia
0
67
Member Avatar for muadh jamal

:confused: please some1 can help me in writing a random number generator funtion......generates number from 1-10000...explain it..plz

Software Development c
Member Avatar for WaltP
0
3K
Member Avatar for RisTar

Well im trying to find a string in a textfile but i have some problems : When im trying to create a string called temp in the Compare function using the length of the string that was typed in to main to compiler gives me an error , and even …

Software Development c open-source
Member Avatar for WaltP
0
115
Member Avatar for Senel

I have started to solve them but no use, im a beginner :o with easy solution please,i will be greatful.. I hope that im didn't ask to much. Q1)Write a program that read two integer and determined and prints if the first is a multiple of the second? {Hint: Use …

Software Development c
Member Avatar for Aia
0
1K
Member Avatar for david4u

Hi Everyone, I am new to C/C++, I would like to perform the following task: 1. Build or model a wireless nodes for about 10 computers 2. Assign two feature to each of the node e.g. FTP and TELNET, or SMTP and POP3. So that each node can be given …

Software Development c++
Member Avatar for John A
0
254
Member Avatar for earlyriser

Hello!. First, I don't want you do my homework. The hw consists in take a char chaine and convert it to a number usign macros. For example the chaine 56 in the number 56. We have a program provided by our instructor which in theory does the same without macros. …

Software Development assembly
Member Avatar for Day Brown
0
158
Member Avatar for Daniel E

I'm trying to switch from Turbo C++ to MSVC++, I've gotten most of the differences in coding and libraries worked out, though I keep getting this problem and I have tried to find a solution but I haven't been able to find one after 30 minutes of searching for it. …

Software Development c++
Member Avatar for vijayan121
0
119
Member Avatar for maverick786

I would like to write a program that creates a relational database that handles queries using only C++. What would be the most appropriate method? Using arrays, linked lists or something else? Please advise.

Software Development c c# c++
Member Avatar for maverick786
0
214
Member Avatar for suneetha

hai friends my academic project is developing an editor for java. please tell me the code to compile and execute the java programme. waiting for ur reply please thanq

Software Development ide java
Member Avatar for Phaelax
0
122
Member Avatar for nottoshabi

I want to learn some UI developemnt for windows using visaul basic can you guys direct me to some books, and materials?

Software Development vb.net
Member Avatar for nottoshabi
0
88
Member Avatar for lotsofsloths

OK, i am using Microsoft Visual C++ 2005 Express Edition, and am using the Window Applications part of it (compared to using Command Prompt to display programs) Now, as for the program, i am making a password machine that tells users to enter a username and password, my program will …

Software Development c c# c++
Member Avatar for lotsofsloths
0
132
Member Avatar for hamooihamoo

hi, every one. I want to develope an application similar to outlook express that is an e-mail client. i want to do it using Java but i don't really know how and what to use. I have been trying to find information on the internet and i came accross secure …

Software Development java
Member Avatar for hamooihamoo
0
77
Member Avatar for RisTar

Im trying to read some integers values from a text file. The problem is that first lines of the text files contains some text and only then theres the values that i want to read into variables , and i dont know how to get down three lines and then …

Software Development c open-source
Member Avatar for RisTar
0
142
Member Avatar for nottoshabi

Guys I have to deceipher this code but I can't make heads or tails out of it cause it closes the comand window before i can see anything I tried adding a system pause at the end but that just gave me an error. [code=syntax] // Program 6.9: Validate a …

Software Development c++
Member Avatar for ~s.o.s~
0
107
Member Avatar for Navrex

Hey .........Would any 1 like to tel me that if the mege sort works at runtime or not.? im giving my code below....Tell me y it is not running in VC++ correctly.....the code given below doesnt have any error in code but when any1 runs it it gives error.....CHECK IT …

Software Development c++ perl
Member Avatar for jwenting
0
111
Member Avatar for 1g0r

Hi guys, Im currently doing my Final Year Project on electronic engineering course..And my project relates to RFID and sadly to say it is due by next week:sad: Im using vb6 and I DESPERATELY need help on one part of my code....Can anybody help??? But first of all, I want …

Software Development engineering video visual-basic
Member Avatar for sbalwani
0
141
Member Avatar for Tales

I need to find a way to convert char[] to TCHAR[] I did my best to find it, but all I could find was char[] to wchar_t[] using... int swprintf( wchar_t *buffer, const wchar_t *format [, argument] ... ); Help please!

Software Development c
Member Avatar for Ancient Dragon
0
113
Member Avatar for Lance Wassing

Hello Everyone, I have started creating an open source database architecture, with a waa, and much more. There is many features that can blow SQL, and access out of the water, including but not limited to: 1) true multi-dimensionalism, 2) array fields 3)File embedding, of 30 or more formats.. 4) …

Software Development c++ encryption open-source perl python
Member Avatar for Infarction
0
204
Member Avatar for Sacky

Well i'm trying to implement pawn into my app (pawn the embedded scripting language) and while including the amxprocess.c i get these errors: [QUOTE]Error 1 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 524 Error 2 error C2708: 'push' : actual parameters length …

Software Development c++
Member Avatar for Sacky
0
107
Member Avatar for nathanpacker

I was trying to write some stuff in batch files, and was told it would be easier to do what I was trying to do with vb. So I looked into that, and I can understand it enough, but in my search for tutorials to get more into it, they …

Software Development vbscript visual-basic
Member Avatar for nathanpacker
0
67
Member Avatar for sillyboy

Hi all, I am after a instruction set with limited or no floating-point instructions. Why I want this is to get a compiler of this certain architecture and compile code (one with floating-point and the other without). With the resulting assembly I wanted to compare the two and do some …

Software Development assembly
Member Avatar for Purple Avenger
0
147
Member Avatar for MarzenaM

:sad: Hi! I am a new member on DaniWeb site. And I need your help!!! I just started C++. I have project to do. The user must insert 4 integers. My main problem is that I may not input th digits seperately, but should input the number as a whole. …

Software Development c++
Member Avatar for MarzenaM
0
107
Member Avatar for slayr-cxf50

Hi I am creating a loop, and for one of the ?possibilities (or answer things or whatever they're called when you can execute commands from the results) i have a result of None. This is the code. ready = False while not ready: input = raw_input("Are you ready?") if input …

Software Development python
Member Avatar for Lardmeister
0
94
Member Avatar for aparnesh

Does anybody know how to extract the tag information (Title, Artist, album etc ) from a .mp3 file ? And how to edit the information from VB ? Regards

Software Development visual-basic
Member Avatar for aparnesh
0
58
Member Avatar for CRD

Is there any place that I can find what functions are available in what headder files? Dick

Software Development c
Member Avatar for CRD
0
72
Member Avatar for satish.paluvai

:sad: for comipiling the c/c++ program my editor is taking so much time for even it is 2 or 3 lines of code also .because of this i am unable to do more progrmas in a day. please help me to do it fast.i am useing tc editor

Software Development c++
Member Avatar for ~s.o.s~
0
109
Member Avatar for SHWOO

I am writing a class character for an assignment. The class relates to a role playing game. I am getting an error which I don't understand. This error occurs in the default constructor of the implementation file. The dynamic help says that I created an object without creating a pointer …

Software Development asp.net c c# c++
Member Avatar for vijayan121
0
147
Member Avatar for jan1024188

hello, I am using Visual Studio 2005. When I write come C++ code (using iostream header) I get this error when compiling c:\users\jan\documents\visual studio 2005\projects\lesso\lesso\main.cpp(1) : fatal error C1083: Cannot open include file: 'ioestream': No such file or directory What should I do?

Software Development c++ visual-studio
Member Avatar for jan1024188
0
120
Member Avatar for Lardmeister

Does anyone know of anyplace/anybody that teaches C# at the highschool or college level to get students used to a programming language?

Software Development c c# c++
Member Avatar for pygmalion
0
101
Member Avatar for adnichols

I have been having difficulty trying to figure out how to read in data backwards. I get the idea, but have no idea how to properly code it since it is string data from a txt file. I was given the basic file to start with, but need to add …

Software Development c++ file-system ios
Member Avatar for adnichols
0
134

The End.