132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kbullard516

Hello. My task is import data from a text file into an array, and then sort the array and print out the sorted array. Each element of the array represents a clothing item and has name,category,quantity, and price values. I have an Item class to represent a single clothing item, …

Software Development java
Member Avatar for kbullard516
0
156
Member Avatar for abu taher

If I click a button how my computer will be open? I want I click a button then my computer will be open. help me with my computer, control panel

Software Development visual-basic
Member Avatar for hkdani
0
143
Member Avatar for cppStudent

I can't understand why there's a memory leak. Can someone please enlighten me ? [CODE=cpp]#include <fstream> #include <string> #include <iostream> #include <sstream> #include <stdlib.h> #include <math.h> using namespace std; class ChocBar{ public: ChocBar(string name = "Barone",double price =1.20){ name_ = name; price_ = price; } string getName(){ return name_; } …

Software Development c++
Member Avatar for Agni
0
86
Member Avatar for homeryansta

I'm trying to write a a program that simulates a multi queues, multi server such as a grocery line at the grocery store. The user will enter the desired number of queue/server pair. how would i write this? I mean, I can have 3 - 4 different queue stacks as …

Software Development c++ queue web-server
Member Avatar for homeryansta
0
136
Member Avatar for Takafoo

Reverse the case of all alphabetic characters in the string. That is, all upper case characters become lower case and all lower case become upper case. Hello World becomes hELLO wORLD. So I figured I need to use the toupper and tolower commands. I'm just not to sure how to …

Software Development c++
Member Avatar for Takafoo
0
68
Member Avatar for charlie81

I know I am missing somethings in my code not sure what I am supposed to put in. Here is what I have so far. import javax.swing.JOptionPane; public class Main_Class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String firstNumber;//first number …

Software Development java java-swing
Member Avatar for verruckt24
0
167
Member Avatar for clarkpoon

[B]Convert Case To Random In Vb6[/B] I've only 1 Textbox & 1 Button... can anyone help my? Thanks

Software Development visual-basic
Member Avatar for clarkpoon
0
179
Member Avatar for Arrorn

I am writing a dice rolling simulation and i need help redefining a variable inside a loop.

Software Development python
Member Avatar for woooee
0
104
Member Avatar for db11

I've just started c# having done VB and a bit of c++. I think c# is probably a more viable option than ++, thus here I am. I've had this problem in a few languages. How do you create an array in code that is linked to an array of …

Software Development user-interface
Member Avatar for papuccino1
0
2K
Member Avatar for blackbyron

Hello, i have a question for my C++ program. void GasPump::setHighGal(int gallons){ gallons = 0; } void GasPump::setMedGal(int gallons){ gallons = 0; } void GasPump::setLow(int gallons){ gallons = 0; } Those functions will sets the quantity of gas in the indicated tank to parameter value,resets total cash for that type …

Software Development c++
Member Avatar for blackbyron
0
97
Member Avatar for rickbill

I wrote a console application that shows a survey of salespeople that earn a salary in a certain range based on their grossSales. I am not getting the right results. A salesperson makes $200 plus 9% commission on grossSales. when I enter $5000 grossSales I get the result of the …

Software Development vb.net
Member Avatar for timothybard
0
103
Member Avatar for bondgirl21

Hi , I already created a button "enjoy button" that i want to move in a form when the "timer start button" is clicked. how do link the timer to the "timer start button" and make it move? this is what i tried so far..then am blank first [quote] Private …

Software Development vb.net
Member Avatar for bondgirl21
0
153
Member Avatar for VIPER5646

I been searching for days for a sulotion but can't seem to find one. The coed that I have does not give me an error but it does not save anything on the table either ' Can someone help me find what I'm missing? this is my coed [CODE] Dim …

Software Development open-source visual-basic
Member Avatar for jonc
0
171
Member Avatar for mansi sharma

Mine code split strings using "^", I want to split the strings using "^^^^", [code] string b = "mansi^^^^sharma"; [/code] But i m not getting it,Cz split takes just one char. Mine code is as below- [code] protected void Button1_Click(object sender, EventArgs e) { string b = "mansi^sharma"; string[] splt …

Software Development
Member Avatar for JerryShaw
0
92
Member Avatar for BobLewiston

Is there any way to copy an entire Visual C# solution in such a way that it works? If you just copy it and rename it, it gives an error message that it's been renamed and therefore it refuses to work.

Software Development c#
Member Avatar for BobLewiston
0
150
Member Avatar for neelima156

Hi There, I have to do this read a list of names from an input file of my own, In main() I declared a Namelist[][] object, read several names from thefile using redirection and then print out the list. I have to add the name to the list only if …

Software Development c++ file-system
Member Avatar for neelima156
0
131
Member Avatar for dilipkk

Hi, I am looking for a tool in python which can build a model based on some set of training documents with manually assigned keywords. And then it uses that model to extract keywords from new documents. I want to know whether using NLTK can I do this? Reply me …

Software Development python
Member Avatar for woooee
0
239
Member Avatar for sid78669

I have a function which outputs a really long string in a box of defined size. The problem is, after a few lines, I get an error saying that HEAP CORRUPTION has occured and I wrote to a memory beyond the allocated limit. Now, I'm only writing to console and …

Software Development c++
Member Avatar for sid78669
0
193
Member Avatar for mastermosley

I'm building a telnet server and I need a type of arraylist. I need this arraylist to contain an index 0 - 100 thats how many connections I allow at once, and an Ip address so when I refer to index 0 it will give me the ipaddress. I'm new …

Software Development c c# c++
Member Avatar for mastermosley
0
84
Member Avatar for dollycharm

[code] <?xml version="1.0" encoding="ISO-8859-1"?> <monthly> <heading>Monthly Specials at the Jazz Warehouse</heading> <body>Here are some of the latest specials from the Jazz Warehouse. Please note that all Miles Davis and John Coltrane CDs will be on sale for the month of March.</body> <line>______________________________________________________________________</line> <jazz> <subheading>Kind of Blue</subheading> <author>Miles Davis</author> <price>US: $11.99 …

Software Development xml
Member Avatar for fpmurphy
0
106
Member Avatar for Mahsa_C++

hello every one here, hoping u're all doing fine. i am face with a wierd error while trying to encode a class about courses and students ( student is itself a class) i'm give this error, and googling seems of no help! [COLOR="Red"]error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> …

Software Development c++ visual-studio
Member Avatar for Mahsa_C++
0
95
Member Avatar for bluebird

Hello! I am writing c++ program on linux. Whenever I read a char or string, I got problem. In c, I sove the problem using if(getchar()=='\n') in c++, how can I sove that problem? Here is my program. I cannot do any input for name. Please help me. [code] #include<iostream.h> …

Software Development c++
Member Avatar for tux4life
0
100
Member Avatar for cause&effect

I’m new in C#. My first attempt is a console application for the Noughts & Crosses game. I’m stuck in writing the condition for break if any player wins. Any comments will be appreciated. [code] //Tic Tac Toe using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TTT { class …

Software Development
Member Avatar for Antenka
0
93
Member Avatar for Hiroshe

Just getting back into c (I've been dosing assembly for the last few months), so don't laugh at me :S I'm trying to read an input file. The fist line contains how many lines to read. The rest of the lines contain 3 words. Here's an example: [CODE]3 Hello, World …

Software Development assembly c
Member Avatar for kenji
0
105
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; private int win; private int lose; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; } public fermi() { total=0; win=0; lose=0; } public int totalPlay() { return total+=1; } …

Software Development java java-swing
Member Avatar for verruckt24
0
103
Member Avatar for mansi sharma

Hey frnds,I want to get files of Recycle Bin that are currently present in Recycle Bin.can somebody help me out.Cz i have no idea from where to start.

Software Development vb.net
Member Avatar for Jx_Man
0
111
Member Avatar for aidy

[TEX]quick question, I can't figure out how to change the position doing it this way. It isn't changing position.[/TEX] [CODE] this->a1->Location.X = this->a1->Location.X + 20; this->a1->Location.Y = this->a1->Location.Y + 20; [/CODE]

Software Development c++
Member Avatar for tux4life
0
85
Member Avatar for nitu_thakkar

i have to make one prg in c that accept only odd number (no) which is (4>no>30) & have to genrate the pertern which is given below when no=7 then given petern should be genrated for that i have do some coding but i can't get the exatly petern.. pls …

Software Development c
Member Avatar for nitu_thakkar
0
163
Member Avatar for mrtsoftware

hello everyone,I must solve a problem which effect my c programming lesson grade...Here is the problem: Write a program to convert a time given seconds to hours,minutes and seconds format. Sample Run: Enter seconds: 8230 It is 2 hours, 17 minutes ,10 seconds… We learned only #include<stdio.h> not iostream or …

Software Development c
Member Avatar for mrtsoftware
0
96
Member Avatar for bluebird

Hello I am writing a file program like that user has to input a string and that string was written to a file. From that file, that string was read to the another file changing lower case letters to upper case letters and upper case letters to lower case letters. …

Software Development c file-system
Member Avatar for nucleon
0
117
Member Avatar for Emerald214

When creating a new object, i can't decide to use "static allocation" or "dynamic allocation". Ex: [CODE] class A {...}; int main() { // A theObject; // or A theObject = new A(); ? } [/CODE] In some more complex cases, i don't know what i should do. Ex: Use …

Software Development c++
Member Avatar for nucleon
0
101
Member Avatar for cloud21

Hey guys. How may I implement a high/low card game using inheritance, any ideas out there? Sorry I am a bit of a newbie to all this stuff. Help very much appreciated !

Software Development c++
Member Avatar for VernonDozier
0
209
Member Avatar for 88omar

well i have been trying to get this thing to store in a database i created in mircosoft db any help would be appreciated. Thank you in advance Private Sub cmdadd_Click() optftime.Value = False optptime.Value = False optict.Value = False optassessmentprogramme.Value = False optdbt.Value = False opttvet.Value = False optcarrerdev.Value …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
126
Member Avatar for firoz.raj

Can anybody tell me .how should i print serialno of materialrequistiondetail table of matching requisition no.in descending order.here is the code what i have written. [code] Private Sub btPrint_Click() Dim sqlQuery As String sqlQuery = "SELECT MaterialRequisitionOrder.requsition_no, MaterialRequisitionOrder.job_no, " & _ "MaterialRequisitionOrder.delivery_point, MaterialRequisitionOrder.delivery_date, " & _ "MaterialRequisitionOrder.delivery_time, MaterialRequisitionOrder.suggested_supplierID, " & …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
146
Member Avatar for Nanor

I'm learning Pascal in school. I've come across a run time error that's been eluding me these past few days. The error message I get is: [QUOTE]ERROR: line 86, access made to undefined variable[/QUOTE] I've been searching t'internet for a while trying to find out some help, alas Pascal as …

Software Development pascal
Member Avatar for Nanor
0
210
Member Avatar for senidaljeet

Hi there, My friend has got vista in his laptop , now when he tries to run a Graphics program in TurboC it doesnt show the output ( there's no coding problem, BGI header files all are ok) So i gave him Turboc 4.5 , now this TC hasnt got …

Software Development c gui
Member Avatar for ArkM
0
85
Member Avatar for nexocentric

I was making a dos based text game and needed user input. I looked through the forums and found the thread on safe user input, which would be using fgets() instead of gets(). The first problem I ran into was that stdin always had '\n' in the buffer, so it …

Software Development c
Member Avatar for Ancient Dragon
0
495
Member Avatar for blackcloud72

Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from …

Software Development file-system java
Member Avatar for jasimp
0
114
Member Avatar for soulreaver20500

Hi, i have been working on trying to do this for a while now. I applied for a job in c++ and the person gave me a task to test my skill... needless to say that i didn't get the job but i am still working on it to figure …

Software Development c++
Member Avatar for Ancient Dragon
0
104
Member Avatar for Gerlan

Hey, I have a small problem. I need to convert a char into an int, except the char has 2 values inside it. For example [CODE=c++] char c = 'v0'; int i = c - '0'; cout << i << "\n"; [/CODE] All that does is removes '0' from the …

Software Development c++
Member Avatar for Gerlan
0
208
Member Avatar for maru2

How can I use very long STL vectors? I need to write a code where I use the vector container to store a very large number of values, and I need to access the elements using [i]. I am currently using [i], where i is an integer. How can do …

Software Development c++
Member Avatar for StuXYZ
0
216
Member Avatar for killhha

is it possible to end actions that are happening? example: [code=pascal] repeat writeln('example'); until c=1; {the c is an example. im asking if it would be possible to change c to something like 'until readkey'} [/code] readkey doesnt work. i hope you can understand what im tring to ask here. …

Software Development pascal
Member Avatar for FlamingClaw
0
253
Member Avatar for tksabin

hi friends, Im doing my project in C#. Now,I want to make a very nice UI for this one.. The UI which i created now is a simple one using visual studio 2008.. Is there any other software by which i can make a very nice UI.

Software Development user-interface visual-studio
Member Avatar for tksabin
0
90
Member Avatar for serkan sendur

i couldnt find the server explorer, where is it, i need to connect to sql express database.

Software Development c#
0
64
Member Avatar for sawant_nitesh

I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be …

Software Development java
Member Avatar for masijade
0
114
Member Avatar for firoz.raj

i want when user clicks on save button I want to update the database and refresh the listview on the curren page. i have written a code but data is not instantly comming after save button .Here is the code what i have written.I simple Want when Press ok .addded …

Software Development listview visual-basic
Member Avatar for firoz.raj
0
169
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; total=0; } public int totalPlay() { return total+=1; } } [/ICODE] [ICODE]import javax.swing.JOptionPane; import java.util.Random; public class playFermi { public static …

Software Development java java-swing
Member Avatar for verruckt24
0
126
Member Avatar for cassie_sanford

I am writing a program that is supposed to calculate how much a person earns in a month if the salary is one penny for the first day, two pennies for the second day, four pennies for the third day, and so on with the daily pay doubling each day …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for winrawr

What editor/compiler does everyone use, and, what is your syntax highlighting like? I'm using programmer's notepad 2, with a gcc win32 port... with a stylish green-identifier, gray-text, white-operator, blue-comment, red literal on black background.

Software Development c++
Member Avatar for monkey_king
0
138
Member Avatar for gsingh2011

I had some code that worked fine, but then I decided to put it in a header file and now its not working. This is my first time using my own header files so I'm assuming I made a beginner mistake somewhere... [CODE]/* kernel.c */ #define SCRWIDTH 200 #define SCRHEIGHT …

Software Development c
Member Avatar for ArkM
0
92

The End.