132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
[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++ | |
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 | |
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 … | |
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 | |
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 | |
How do I overload the input and + operator for quaternion class? Software Development c++ | |
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++ | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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 … | |
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++ | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
how to delete objects to free memory ????????????? and when did Garbage Collector work to delete unused objects ???????? Software Development java | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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# | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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.. | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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 |
The End.