132,726 Archived Topics
Remove Filter ![]() | |
hi gud pm!!!! i have a problem the compiler says that in this code..."name lookup change ISO 'for' scoping then using obsolete binding at i"... please help badly!!!! for (int i=0; i<20; i++){ r [i]=0; } switch (ch){ case 'a': cout<<"Please enter your password first\n"; if (ch=='a' && r[i]!=0){ clue(); … Software Development c++ | |
Can anyone help me understand function polymorphism ? Software Development c++ | |
Here is the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; int main () { ifstream fin; ofstream fout; int item1=0, item2=0, item3=0, item4=0, item5=0, amount; char item; fin.open("input.txt"); fout.open("output.txt"); if(fin.fail()) { cerr << "Input did not open\n"; exit (2); } if(fout.fail()) { cerr << "Output file did … Software Development c++ | |
hello, it's me again. As you have noticed, i am working on an assignment that my teacher gave me. It's 20% of my midterm exam. I posted the threads "Need urgent help! please", "I need help with my program", and the "Help with my main method." I am having problems … Software Development java | |
Hello folks, I have a Netbeans desktop application with a frame. I have a menu called SALES. Under that i have a menu-item "Import". I have added a mouseclicked event where i call a function. When i click on Import, nothing happens... Plz help. Thanks Software Development java | |
please tell me under what condition we should we use abstract classes and main difference between interface and abstract classes Software Development java | |
[code=JAVA] import java.io.*; import java.util.*; import javax.swing.*; public class Calculator { private static Stack operators = new Stack(); private static Stack operands = new Stack(); public static void main(String args[]) throws IOException { JOptionPane.showMessageDialog(null, "Hello user! I hope you have a great time using this. = ]", "Welcome", JOptionPane.PLAIN_MESSAGE); JOptionPane.showMessageDialog(null, … Software Development java java-swing | |
Hey everyone, I have a program that computes the distance between two elevations at a given point. I need to plot these lines to a picture. I'm having problems getting the lines to start in the correct spot. Here's the code I'm using: [code=vb] Dim Gr As Graphics = PictureBox1.CreateGraphics() … Software Development vb.net | |
Hey, ive debugged my program to this line, and im not sure what to use, strcpy or some other thing, but i need to get the string from a[x] in to the new string c[z]. Any suggestions? [code=c++] string a[100]; string c[100]; if (a[x].compare(b[y])==0) { c[z] = a[x]; //doesnt work … Software Development c++ | |
I am having a combo box in my form and i want to open a image using that now whenever i select any option from the combo box different different images should be displayed what cud be the necessary code and what event should be used to write the necessary … Software Development vb.net | |
can any one help about this data type __int8, visual studia.net c++. How to define it.And if u can, can you show mee alittle program to see how it works. Thanks alot Software Development c++ | |
Hi all... please help me with this code... i hv retrieved the id of the employee from the login n stored it as a lable in my form- logid but now with respect to that i want to get the employee name... please help very urgent!! [code] Dim rs As … Software Development visual-basic | |
how to transfer a database from ms access to ms sql 2005 through a button clik event in c# Software Development | |
Hi Pls help me to slove this problem.I have a method and I pass a dataset to it.and inside the method it generate another dataset,i want to join dataset1 and dataset2.How do i do tha below I mention the coidng,it just testing coding.In dataset it contains Retailercode and dataset 2 … Software Development dataset open-source | |
I'm writing a method to generated a latex table table from input arrays. It's working but there is one nuisance: I want trailing zeros on numbers. Right now I'm using the %g method which works nicely, but it still will turn 1.340 into 1.34 if I do "%.4g" % 1.340. … Software Development python | |
I have been assigned ot developa simple Java paint program whis allows the user to: 1.Create simple shapes on many layers 2.Draw line 3.Fill the selected shapes and lines (using color chooser) 3.Copy and paster the selected shape 4.write selected sahpe to a file and load the file to the … Software Development first-post java | |
Good Day!!! I have a problem in creating a code using dev cpp. Can you complete my code? This is my code: [code=cplusplus] #include <iostream.h> #include <string.h> void change(); void clue(); void menu(); void compare(); char n1[8]; char n2[8]; char n; main(){ do{ char name[20]; char n; system ("cls"); cout<<"Menu:\n"; … Software Development c++ | |
i have to write a program to find sum of the sequence using loops the sequence is [B]x-x^2/2!+x^3/3!-x^4/4!+.....[/B] Software Development c++ | |
I have a form in which i have 5 tab pages i have a doubt as to how to open a specific tab page within that form on button click. Say, i have an admission form in which when i click on save the details should be saved and then … Software Development vb.net | |
I have a VB6 program that does some image processing. It works fine when used thru both the GUI or non-GUI command line. My problem is that if I am in a command window and run the executable with arguments, it returns to the command window prompt after just a … Software Development gui visual-basic | |
Hi, I need to create a huge array of (up to 160,000) points on a grid ex. (4, 23). First of all, I have no idea how to create an array, I looked on the Java API, but I was helplessly and hopelessly confused. And after a create the array, … | |
I need to create table with expandable rows. Each row in the table can be expanded to display a secondary row. While I have managed this in the past for other projects, this problem is slightly unique. For the rows that are always visible, I want them to be only … Software Development java | |
I want to build a web chat application for mobile and i build it in the same manner as it build for desktop browser but that is not supported by mobile browser. Please java developer let me know how to build front end pages that will be compatible with mobile … Software Development java java-netbeans web-browser | |
HI guys..... I'm having a problem using one calendar in my whole application.... here are the details: component used for calendar : Microsoft Calendar Control 11.0 here's the situation: I have plenty of forms, and in every form that has textboxes which requires to input dates.. in one form, it … Software Development visual-basic | |
As you guys might have guessed form the threads name, I have a few questions that am going to post under one thread because i don't want to stuff the front page...thanks in advance. 1. Why are function prototypes mostly declared before the main(), but the actual function is under … Software Development c++ | |
I've got an array BM[] with a length of 5. How would I declare my function in the heading and what am I doing wrong in my code, it keep giving me errors. Also I dont know how to apply it to my program to do the sorting. Like would … Software Development c++ | |
Dear all, I have a question about inheritance in C++. Suppose there is a base class called "A", with a protected variable "list_" which basically stores a list of objects with type "P", and also there is a method in class A which adds objects to the list. There are … Software Development c++ | |
why it is use full to resolve overridden method at runtime rather than compile time Software Development java | |
Hello. I have been asked to write a function which Return the minimum index of the nodes with a lexigraphically larger name". But I am confused that what is lexigraphically Software Development c++ | |
Hello, I faced a problem to use a function in struct format. If I insert the data to the Contact("Ada", "ada@ust.hk", "12345678")). How can I print it out by using the Contact class member "print"? Thank you. [code=cplusplus] typedef struct DLL_node { DLL_node *prev; DLL_node *next; Contact *contact; } DLL_node; … Software Development c++ | |
I have searched the forum , also over internet but i didn't found any understandable method to convert float number to string , Please help Me in conversion. Software Development c++ | |
This is a code converting infix expressions to postfix expression and evaluates it. there is a problem, when i run it in ECLIPSE, it it displays this errors: Exception in thread "main" java.lang.NumberFormatException: For input string: "4+4" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:456) at java.lang.Integer.parseInt(Integer.java:497) at Postfix.toPostfix(Postfix.java:39) at Postfix.main(Postfix.java:21) Can anybody help … Software Development java | |
[code] import java.io.*; import java.util.*; public class InfixToPostixEvaluate { private static final String operators = "-+/*"; private static final String operands = "0123456789"; private static int getPrecedence(char operator) { int ret = 0; if (operator == '-' || operator == '+') { ret = 1; } else if (operator == … Software Development java | |
Hi, I am new to VB so go gentle with me. I am using VisualStudio 2005 VB (team edition). It's been a real pain finding examples of retrieving webpage data from a website given a URL (plenty of examples that don't work in visual studio sigh) but I have achieved … Software Development visual-basic visual-studio | |
[CODE]#include <iostream> //Using for input and output #include <iomanip> //To set each number a determined place in the print function /* This program will try to move a knight around a chess board to each space exactly one time. How I will do that? I will first create the board … Software Development c++ | |
I am having an issue with a subclass. When I put in the code [code]package Ch1Pkg; public class RoundBaseContainer extends BaseContainer{ [/code] to implement the superclass of BaseContainer, I am getting an error that says cannot find symbol Symbol: constructor BaseContainer() location: class Ch1Pkg.BaseContainer I have the files in the … Software Development java | |
Em.. the problem is quite simple. This is the error output on when I try to build this. [CODE] error: no matching function for call to ‘Console::action_new(const char [5], const char [23], <unresolved overloaded function type>)’ [/CODE] This is the source... [CODE] /* Author: Wolter Hellmund Email: whellmundv@gmail.com --------------------------------------- This … Software Development c++ | |
Hello, Attempting to run java app from zip file rather than jar but having some difficulty. I have placed all the classes for the app in the zip. The files not are compressed. Here's a sample of the code: [CODE] 'the following tries to run Main.class. Also, tried calling app … | |
I was just wondering if a C++ compiler is taking the source code and creating a binary file out of it with a .exe extension on it or something or does it translate it to assembly first and than assemble it from there. If it is binary I have always … | |
I am writing a slide show. The slide show itself is not bad. My problem: [INDENT]I can put the pictures in the resource area. This would require recompiling and sending the viewer each time I want to send pictures. I would like to send the pictures seperatlly and have the … | |
Hey guys I have 2 forms. One is a log in screen and another is a main menu. I need to retrieve the data from the textbox in the login screen to the textbox in the main menu. I have sourced around the internet and have implemented this code into … Software Development vb.net | |
Where should i look for this answer: Hi, If you don't know the answer if you could please point me in the right direction it would be appreciated. looking to search for more then 1 term at a time with user interaction as shown in the script below. I have … Software Development open-source perl | |
Hi all i have been having this annoying problem. I can change th value of an memory address. the problem is tha the memory address changes every time the application restarts. Now i figured i would need to use a pointer. So i found a pointer that points to this … Software Development c++ | |
Hey all! I am having a problem copying Linked Lists. My Struct has the following fields. list->data list->number list->exit Exit is the tail, data is the head. I tried doing this.. copyList->data = list->data but it resulted in a fail of epic proportions. Can anyone give me a hand please? Software Development c++ linked-list | |
Hello, I am newbie of C++ Below is my code, I want to implement the function "printall " to print out the " contact" data in Dlinked_list. but I faced a problem to call out the function of class "Contact" of "print". for example: list.insert(new Contact("Ada", "ada@ust.hk", "12345678")); then the … Software Development c++ linked-list | |
As a part of an assignment I am to construct a copy constructor for a bitmap loader/manipulator class. 2 of the things that must be copied are struct headers (containing a bunch of useless bitmap information, with a tiny bit of useful stuff). Image Headerfile: [CODE=cplusplus]#pragma once #include "Drawer.h" #include … Software Development c++ | |
I came accross a strange thing, maybe it's stupid, or I don't have the knowledge of how linking actually works... I have a project that builds in a static lib, and anoter project that builds in an exe and links to the static lib. Compiled with MSVC 2005, all works … Software Development c++ | |
I have a list of numbers, say; 1, 2, 3, 4, 5 and i want to find the next biggest number to 3, obv the answer would be 4. ive tried every book i know, and MSDN, i cant find anything, is this not possible? Thanks for you time. Software Development vb.net | |
Hello, I am trying to do this assignment in the book. My objective is to create an interactive program which will calculate areas of a square or a triangle depending on the user input 's' or 't'. I am gone about 40% of the book so they dont expect me … Software Development c++ visual-studio |
The End.