199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am new to Java and stuck at a problem. I have something like following- [CODE]package X public abstract class A { A(int a) { this.a=p; } protected int p; abstract int func(); } package Y public class B extends A{ B(int b) { super(b); } B() {} //p … | |
I am familiar with programming culture. I want to start learning 3d games development. I want to know which language is most suitable for sustainable games development- directX or openGl or c++ or some third language??? Please guide me! Thanks & Regards *naina* | |
I'm trying to read data from a file using dynamic arrays, everything is great now except for one thing: if I have a file with lets say 20 students' IDs and their scores before starting the reading proccess, I did this: string *studentID; double *testScore; cout<<"Enter number of student: "; … | |
Hey, Yet again i was just mucking around on DEV-C++ and made this code.. [code=c++]#include <conio.h> #include <iostream> using namespace std; unsigned long Double(unsigned long doubleMe) { return (2 * doubleMe); } int main() { unsigned long numberToDouble; unsigned long doubledNumber; cout << "Enter a number you would like to … | |
Hi i have a code that runs really well.. unfortunately im really new and to get to here was also quite time consuming.. however i am on a short time line now and need help fast!. can someone please tell me how i can get my page to list results … | |
I want to copy the selected items from listbox1 to listbox2. I know how to copy all the items but not selected. [B]Private Sub Command3_Click() For i = 1 To List1.ListCount List2.AddItem i Next End Sub[/B] Above Code will copy all the items,But I want to copy selected items. | |
hi, I am new to j2me. I want to add more than one image into a form and display those images as thumbnails, so that when i click any one of the thumbnail i should get the full view of the image. Can anybody help me regarding this issue? | |
How does one declare a string as a data member in a class? I tried it this way, but my compiler says that's not it [code] class cdrom { public: cdrom(); void loadinfo(); float returncost(); void displayinfo(); void changedata (); private: float cost; string name; string cdtype; }; [/code] | |
Hi all, Please tell me where is the cookie file stored in my computer when i run the below codes.. I checked it in the C:\ [code=php]<?php setcookie("test","john_joseph",time()+ 3600); ?> <html> <body> <form name="cookie" method="post" action="<?php echo $_server['php_self'];?>"> Enter ur name:<input type="text" name="name"> <input type="submit" name="submit" value="SUBMIT"> </form> <?php if … | |
can we go for ms excel for creating charts in php(with mysql) instead of using jpgraph? please tell me which is the easiest one to use 9between ms excel and jpgraph)? | |
Hi I am trying to write a script that converts centigrade to fahrenheit and vice versa I need to use a sub-function to perform the calculations. Can anyone help me get started on this I am kinda lost and will like help learning this thank you | |
Hi All, In my network setup all our UNIX/Linux Servers are standalone.So when a user joins i have to create a user account in all the servers. I will be using the same user acc to create the user account across servers So if you can guys provide me a … | |
anyone know code so that i have to insert a username into the program before i can continue doing anything else? | |
I am writing a doubly linked list, but i am having problems inserting. Here is my code for the node, and main. The issue is in the main when i call insert, it gives me null. How can i get the node to point to head, and tail(insert it). Help … | |
Hello all, I have an assignment to create a base class for a vector. Now after reading through the instructions I am still unclear the instructions. I am NOT asking for you to do my homework! I just need some clarification. PLEASE DO NOT POST ANY CODE! Here is a … | |
I am getting this error and i don't know what it means. this is my code, i do have header files but i didn't include them. [code]int main() { [LIST=1] [*] cout<<"Welcome to guitar hero"<<endl; [*] cout<<"Try and press the correct letters on the line"<<endl; [*] cout<<"You will use the … | |
I have written the following code that I will post below. Each time I try to compile it I receive the following error. [CODE]1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall OrderSet::OrderSet(void)" (??0OrderSet@@QAE@XZ) 1>C:\Users\Bill\Desktop\School1\c++\c++ spring cs2\program2\Debug\program2.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Note I am using Visual Studios … | |
I am working on my senior project and I am using C#.net and Microsoft Access to create a program that lets the user store information into a database. I have many tables but the primary table that mostly everything connects to is the customers table. Well I know how to … | |
may i know how to add sqlexpress database to my visual studio project while iam deploying... (i tried by simply adding database into my project through solution explore before deploy , but while instaling deployed project into client machine ,on that time i cant access the data's from database.) can … | |
I am working on this program and I am getting compilig error here is the code:- [CODE]#ifndef ACCOUNT_H #define ACCOUNT_H class Account { public: Account(double = 0.0); void credit( double); bool debit (double); void setBalance(double); double getBalance(); private: double balance; }; #endif[/CODE] [CODE]# include <iostream> using std::cout; using namespace std; … | |
I had got an assignment for sorting some data.. "Make a c++ program which takes data from a TEXT FILE, then sort it".. i made this program.. [code=cplusplus] #include <iostream.h> #include <conio.h> int main () { clrscr(); int sort[8]; cout<<"Enter DATA to be Sorted\n"; for(int get=0;get<=7;get++) cin>>sort[get]; //cin saves the … | |
Hi to all, I am beginner in .net.Now i have developed one simple project in webapplication using c#.how to create login page and validate the username and pasword.And only authorized person is to access another aspx form.and how to retrieve the username and password. At runtime how to type username … | |
1) Write a program that asks the user to input an integer and the output the individual digits of the number. 2) Write a program that asks the user to input an integer and then output the number with the digits reversed. i don't really know how to this using … | |
I need to know how to create a triangle, and how to fill it with color. I am new to programming and would appreciate the help. I am not running the applet in a web browser, just executing it. Thanks. | |
Hey, Was bored so *TRIED* to make this simple countdown program but i'm just not sure what to put in the for loop? [CODE=C++]#include <iostream> #include <windows.h> using namespace std; int main() { int countDown; cout << "Enter a number to count down from : "; cin >> countDown; for(int … | |
[code] import javax.swing.JFrame; import java.awt.*; import java.awt.event.*; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import javax.swing.UIManager; public class GUINew extends JDialog implements ActionListener { public static void main (String [] args) { protected JButton ok; protected JButton cancel; protected ButtonGroup type; protected JTextField … | |
[code=cplusplus] struct wheel_node { int contents; wheel_node* next; }; typedef wheel_node* wheel_ptr; class wheel { private: wheel_ptr arrow; public: wheel (); void print (); void spin (int distance); void move_to (int number); }; [/code] The constructor wheel creates a circular linked list as follows: arrow -> 5 -> 40 -> … | |
I am currently attempting to program my first game in C++ using Microsoft Visual Studios Express 2005. After doing some research, I found that it is missing several packages including the one that I need (windows.h). That's free software for ya. Anyways, I was having trouble finding a way to … | |
I'm a linguist (Python newbie) trying to use Python to help me with some simple NLP processing. I have extracted verb + preposition + VBG triples from the British National Corpus, so I have large csv files containing stuff like this: plan,on,selling criticised,for,getting opened,after,receiving were,in,identifying visited,before,returning recruited,from,including attended,by,including given,by,joining ... … | |
Hi, I have just downloaded 10g express edition but there is no user interface like SQL Server has. Does anyone prefer any program because i am new for Oracle and have never used before. Thanks | |
Hey, I was using some code to write int's defined by user to a file but found when you use [CODE=C++]myfile.open ("lover_names.txt"); myfile << firstLover << " " << secondLover << " " << lovePercent << "%\n\n"; myfile.close();[/CODE] It replaces the other text in the text file, the answer will … | |
Im working on a game like risk and for the main menu im having trouble with the music. the code i use [CODE] id = Shell("c:\program files\windows media player\mplayer2.exe /play /close G:\My Music\Various Artists\The No.1 Classical Album\04 Ride of the Valkyries.wma", vbMinimizedNoFocus)[/CODE] is just to open and play the file. … | |
Hi I`ve just started working with graphic in c++.I want to display a stack on the console . I taugth draw a rectangle as a stack.but the problem is I don know how to draw a rectangle! I write some codes but my compiler (Dev-c++) couldn support them. I found … | |
I work here at UPS in the HR department and they use a Microsoft Access mdb database that connects to oracle servers to retrieve tables. It then creates a local copy of the tables and the queries run off that. The tables are updated every morning at 6am by a … | |
Hi all, I think I might try my hand at creating a text based adventure game in java. No I don't need cutting edge graphics, or state of the art fatalities etc what I am looking for is a solid, story driven adventure/RPG game. I would appreciate some advice on … | |
Its an assignment I have to submit, we have to make a maze using stack and input text file but I admit that i'm tottaly lost in this, something wrong with my code (or really alot of mistakes) please help! #include <iostream> #include <fstream> using namespace std; struct node { … | |
Does anyone know if rs-232 c++ code written with the windows.h library is easily changed to support rs-485 and rs-422 or if its not similar at all? Thanks. | |
I can't figure out why this won't exit when quit is entered. [ICODE] import java.io.*; import java.util.*; public class Trial { static final String ADD_COMMAND = "add"; static final String REMOVE_COMMAND = "remove"; static final String QUIT_COMMAND = "quit"; static final String PRINT_COMMAND = "print"; // Create a single shared … | |
Hi all I am brand new to python so if anyone could help that would be great. The trouble I have is that I am trying to call two other programs from within a parent program, and pass arguements to these children programs. Here is my code so far, but … | |
Hi, I am using msflexgrid control and third party liberary.I am getting data from the net in msflexgrid continously after every one minute. I want to append these data in one of the charting software. I hav two problems.(1). i am getting Type mismatch error(2).If once chart get first tick … | |
Enter initial capital: 2000 Enter percentage: 6.6 Enter number of years: 4 After Year 1 you’ll have 2132.0 dollars After Year 2 you’ll have 2272.71 dollars After Year 3 you’ll have 2422.71 dollars After Year 4 you’ll have 2582.61 dollars In 4 years, a total interest of 582.61 dollars is … | |
please help! i am parsing html of a site in c#.net and i need to get the img, object, and applet tags from the html to verify if they have alt or longdesc attributes. please help me... | |
Hi! First post! :) I have some problem with finding a number in a specific row in a HTML document i'm fetching. I dont really know much of Regexp, but i guess thats how i will do it? The code i'm using [CODE] StreamReader sr = new StreamReader(HttpWResponse.GetResponseStream(), Encoding.ASCII); int … | |
Hello I was wondering whether someone could help me with the below I have a variable called: char company[50]; I have a string which contains: "STEPHEN JOHNSON LTD" I want to change the LTD to LIMITED How do i do this? | |
Hi! I just had a quick question that I can't seem to find the answer to anywhere. My book isn't helping me much and I have no one to turn to for help. Anyways, here's my question: I want to make it so that when you click a Button in … | |
I don't know where to put quit.png. This result in errors. Is it put on SPE folder or somewhere in python? or Just in same directory as saved file? I appreciate your help! Steve Code import wx class MyFrame(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,parent,id,title,size=(700,600)) toolbar=self.CreateToolBar() toolbar.AddLabelTool(wx.ID_EXIT,'',wx.Bitmap('..\icons\quit.png')) app=wx.App() MyFrame(None, -1, 'Simple Toolbar') app.MainLoop() | |
When trying to compile my code with g++ i get this: MayaFunctions.h:5:27: error: calling fdopen: Bad file descriptor in that line, I simply have #include "AnotherFile.h" Google told me this has something to do with precompiled headers, but I can't figure out how to turn them off. 1) how to … | |
how can i use a server control (textbox) and on the client, validate that the only characters entered are numeric (0-9) only...max of 10 chars...allow the backspace and tab key???? HELP thanks | |
Hi, Below trigger increments double(2,4,6,8...) not single. I want single. Where is mistake? If you can not help, is there other way to do auto increment? Thanks [code] CREATE TABLE MY_TEST ( IDNUM NUMBER, NAME VARCHAR2(4000) ) ; create sequence test_seq start with 1 increment by 1 nomaxvalue; create trigger … |
The End.