132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nguerrero03

I have an assignment ... but it's really unnecessary to post all the details up. Basically, I have a header file and an implementation file (and I'm supposed to include an application file, but I don't have the slightest clue by what the professor means by that?). I have the …

Software Development c++ display
Member Avatar for Ancient Dragon
0
88
Member Avatar for dinilkarun

how to count the number of items(or say elements) in each item of a collection in vb6.0 please help

Software Development visual-basic
Member Avatar for QVeen72
0
92
Member Avatar for DJPlayer

OK, I'm under major time constraint and having difficulty understanding some issues in my current C++ class. I have an assignment which is maybe 20% done and no assistance is available. The final and assignment due date are SOON. So what I'm offering is maybe phone/chat assistance and I'll pay …

Software Development c++
Member Avatar for ithelp
0
113
Member Avatar for puk

Please can anyone tell me how to convert a string in a text field to an integer. im using [ String q = answerField.getText(); int n1 = Integer.parseInt(q);] in my programme but i get the errors: Exception in thread "main" java.lang.NumberFormatException: For input string: "Enter Answer here!" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at …

Software Development java
Member Avatar for javaAddict
0
186
Member Avatar for tinazmail

Hello everyone, I have a Matlab program that I got and want to run it on my PC. It gives me errors even though I'm 100% sure of the program and the data entry.My problem is in the function calling somewhere please help. My final is due this monday :( …

Software Development
Member Avatar for shouvik.d
0
182
Member Avatar for jk_bscomp

Hello everyone!!! I hope you could help me with this one... In VB.NET ...If you want to display the content of your database in a datagridview component what you just need to do is to call odbc.odbcDataAdapter so that it will display all the data in datagrid as exactly as …

Software Development display java vb.net
Member Avatar for jk_bscomp
0
150
Member Avatar for tubatsimoloi

I'm new to development!!! Please help :(

Software Development
Member Avatar for scru
0
66
Member Avatar for amarhp

[code] class sample { public : sample() { cout<<"\n In C'tor"; } void fun1() { cout<<"\n In fun1()"; } void fun2() { cout<<"\n In fun2()"; } ~sample() { cout<<"\n In D'tor"; } }; main() { sample *s = new sample; s->fun1(); delete s; s = NULL; s->fun2(); } [/code] Hi …

Software Development c++
Member Avatar for amarhp
0
118
Member Avatar for degamer106

I'm having a little trouble trying to nest two component classes (both extend JComponent) together. When I create the frame in my tester file, instantiate each class, and try to add both of them to the frame, it doesn't come out correctly. For instance, I want my frame to display …

Software Development java java-swing
Member Avatar for masijade
0
148
Member Avatar for mjzammit

Hi i am working on a project, ASP.NET Web Application and i want to highlight a number words which would have been found programatically from the textbox. To find a string in the textbox i managed to do, my problem is to highlight the text found in the TextBox. I …

Software Development asp.net vb.net
Member Avatar for musawenkosi
0
80
Member Avatar for DavidXu

Hello,every one! I want to get the specification of DataMatrix Barcode,can you help me? Thanks for any help! Greetings, David Xu

Software Development visual-basic
Member Avatar for kojek
0
574
Member Avatar for fatasscp

Hello World Ive got a question. So basically ive got a program that asks you which file to open, and once u type in one, it dumps the contents on the screen. The contents im dealing with is a list of numbers. So my question is, how can i get …

Software Development c
Member Avatar for sacdpathade
0
113
Member Avatar for toolbox03

How do I overload the input and + operator for quaternion class?

Software Development c++
Member Avatar for toolbox03
0
80
Member Avatar for nyt1972

Hello Friends, I got this assignment and need help to start, I dont need the code at the moment coz I will have to o it my self, but at now I just need hints to start it. The assignment is: [B][U]Del command[/U][/B] Time Limit: 1 Second Memory Limit:32768K Special …

Software Development c++
Member Avatar for nyt1972
0
112
Member Avatar for Aamit

I want to rename file with name of ip address like (192.168.1.55.txt) In xyz.txt file have ip address. I m finding this ip address but rename giving problem??? [code=c] #include <stdio.h> #include<conio.h> int main () { int result; char ipadd[20]; FILE *pFile;; pFile = fopen ("xyz.txt" , "r"); fseek(pFile,172,SEEK_SET); fgets …

Software Development c file-system
Member Avatar for Prabakar
0
357
Member Avatar for Linda1

My homework requires me to write a program for a matrix that bubble sorts in descending order, then multiply by two and output results Tried doing these in different ways, maybe, someone out there can help.. #include <iostream> #include <iomanip> #include < cmath> using namespace std; const int NO_OF_ROWS = …

Software Development c++
Member Avatar for Prabakar
0
179
Member Avatar for wing43

im making a random question game. what im having trouble with is figuring out the correct way to make it check the answers this is what i have. [CODE] for(int r=0; r<10; r++) { int theDice = ( rand() % 10) +1; answer[theDice]; cout<<question[theDice]<<endl; cout<<"Response: "; cin>>inquestion; if (strcmp(inquestion, answer[theDice]) …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for nurulshidanoni

Why the selection sort output not appear? Anybody knows how to correct it? [CODE=C++] #include < iostream > #include < string > #include < cmath > #include < iomanip > #include < fstream > using namespace std; void SelectionSort ( int *y , int n )//selection sort function { int …

Software Development c++
Member Avatar for nurulshidanoni
0
139
Member Avatar for toolbox03

Want to ask how to detect new line For example, I need to read in a text file in this format John 123 Y 1 abc def ghi Jane 456 N 1 xyz Jack 789 N 1 xxx xxx how do i detect the empty line and read in the …

Software Development c++
Member Avatar for toolbox03
0
972
Member Avatar for gabanxx

here are some changes i made to the code.. as always the problem still the same nothing happen... can you figured it out what seems to be the problem....i really appreciate the help Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click Dim varConnection As New SqlConnection …

Software Development dataset vb.net
0
63
Member Avatar for MJFiggs

I have been working on this problem so much, I have started to think in Binary. what I am supposed to do is put User defined numbers in acending order. Here is what I tried. (please dont laugh) [CODE]#include <iostream> #include <iomanip> #include <vector> using namespace std; void testSort(int [], …

Software Development c++
Member Avatar for MJFiggs
0
117
Member Avatar for DogsAfire

I am working on a program (using MS Visual Studio 2005 professional) and have incorporated some Standard Template Library vectors. The program is very math intensive. When I run in debug mode, the debug checking provided by STL slows the program to the point that I am getting no work …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
118
Member Avatar for rkesmodel

We have a need to modify a program on a DOS machine written in Borland C++ version 3.1. Our customer threw away the Borland manuals some time ago. In particular we need the manuals detailing how to use the compiler in DOS. Help anyone? Thanks. Roy

Software Development c++
Member Avatar for rkesmodel
0
202
Member Avatar for c++ newbie

this is a c++ program. ok. so this is my problem where i am supposed to get data from one file, read it in and make the proper adjustments to it, and output it on to another file. i'm supposed to use structs. the input file has this data: 348 …

Software Development c++
Member Avatar for Ancient Dragon
0
159
Member Avatar for Adrian99420

Hi, I wish to output a string from a textbox to another file, here is what I wrote: [code] FILE*myfile; myfile=fopen("D:\\Profiles\\DqGw47\\Desktop\\hello.txt","a"); fprintf(myfile,"%s\n",textbox1->text); fclose(myfile); [/code] In my hello.txt: Set wallpaper= My problem is how can I control where to fprintf my string. In this example, how can I output the textbox …

Software Development c++
Member Avatar for Ancient Dragon
0
146
Member Avatar for xandres

Hi. First of all, I am new to java and I am having some problems in understanding arrays. I was asked to do the following program. [COLOR="red"]2[/COLOR] 5 9 8 7 3 [COLOR="red"]4[/COLOR] 8 5 3 7 6 [COLOR="red"]9[/COLOR] 6 3 8 9 5 [COLOR="red"]3 [/COLOR] 2 1 3 1 …

Software Development java
Member Avatar for xandres
0
487
Member Avatar for nurulshidanoni

After read this file , i want to do a selection sort...below are the selection sort programming that i get from google [CODE=C++] #include <fstream> #include <string> #include <iomanip> #include <iostream> using namespace std; void sortData( string fId[], int noOfRows); int main () { string Id[100]; int total[100], i = …

Software Development c++
Member Avatar for nurulshidanoni
0
3K
Member Avatar for nimirraj99

okay i'm working on a very complicated problem (for me anyway) and i know i'm missing something somewhere. i need to be able to store data into an array but i don't want it looping right off. this is the structure for the data i need and my function headers. …

Software Development c++ data-structure
Member Avatar for Ancient Dragon
0
100
Member Avatar for chemicaldave

I have an assignment. I have to ask the user for a string to search for in a file. The program reads each line of the file and compares each string to the user's string. It then displays the line of the file the string was found on. Lastly, I …

Software Development c++ file-system ios
Member Avatar for Ancient Dragon
0
336
Member Avatar for BabyEyes

Hi everyone, this is the second time i put a post here , i want to write a code for a game in assembly MSAM, the game is the a letter appear in the screen and the child or the player should press the letter which they see by the …

Software Development assembly
Member Avatar for BabyEyes
0
103
Member Avatar for WalkmanXD

how to delete objects to free memory ????????????? and when did Garbage Collector work to delete unused objects ????????

Software Development java
Member Avatar for WalkmanXD
0
106
Member Avatar for anbuninja

well im writing a program where the user enters a number from 2 to 1000 and it displays the prime numbers. Its in a loop and i want it to stop when the users enters 'n' or 'N' well when i type n or N the program goes crazy haha. …

Software Development c++
Member Avatar for anbuninja
0
118
Member Avatar for karthikvela

Hi, Am new to scripting. :) Am trying to figure out whether can i use bash scripting to parse an xml file. Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull of information. …

Software Development perl shell-scripting xml
Member Avatar for eggi
0
110
Member Avatar for javauser215

My program compiles and runs okay, but is not displaying my restocking fee and I am not sure why. Attached is my printout of how it displays. [CODE]//Product.java works with Inventory4.java file import java.util.Scanner; // program uses class Scanner public class Product4 { //Private Variables private String name; //Product name …

Software Development java
Member Avatar for javauser215
0
113
Member Avatar for daviddoria

I ran this: [code] cout << "has nan q?" << numeric_limits<int>::has_quiet_NaN << endl; cout << "has nan s?" << numeric_limits<int>::has_signaling_NaN << endl; cout << "has nan q?" << numeric_limits<double>::has_quiet_NaN << endl; cout << "has nan s?" << numeric_limits<double>::has_signaling_NaN << endl; [/code] and I get 0 0 1 1 why would …

Software Development c++
Member Avatar for Salem
0
185
Member Avatar for En1ro

This code is in Unit1.h [CODE=C++] struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; friend ostream& operator<<(ostream& os, const gydytojas& obj) { return os; }; friend fstream& operator>>(fstream& os, const gydytojas& obj) { return os; }; }; gydytojas gydmas[100]; [/CODE] And this code …

Software Development c++
Member Avatar for En1ro
0
181
Member Avatar for knowledgelover

Hi there, I need to create an INFO file in the setup of an application, and within the application I need to write on that file , actually I did some google, but I did not find article that discuss what I need , specifically if the writing operation , …

Software Development c#
Member Avatar for knowledgelover
0
169
Member Avatar for TheWhite

I have a JButton with both an ActionListener and a MouseListener: [code=Java] b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae){ performLeftClickAction((JButton)ae.getSource()); } }); b.addMouseListener(new MouseAdapter() { public void mouseReleased(MouseEvent me){ if(SwingUtilities.isRightMouseButton(me)){ performRightClickAction((JButton)me.getSource()); } } }); [/code] Here are the 2 actions for right clicking and left clicking: [code=Java] performLeftClickAction(JButton b){ //problem …

Software Development java
Member Avatar for TheWhite
0
1K
Member Avatar for legendofme

I can't seem to figure out whats wrong. This isn't a finished program but it should compile anyways. [ICODE]#include <iostream> #include <string> using namespace std; const string SENTINEL = "\n"; int main () { char letter; int letterCt; cout << "Enter a line of characters" << endl; /* TO BE …

Software Development c++
Member Avatar for Narue
0
95
Member Avatar for jaasaria

guyzz i wanted to make 2 connection in my inventory system. using mysql and access. i wanted to use the mysql as my main database..and if their no internet connection it posible save first the data in my access.. and if their an internet connection it will update and stored …

Software Development mysql visual-basic
Member Avatar for werks
0
121
Member Avatar for sony112

Can some1 show me how to make a 7 segment display pelase on delphi petes petrol pump

Software Development delphi pascal
Member Avatar for Duoas
0
106
Member Avatar for manuswami

Hi, I have this belowmentioned file: col1 col2 10 50 20 60 30 70 40 80 I have to take the O/P as col1 col2 col3 10 50 60 20 60 80 30 70 100 40 80 120 Using awk how can i get the above output as the col3 …

Software Development shell-scripting
Member Avatar for Salem
0
68
Member Avatar for Jennifer84

I have a textBox that I with help of a Button turning to a Gray BackColor like this. textBox1->BackColor = Color::Gray; Under this textBox I have a checkBox. *(with default "checked").* What I am trying to do here is that when I "uncheck" this checkBox, the textBox will turn "Red" …

Software Development c++
Member Avatar for Jennifer84
0
144
Member Avatar for Jahira

hi all, i'm hvng dropdownlist for country by getting values from Database(SQL SERVER).Now in Drop Downlist,the default value should be in "Select Your Country"... I'm too new to .net.will u help me solve this issue.. Dis is in asp.net with vb Thank u..

Software Development asp.net vb.net
Member Avatar for Jx_Man
0
126
Member Avatar for zidaneqrro

Last question for today before you start hating me.. I don't know if this really belongs here, but I'll post here anyway. How do I make my programs stay on command prompt longer? Usually they just flash for a second if I don't open them up with command prompt. Heres …

Software Development c++ flash
Member Avatar for William Hemsworth
0
142
Member Avatar for leroi green

hey guys. i've got this code where i've gotta separate a full name and tell the user which is which (meaning "this name is first, this name is middle, and this is your last name" type stuff). Well i've got the first part working where the program tells you what …

Software Development vb.net
Member Avatar for danielgee
0
87
Member Avatar for williamrojas78

Hi I am trying to count the rows that has been selected by the user - either with CTRL or SHIFT. The only property that i see is 'CurrentRowIndex' or 'Currentcell' but it only gives me the last selected row even though there are several rows selected. Other than that …

Software Development vb.net
Member Avatar for williamrojas78
0
152
Member Avatar for Motvel

Hi! Suppose i have a polygon with 5 points. They are constant. I use "gotoxy()" to define the point positions. Something like this: [ICODE] x1=30; y1=10; gotoxy(x1,y1); cout<<"A"; x2=50; y2=10; gotoxy(x2,y2); cout<<"B"; //.....and so one up five [/ICODE] Now i should to give a another point (X,Y), and calculate with …

Software Development c++
Member Avatar for dmanw100
0
123
Member Avatar for kiwihaha

i want to make a error check on each input. if i only got 1 input.. then i just use while(input==false) so it will continue ask user to input if he wrong input but if i have many input,then the while loop will complicated.. for example: Enter ur gender Enter …

Software Development c++
Member Avatar for dmanw100
0
118
Member Avatar for wsn

Hi everyone, I'm trying to find the points that satisfy the equation y^2=(x^3)+ (4*x) + 4 (mod 5) from the book i know im suppose to get x=0 y=2 x=0 y=3 x=2 y=0 x=4 y=2 x=4 y=3 so far i haven't been luck in getting anything any help is appericated …

Software Development python
Member Avatar for Lardmeister
0
107

The End.