199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jeeter19

I have 2 variables that should be global within its own file. I am attempting to access their set information from a function within that file but I receive nothing but an error. When I hardcode in the information into the function instead of retrieving from the variables, it works …

Member Avatar for diafol
0
104
Member Avatar for rookie-C

I am busy to make a program that starts with a menu, where you can choose different options. One of these options to execute a program. for example : download software in an flash-prom with loader.exe loader idpartno.sr(where idpartno.sr is the code to be downloaded. Thanks for helping.

Member Avatar for jephthah
0
7K
Member Avatar for java=hard

I'm trying to wrap the following so it shows up easily on the prompt screen. How can I wrap it up? [CODE] System.out.println("Anwser the following trivia questions with a true/false input. Since I am" "a horrible programmer, you will have to enter 1 for True and 2 for False. If …

Member Avatar for BestJewSinceJC
0
109
Member Avatar for jtodd

Hey guys! I have a program I am writing that I have gotten stuck on. It compiles fine but when I run it I get several error messages. Illegal format Conversion Exception is one of the error messages. I am stuck and I don't see where the error is. Any …

Member Avatar for jtodd
0
142
Member Avatar for aay

I know this has been asked before, but none of the threads I found helped me much. I am a beginner at C++ programming and need help figuring out why this doesn't work. [B]Question[/B]: e^x can be approximated by sum 1 + x + x^2/2! + x^3/3 + ... + …

Member Avatar for WaltP
0
3K
Member Avatar for sciwizeh

trying to use the code from an online book to learn OpenGL. i'm using Dev-C++, because i can't find a good way to get GLUT into VS 2008 PRO without muckin about in C:\windows\system32 which i try to stay away from. (any suggestions appreciated) so this is the code: [CODE=C++] …

Member Avatar for jephthah
0
676
Member Avatar for oggiemc

Hello people, Im getting an "Exception occured ---java.lang.NullPointerException" error when i try running the code below: [code=Java]public void Register(String Username, String Password, String Surname, String Firstname, String Email, String Phone) { String a = Username; String b = Password; String c = Surname; String d = Firstname; String k = …

Member Avatar for oggiemc
0
238
Member Avatar for andrew80

Hi to all, THis is my first post here. I have a project to create a scientific calculator. i wrote a code and i need some help on how to proceed. The code i wrote is for +, - , * , / now i want to continue with x^y, …

Member Avatar for CppBuilder2006
0
885
Member Avatar for CreativeCoding

I am creating a program that password protects software. The way I plan to protect it is to check if the program is running, and if it is, open up a window asking for a password. If it is wrong, close the protected software. I have this piece of code …

Member Avatar for CreativeCoding
0
232
Member Avatar for lewashby

[COLOR="red"]Dog[] dogs = new Dog[7]; dogs[5] = new Dog(); dogs[0] = new Dog();[/COLOR] According to the book I'M reading the second two lines here create instances but the first only creates an array. I'M still learning how to program but it looks to me like the fist line is also …

Member Avatar for apegram
0
141
Member Avatar for leeZA1

I have a problem, if someone can help great!! Every time the form is submitted to delete the stabletitle it says successful even when the title entered is not in the database, if its not in the database it should say unsucessful, can someone see what is wrong with my …

Member Avatar for diafol
0
87
Member Avatar for xofth

i want to delete a element from the array i use this logic but it is not working [CODE]#include<iostream.h> #include<conio.h> main() { int arr[5]; //10 element int array int key; // key to edit int length=5; //length of array clrscr(); for(int i=0; i<length ; i++) { cin>>arr[i]; } cout<<"Enter item …

Member Avatar for Narue
0
141
Member Avatar for Linlin

Hello! I have more or less zero knowledge about coding in PHP. The most I've done is includes, to help me maintaining my sites more efficiently. I hope I will not offend anyone with this question. Anyhow, towards my issue. I have one table containing several fields, with information such …

Member Avatar for almostbob
0
229
Member Avatar for jeffrey o

i'm trying to read a file into an array struct using a function, i get the errors: 1.error LNK2019: unresolved external symbol "void __cdecl loadarray(struct ElementType * const,int)" (?loadarray@@YAXQAUElementType@@H@Z) referenced in function _main 2.fatal error LNK1120: 1 unresolved externals [code] #include <iostream> #include <string> #include <fstream> using namespace std; ifstream …

Member Avatar for WaltP
0
113
Member Avatar for paradiseis

Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be produced. Each product will be produced in different production line. Ready products will be placed in a buffer area located at the end of each production line. Packaging workers will pack the products …

Member Avatar for jephthah
0
566
Member Avatar for johndoe444

From the java generics tutorial: "[CODE]List<String>[] lsa = new List<String>[10]; // not really allowed String s = lsa[1].get(0); // run-time error - ClassCastException[/CODE] If arrays of parameterized type were allowed, the example above would compile without any unchecked warnings, and yet fail at run-time." I have problem understanding why would …

Member Avatar for johndoe444
0
104
Member Avatar for vino4all

Hi, I'm a newbie............ Sorry, if I violate any norms. Is it possible to copy any audio file or image file using C language? I think it is possible. If anyone knows it please guide me. If you know the code, that 'll be helpful.

Member Avatar for jephthah
0
246
Member Avatar for anjal_pawar
Member Avatar for sdgz747

Hello, I am having problems with some text string errors in my code. Any help would be appreciated. Here is a snippet of my code. [CODE]clear all value = input(['Please enter a positive real numerical ' ... 'measurement of volume:']); initial = input(['Please select a starting measurement unit' ... 'from …

Member Avatar for jonsca
0
136
Member Avatar for CurtisBridges

[COLOR=#008000]//I need to change this program from using inheritance to using composition.[/COLOR] [COLOR=#008000]//Could someone please show me how? I have two other programs that I can surely do myself. [/COLOR] [COLOR=#008000]//I'm really in search of a sample.[/COLOR] [COLOR=#008000]// Fig. 9.17: point3.h[/COLOR] [COLOR=#008000]// Point3 class definition represents an x-y coordinate pair.[/COLOR] …

Member Avatar for wayne_b
0
155
Member Avatar for boiishuvo

Hi, my goal is to implement a program (in OO style) for cruise booking system that can accept and maintain customers’ reservation. Whenever a customer visits, that program should show him/her the current availablility of cabins. A customer can choose any available cabin with specified level (0 – 2, down …

Member Avatar for boiishuvo
0
138
Member Avatar for PhrackSipsin

Hello All, I'm pretty new to python but have been programming, for a few years hobby wise and decided to try python after I found how concise the syntax was and with a computer science bent. So I'm writing a little code for a work related thing, simulating some basic …

Member Avatar for woooee
0
172
Member Avatar for Virux

Can Java read it's own source code? Possibly by using reflection.. or something. I would like to dynamically display the code to each method inside of my interface. Any idea how that could be acheived? Thank you.

Member Avatar for Virux
0
156
Member Avatar for wtzolt

Hi, I've made a small program which has 2 buttons and each does certain thing. Here's a simplified version of the code. Thing is it works fine except that the button freezes and stays in a clicked position and whole GUI freezes until the command is completed. As far as …

Member Avatar for jcao219
0
142
Member Avatar for prakakat

Hi everyone, I am a newbie in C programming. I need to make an implementation of gets() function from stdio.h, but I am not sure where to start. Please advice, any help is welcome. Thank you, Brian.

Member Avatar for Ancient Dragon
0
87
Member Avatar for akaz00

it is easy to think that worst input for quicksort but not for mergesort. :-( plz, can someone tell me what is the worst-input about n-size mergesort? for general n...

Member Avatar for Nick Evan
0
119
Member Avatar for Serrafine

Hi, I'm trying to find a way for the user to draw an image on the screen, and then return a formal version of the image. This is a tool to enable practise writing symbols from an ancient language. What I mean by a formal version is the properly drawn …

Member Avatar for Serrafine
0
219
Member Avatar for laveena

Ihv writtten a prog of file searching and the result is to be displayed in table Im geting exception of stringindexoutofbound: String index out of range: -1 at java.lang.string.substring(unknown source) if i changed the path E:/ to e:/programs (program is some folder) then prog run correctly but i want to …

Member Avatar for laveena
0
166
Member Avatar for ultimatebuster

Is it possible to limit a certain variable to only certain type? For example, i have a class named AccurateStr. How can I make sure that the variable "as" is an instance of AccurateStr? Similarly, how can I make sure a variable is a positive int, str etc without the …

Member Avatar for ultimatebuster
0
567
Member Avatar for Mobix

Hello, after one delphi session every one of my single floats has been saving into a wordpad as this weird 2.73500000000000E+0003 2.00000000000000E+0002 notation, same goes with printing is there any way to reverse this ?

Member Avatar for FlamingClaw
0
187
Member Avatar for ben1

Hello, I have tried to solve this problem but I cannot, its been over a week. I need help in designing the solution for this problem. I need to make a system of food processing, food is inputted to machines, where it is processed and packed. If you can contact …

Member Avatar for ben1
0
145
Member Avatar for aomran

[CODE] import java.util.*; import java.util.Scanner; public class InputconsoleArray2 { public static void main(String args[]) throws java.io.IOException { int[] a=new int[100]; // create an array of type interger size // Objects of type Scanner are useful for breaking down formatted input into tokens and // translating individual tokens according to their …

Member Avatar for javaAddict
0
242
Member Avatar for niths

i am not getting the value in $sql2. so can anyone please.... thank u [CODE]$sql2="select allocatedmemory from projects where projectname='$projectassign'"; mysql_error(); $data1=mysql_query($sql2); echo '$data1';[/CODE]

Member Avatar for cwarn23
0
92
Member Avatar for sniigg

Hi all, I am creating a checkbox dynamically on page load. [code] using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SimplifyNew"].ToString())) { SqlCommand cmd = new SqlCommand("usp_selectModifiedResults", conn); cmd.CommandType = CommandType.StoredProcedure; conn.Open(); SqlDataReader reader1 = cmd.ExecuteReader(); while( reader1.Read()) { System.Web.UI.HtmlControls.HtmlGenericControl DivCheck = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV"); DivCheck.Style.Add("float","left"); CheckBox cb = new CheckBox(); DivCheck.Controls.Add(cb); bradbandPanelTarget.Controls.Add(DivCheck); cb.ID …

Member Avatar for reach_yousuf
0
279
Member Avatar for ganesh5155

Produce THREE buttons using SWING package. Each of the three buttons will react according to their respective tooltips. - Button A: set to Enabled and show the tooltip "Click this button to enable the Button C.” After this button is clicked, it should disable itself and Button B. - Button …

Member Avatar for stultuske
0
257
Member Avatar for Lee21

Guyz I need help... How can I transfer the data from the Specified cell of the Datagridview to texbox.. For example I click on the specified Datagridview cell, I have a 3 columns Name,Username and Password. I want to transfer all of them in their designated textboxes. txtboxName, txtboxUsername and …

Member Avatar for Gospp
0
158
Member Avatar for dorotalp91

Write a program that will determine whether a deparment store customer has exceeded the credit limit on a charge account(5000$). The customer gives you his/her account number, he/she has a beginning of the month balance, the program should total all the purchases by the customer for the month, total any …

Member Avatar for stultuske
0
122
Member Avatar for paul9998

Hello , i am making an interchange program that switch the values of two variables . For example : Input: Output: nr1 = 2 nr1 = 3 nr2 = 3 nr2 = 2 This is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Programc …

Member Avatar for paul9998
0
89
Member Avatar for bill_

Hi, in this code i am trying to call the function "issueTicket" from class "ticket", in the the function "reserveCabin" in another class called "cruise". Also, i think it is the same problem, i am trying to call function "calTicket" from class "booking", in the function "issueTicket" from class "ticket". …

Member Avatar for tieuyeunu
0
13K
Member Avatar for keval_hack

Alright, I do little experience with programming with HTML/PHP The thing I need is an script that will log the visiting persons IP address AND his country of origin in any way; so the admin (me) can see it and confirm he/she has done whatever I want him to do. …

Member Avatar for keval_hack
0
157
Member Avatar for DarrelMan

I am trying to read a textfield. I am using the string=textfield.getText() notion, but all I get a is a blank string back. I am using netbeans and I am using the gui designer within it. I want to hit the "create grid" button and have it create a grid …

Member Avatar for moutanna
0
123
Member Avatar for karthz85

i need a sample program how to enter values in a array,display the results, and edit the values that entered. actually i need to make a program to create a database to store students marks and edit the values....... so any one can help with a sample program?

Member Avatar for karthz85
0
87
Member Avatar for khess

It isn't quite Perl version 6 but it's well on its way. Between now and Monday, [URL="http://www.activestate.com"]ActiveState[/URL] will release version 5.12 of its cross platform, easily installed ActivePerl. Version 5.12 offers more than simple bug fixes; it's a major release that some developers look toward with great anticipation. The major …

0
308
Member Avatar for amanv

Hi im writing a program using arrays but im not sure what to do. I think i have the first three methods done correctly but i cant figure out how to do the rest. Im also supposed to write an application file but im not sure how to with arrays. …

Member Avatar for amanv
0
131
Member Avatar for PDB1982

How would I, if it's even possible, create an array to read/store the input values from a input text file? Here is what I was thinking, but I want to pretend as if I don't know the amount of values in the file. Input File Has: 21.22, 13.23, 43.12, 123.54, …

Member Avatar for mrnutty
0
88
Member Avatar for prade

hi i have done a project with graphics(winbgim) on dev c++....suggest me a software for creating a front end for my project...should be easy to use.....thank u

Member Avatar for Ancient Dragon
0
87
Member Avatar for c++programmer
Member Avatar for myz068u

Hello I am newbie to C++ and I am testing my first loop using a switch statement. I want the loop to run nonstop until the user quits the program. [CODE] #include <iostream> using namespace std; int main() { char answ; cout << "Yes or No(y/n)" << endl; cin >> …

Member Avatar for mrnutty
0
104
Member Avatar for Ace1.0.1.

Note - I'm still learning c++... so there could be better ways of coding this. Try not to introduce new concepts - this will only aid in confusing me more, but please be more than welcomed to tell that i'm using something incorrectly. [CODE]// Classes - Using class to design …

Member Avatar for mrnutty
0
1K
Member Avatar for Sync.Void

Hello all, I normally lurk around and solve most of my issues by reading other threads. I have run into an issue and I am trying to figure out what I am missing. I am rather new at this so thanks for any advice. What I am attempting to due …

Member Avatar for Sync.Void
0
175

The End.