43,549 Solved Topics
Remove Filter ![]() | |
Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused. | |
Okay so I am working on a massive program involving multiple forms, delegate calls, ext. Anyway I was wondering is there a way to make global values that can be accessed my any form or class? In otherwords, removing the need to pass in the variables. Sorry this is rush … Software Development | |
Hi there, I was wandering if anyone can give me a brief explanation on how to connect my C application to the Internet. What i would like to do in the end is to access a web page trough the application and have means to read the html code behind … | |
When i rebuild the project in Visual studio 2005 i get the error "Error 1 The type or namespace name 'Font' could not be found (are you missing a using directive or an assembly reference?) C:\Users\HP_ADMINISTRATOR\Documents\Visual Studio 2005\Projects\Perfume Formula Typing Software\Perfume Formula Typing Software\Form1.Designer.cs 9 17 Perfume Formula Typing Software" … Software Development assembly visual-studio | |
[code] class x(object): def __init__(self): self.x=1 class y(x): def __init__(self): super(y, self).__init__() [/code] what is it doing "super" function in here? Software Development python | |
Hi there I'm studying Visual Basic (using Visual Studio 2008) as part of an all-round IT foundation degree...I must confess that programming is becoming my weak spot! Unlike the C++ I was taught last year, I'm not finding VB too easy...probably becasue I've never programmed this way before and I've … Software Development microsoft-access vb.net visual-basic visual-studio | |
I have two questions relating to classes. I have run into a problem in using classes in multi-file programs. Here are three example files which illustrate the problem I am having and the errors I am getting. [B]file1.cpp[/B] [CODE=c++] //file1.cpp #include<iostream> #include"file3.h" using std::cout; using std::cin; namespace baz { extern … Software Development c++ | |
Dear Freinds Is it possible in vb.net that when my mouse focus in button it size increase the button or change like when we click on google images it comes in front Software Development vb.net | |
hi all i am using the visual basic portable, and the about form, splash screen, and the other additional forms refuse to appear. i would like help, if it is to use a different vb. thanx all Software Development visual-basic | |
i am unable to understand WHAT MAKES THE BYTECODE IN JAVA, MACHINE INDEPENDENT. I mean how does the bytecode built after compilation becomes machine independent, or what are the properties that make the bytecode machine independent? EXAMPLE:- If i compiled a program on a x86-64 machine and after sometime i … Software Development java | |
Hi, I want to get all character starting zero to end from tetbox to an array. How can I do that? Thanx Software Development | |
Hello everybody! I wrote the following classes: OilStation: [CODE] class OilStation : public Date{ protected: int code; char *Address; float Amount[K]; public: ... }; [/CODE] and Price: [CODE] class Price : public OilStation { public: Price(){} void changeAmount(); ... }; [/CODE] In changeAmount function i try to change the elements … Software Development c++ | |
Hello Daniweb. I've been working on a small POS termal printer, and now i've run into a problem. The problem is somewere deep down in the mystical depths of ESC commands. However, to the point... I've printed a barcode (EAN13), The barcode comes out but there is a small problem … | |
VB6.0:Calculator Hi im new here.. anyone can help me with my program... please.. i have a project calculator using VB6 with the combination of operation like this 100 + 50 - 20 * 2 = 260 please help me.. thank you.. Software Development visual-basic | |
hey guys , its my first but hopefully not last post , i have this wordcounter(actually recepie reader) project it looks for the word "csoki" given in input and then if it finds it it asks perfcentage of "csoki"(short for chocholate in my lang) and stores the value in array … Software Development c | |
Hi I am new to assembler programming and am trying to get a simple program up and running on a PIC12F675 using a PICKIT2 I have wired up the circuit using pins 1-5 on the PICKIT2 programmer according to this diagram: PIN1 MCLR to PIC PIN4 PIN2 VDD to PIC … | |
Hello I am developing my first game in Allegro. Till now i found it easy to use. But now i read that for running a game allegro.dll is required on computer. Tell me if it is correct. Also many people say that SFML is better than Allegro, since the latter … | |
im reading a text file that contains data in a fashion similar to this $1.2.3.4.5.6$ %7.8.9.10.11.12% *a.b.c.d.e* what i want to do is read only data enclosed by '$' and skip to the next line if the data contained are not. written below is my code. im kind of stuck … Software Development c | |
I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() … | |
Hello.... I am running a C++ program that takes an N array and reads a from a file. One requirement of this project is that it returns an elapsed time of each function so the function efficiency can be calculated based upon an input. I am attempting to implement the … Software Development c++ | |
can anyone suggest a simple method to define an enum in python. as some examples floating on net, i used class Animal: DOG=1 CAT=2 print Animal.DOG but it doesn't seem to be working... Software Development python | |
I am making a simple python game. I would like to be able to restart the game based on user input. You have a certain amount of guesses to guess which way to coin falls. If you lose you would get the option of restarting, instead of just breaking the … Software Development python | |
Hi, i am trying to connect to MySQL database [ICODE]mysql[/ICODE] using JAVA .. using code given below, [CODE]import java.sql.*; public class dbExample{ public static void main(String[] args) { System.out.println("Listing all table name in Database!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; … Software Development java java-netbeans mysql | |
I have a unit conversion program that needs to take in a float and 2 strings from standard input. My previous solution was: [CODE] float orig_quant; char *orig_name = (char*) malloc(MAX_CHARS); char *new_name = (char*) malloc(MAX_CHARS); fscanf(stdin, "%f %s %s", &orig_quant, orig_name, new_name); [/CODE] However, this only works if the … Software Development c | |
Is it possible to have a feature where the application checkes for updates every 7 days or each launch? If so, please could someone point me in the correct direct to adding this to one of my applications. Thanks Software Development vb.net | |
My code has all of a sudden gone strange. Example 1: When I click my save button nothing happens, when I double click the button in the designer, it creates a new sub called "save_click_1" Example 2: My linklabel is no longer working. Double-clicking it in the designer ccreates a … Software Development vb.net | |
i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how … Software Development java java-swing | |
[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks. Software Development python | |
i am just trying basic C++ GUI and i ran this code from a tutorial site. [CODE] #include <windows.h> int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow) { MessageBox(NULL, "Hello World", "Testing", 0); return 0; } [/CODE] when i run it, it executes and makes a animation of … Software Development c++ gui visual-basic windows-vista | |
Hi All, I have created a form called new users, I have added my data source, draged over the objects I want from the dataset onto the form and all is well appart from the fact that I cant delete records. To add them I simply click the add button, … | |
Greetings everyone, This is my first post, so I hope I don't break any rules by mistake... I am an experienced programmer trying to learn VB.NET. The problem I'm having is that it seems like strings have to be initialized differently than other types and I don't know what I'm … Software Development vb.net | |
I'm assuming there's no easier way to do this. Is thread locking really automatic? Am I misreading the documentation? [CODE]from threading import Thread make_thread = lambda fn, *args: Thread(None, fn, None, args).start() def my_fn(*args): for arg in args: print (arg) make_thread(my_fn, "toaster", "ovens") [/CODE] Software Development python | |
Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It … Software Development java | |
[CODE]typedef struct{ char *name; bool exists_in_sys; convert_table *data; } unit; float orig_quant; unit *orig_unit = (unit*) malloc(sizeof(unit)); unit *new_unit = (unit*) malloc(sizeof(unit)); printf("Enter original quantity, original units, new units\n"); fscanf(stdin, "%f %s %s", &orig_quant, orig_unit->name, new_unit->name); printf("Original unit: %s\n", orig_unit->name); printf("New unit: %s\n",2) new_unit->name);[/CODE] OK, so I would like to … Software Development c | |
Iam trying to Calculate The values From 2 Comoboboxes.....But sometimes its calculating and sometimes its Showing BOOLEAN conversion problem... Plz SEE the code . [CODE] If C1.Text = "Agra Fort" Andalso C3.Text = "Delhi" Then l8.Text = 800 ElseIf C1.Text = "agra fort" Andalso C3.Text = "bangalore" Then l8.Text = … Software Development vb.net | |
i have a checked list box as one of my controls in my code what happens is when i click on the checked list box the item clicked in the checked list box is supposed to be added to a text box, and my code is now doing that however … Software Development vb.net | |
I am working on a C# Windows Form project and I need to access the controls on a form from a separate class within the project. can anyone help me with this? Software Development | |
Hi I want to display tables data(having only one column) into a combobox as items. pls provide me some solution for this. Software Development display | |
i'm newbie from programming, what i want to ask is how to get the name from dayofweek?? [code] For cacah = 0 To 6 Dim nodeNamaHari As DayOfWeek [nodeNamaHari = cacah] Dim nodeJelasHari As TreeNode = nodeBulan.Nodes.Add(nodeNamaHari) Next [/code] that's what i try but the nodes appear just the value … Software Development vb.net | |
[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public … Software Development java | |
[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ? Software Development java | |
Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store … Software Development c++ | |
I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at … Software Development java | |
I have a combobox called combobox1 and I dont know how to save the selection. For example if i selected Sub Compounds, how would i save this so when i loaded it again from the hd Sub Compounds would be selected. Software Development | |
How do you set the FileSystemWatcher.Filter to check only two files. Here's my code that doesn't even work. [CODE=vb]watcher.Filter = "*.txt|*.ini"[/CODE] Thanks Alot Software Development vb.net | |
I'm trying to write a script that downloads and image off the net with wget. The script should save the file named as the date it was downloaded preferably with a suffix. Any ideas on how to accomplish this using wget? Software Development shell-scripting | |
Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it … Software Development java | |
Hi All, I have a combo box in a form, I want to fill it with names I have stored in a database. I know I have to use the fill command, but I am not sure what code I need to use. I imagine I need to place this … Software Development vb.net | |
Hello All, I was wondering how to click a button on the internet or another program via a program in visual basic 2010. An example would be: Have a program being able to click the "Search" button in google or the "I'm feeling lucky" button??? Does anyone know how to … Software Development vb.net visual-basic ![]() | |
I cannot copy 2d array. There are no errors in my error list. What is wrong with my code? The problem might be located in create(). Thanks in advance. Here is my code. [CODE]int **map void randomize(int numberToSelect,int range, int *list){ int* remainingNumbers = new int[range]; int* chosenNumbers = new … Software Development c++ |
The End.