132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blcase

ok exploring the STL <set> if you entered the values say 1 to 1000 in order would it auto balance?....i thought no but then a friend of mine told me about this "red and black" tree and if i test the result times to find an element (random and numeric …

Software Development c++
Member Avatar for vijayan121
0
79
Member Avatar for knight fyre

I'm trying to design my UML diagram but I'm not sure about something. If I have a derived class that belongs to two other classes will the two other classes inherit the features of the base class? For example class Vehicle_Details inherits features from class People[I](is-a relationship AKA inheritance)[/I] while …

Software Development c++
Member Avatar for knight fyre
0
90
Member Avatar for Jboy05

I have to write a C++ function named MPG which returns the number of miles a car can travel with one gallon of gasoline. The function should have three parameters: the size of gas tank in gallons, number of miles traveled, and gasoline left in tank in gallons. this is …

Software Development c++
Member Avatar for superjacent
0
181
Member Avatar for CoolGamer48

Is there any reason why the code below won't work (I mean as far as writing output to file, not as far as writing the correct output to the file): [CODE] #include <cstdio> #include <iostream> #include <fstream> using namespace std; int main() { ofstream fout ("ride.out"); ifstream fin ("ride.in"); char …

Software Development c++
Member Avatar for Ancient Dragon
0
289
Member Avatar for demroth

This is the first program I have had to do in 5 years so please don't be surprised by some of the mistakes. I am creating a program that will open a file and sort the integers inside that file using Insertion sort. There are 12 files and each as …

Software Development c++
Member Avatar for demroth
0
160
Member Avatar for push

how to deploy project at dotnet by cresting bin folder and puting .exe file in that. and creating shortcut for exe file. pls...........any one pls..............elp me for this.

Software Development vb.net
Member Avatar for push
0
67
Member Avatar for Exo1337

Ok so I need to pull up records one at a time and then have the loop terminate when it reches the end of the input file using while and the istreamVar.eof() commands [code=cplusplus] #include <iostream> #include <fstream> #include <iomanip> using namespace std; int main() { ifstream ticketSale; int num2, …

Software Development c c# c++
Member Avatar for codeaa
0
275
Member Avatar for Jennifer84

I wonder what the correct syntax is to delete All contents like below: [B]2D vector string vector double vector[/B] These 3 look like this: [code] std::vector<std::vector<string> > Word2(100, std::vector<string>(100)); std::vector<string> Word1(100); std::vector<double> Number1(100); [/code] Is it correct to do this: delete[] Word2; delete[] Word1; delete[] Number1; Thank you

Software Development c++
Member Avatar for sohguanh
0
151
Member Avatar for IIMarckus

Hey guys, I've been having some trouble setting ios:: flags. In general I don't use [inlinecode]using[/inlinecode], but without it what I do doesn't work. [code]#include <iostream> #include <iomanip> using namespace std; int main() { double moneys = 5.2; cout << "$" << moneys << "\n" << "$"; cout << setiosflags(ios::fixed) …

Software Development c++ ios
Member Avatar for vijayan121
0
111
Member Avatar for sohguanh

Hi everyone, I am new to this online forum. I am a software engineer residing in Singapore doing software development for a living for past 9 years. Only recently am I introduced to the wonders of ACE. It is such a pity the ACE framework is not part of the …

Software Development c++ client-server queue unix windows-server
Member Avatar for sohguanh
0
134
Member Avatar for defience

I have a file named numbers.txt that looks something like this: 1243#74656453634#6356#56456456#565#1212121#78384 83#457#090#720347###24273#18712#478230478#57117 58125671#47464#74647#46474647#19192938#828##2583 5#2948284#6010203040# I need to replace all of the '#' symbols with '!'. Then I need to replace 3 of the'!' symbols to '@' but not knowing which ones. It could be the 2nd, 5th, 15th or …

Software Development python
Member Avatar for woooee
0
8K
Member Avatar for cwarren13

Note: second post contains more info about where I'm having a problem... what I'm expecting to do and what the program is actually doing. Hey all, I'm finishing up an assignment for my C++ class and I can't figure out why the program stops in the middle of it. The …

Software Development c++ ios
Member Avatar for cwarren13
0
91
Member Avatar for nish88

hi ..... i'm making an animation but am having a problem Tkinter. the problem is that when i open the file with python 2.5 and execute the code then it works but by just double clicking on the file icon the program don't not work properly.its does not show the …

Software Development python tkinter
Member Avatar for sneekula
0
155
Member Avatar for slayer10

Ok, i have been making a chess game program, basically what it is is a chesspiece class and a chess board class, the chessboard class has an 8x8 2-d array of chesspiece objects, then i have my frame, my frame has a parallel 2-d array of Jtoggle buttons, when a …

Software Development java
Member Avatar for slayer10
0
82
Member Avatar for maggie789

Hi, I was wondering if there is a way to split double into its integer part and decimal part. I' working on binary converter, and my teacher gave me 4 steps on how to write the program. I've completed step 1 which is separating number into integer and decimal portion, …

Software Development java
Member Avatar for maggie789
0
958
Member Avatar for Phan

I am a noob that is currently trying to learn C++ for a programming class in highschool, and I am having difficulty with a particular project. Basically, I have to create a number guessing game that lets the user play as many time as he or she wants, while telling …

Software Development c++
Member Avatar for Phan
0
120
Member Avatar for noble3ad

Hello all, I'm trying to write a program that will compute the real roots of the quadratic equation ax^2 + bx + c = 0 given by: x1 = (- b + sqrt (b^2 - 4ac)) / 2a and x2 = (- b - sqrt (b^2 - 4ac)) / 2a. …

Software Development c
Member Avatar for noble3ad
0
109
Member Avatar for jure.gregorin

Hello! So i have a 200x200 image that has a wheel on it. This wheel can vary positions so i need to find it's center in it. I have a approximate x positon of the wheel, but I still need the center. One problem is also that the wheel can …

Software Development image
Member Avatar for BlackSun
0
140
Member Avatar for rutul

i want to create calender scheduler in c# i which i can insert,edit,update meeting,birthdays,holidays informations . Does any one knows how to solve it?

Software Development
Member Avatar for BlackSun
0
143
Member Avatar for harryl5

Hey people! I have been using VB2008 since it came out now, and have also used the 2005 version, but I was just wondering, if there is ANY way to create a Chat Application, or any way to create an IM service. Please help me :) Thanks x

Software Development vb.net visual-basic
Member Avatar for Jugortha
0
209
Member Avatar for debangan.b

hi every body dis is debangan bhattacharyya 4th yr IT student of WBUT...we have project in our final sem...Currently working on a mobile communication based messaging framework for automating job/class/workflow information scheduling using an open standerd based technology I have to write code in python as my instructor has told...But …

Software Development python
Member Avatar for linux
0
122
Member Avatar for ftpvk

I need to write some code for making a double space between 1-2 words, triple space between 2-3, then double again followed by triple and so on. I came up with this code: a = 'one two three four' and I want to get this: "one two three four" print …

Software Development python
Member Avatar for sneekula
0
78
Member Avatar for see_sharp

hi everybody, am new to C#, i want a simple description about using namespaces in C#. plz help me

Software Development
Member Avatar for BlackSun
0
69
Member Avatar for knish

Hi, #!/usr/bin/python # panels.py import wx class Panels(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title) hbox = wx.BoxSizer(wx.HORIZONTAL) splitter = wx.SplitterWindow(self, -1) vbox1 = wx.BoxSizer(wx.VERTICAL) panel1 = wx.Panel(splitter, -1) panel11 = wx.Panel(panel1, -1, size=(-1, 40)) panel11.SetBackgroundColour('#53728c') st1 = wx.StaticText(panel11, -1, 'Feeds', (5, 5)) st1.SetForegroundColour('WHITE') panel12 = wx.Panel(panel1, -1, …

Software Development python
Member Avatar for Lardmeister
0
224
Member Avatar for amitpatney

Hello All, I a beginner to vba 6.0 and vb.net programming. I have 6 months to come up with a solution that entails putting up an access database, that i created, onto the web so that hundereds of people can access it at the same time from multiple locations. Questions …

Software Development vb.net
Member Avatar for harryl5
0
138
Member Avatar for StephNicolaou

I'm trying to make a circle appear from a class I've developed to move following the x co-ordinate of the mouse. I've done that part correctly, it's just loading the class...Can anyone tell me why it isn't loading? I do love to solve problems myself but I've been working on …

Software Development java
Member Avatar for Ezzaral
0
233
Member Avatar for swabyw

I am trying to use a Listview1 instead of a datagrid1 by dropping a oledbDataadapter1 or a SQLDataAdapter1 on the Window form But having the hardest time. I can use this method: Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click Dim MyConnection As New SqlClient.SqlConnection() 'Define …

Software Development dataset listview open-source vb.net
Member Avatar for Alekhan
0
174
Member Avatar for Parsu7

Suppose i try to instantiate an abstract class then a checked exception is thrown,but who handles it or how is it handled?

Software Development java
Member Avatar for Parsu7
0
122
Member Avatar for piers

I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double …

Software Development java
Member Avatar for piers
0
800
Member Avatar for javavsdotnet

i have DSL router with an ip address a.b.c.d i want to write a Linux script, which when executed can restart the router. Please can anyone help me out? thnx in advance.

Software Development shell-scripting
Member Avatar for DimaYasny
0
41
Member Avatar for boburob

Hi, I am designing a code breaker program that works out letter frequency in a text file and tries to codebreak using the frequency that letters appear in the english alphabet, however at the moment it is only outputting whatever is at the end of the decry array. Thank you …

Software Development c++ file-stream
Member Avatar for codeaa
0
794
Member Avatar for The Midnighter

Alright, so I've got a Merge Sort program working that accepts a text file, and is supposed to split the data from that one text file, into TWO different text files. This is however, just putting them into one =x Any idea as to why? here's part of my code: …

Software Development c++
Member Avatar for The Midnighter
0
190
Member Avatar for RockClimber

I'm teaching myself C++ through googling (my class has no textbook, if you can believe it) so I apologize in advance for my (probably) incorrect terminology. I want to name individual incarnations of a struct by numeric information supplied by the user. Here is a snippet: [code]int main (void) { …

Software Development c++
Member Avatar for codeaa
0
101
Member Avatar for eranga262154

Hi all, I have two C# projects (a service and a windows form) on the same solution. I want to send some parameters to the service on click event of the service start (serviceControllr.Start() method) How can I do that. Thanks.

Software Development c#
Member Avatar for JerryShaw
0
111
Member Avatar for manutd4life230

hi program to ask the user a username and a password if pass and username good display OK else clear screen and reask the user for username and password again. this will continue until good username and password entred. using while loops thanks in advanced

Software Development pascal
Member Avatar for Duoas
0
120
Member Avatar for c++ prog

i've been developing a game for quite some time now...it will be finished soon...my only concern now is how to make my game more interesting to the gamer's eyes...so i included a video to be able to give a brief background of how the story unfolds...but the problem is that …

Software Development vb.net video
Member Avatar for Nick Evan
0
85
Member Avatar for ankitbullu

I was asked this question in an interview. Am looking for answers for this: A rectangular array of cells (say m*n) are selected in a spreadsheet (eg: MS excel). Assume that the cells contain only integer values. They need to be pasted to some location within the same spreadsheet after …

Software Development algorithm c
Member Avatar for Duoas
0
110
Member Avatar for noble3ad

Hello, I was wondering what the following error meant in Visual Studios: This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix this problem. I tried compiling a program that I wrote and then all of a sudden I get this error. It had …

Software Development c microsoft visual-studio
Member Avatar for noble3ad
0
61
Member Avatar for Jellis58

I have a form that is used by say 250 employees right now but soon to grow company wide. This form has several line items listed down the page. Every few days I get several sheets in which right now I use tick marks (on a blank pcs of paper) …

Software Development c
Member Avatar for Jellis58
0
84
Member Avatar for pohyf

im new to visual basic. can i know how to do a xor encrypt password using vb 2005 express? please help. im willing to learn

Software Development vb.net visual-basic
Member Avatar for dotnetclassic
0
93
Member Avatar for aminpr

Hello guys Im working on this project were I have to make the shape of my inicials "HIP" then make the letter H rotate on its center against the clock + make it rotate clock wise around the letter "I". I also have to make the letter "P" move up …

Software Development visual-basic
Member Avatar for aminpr
0
199
Member Avatar for sfurlow2

Here's the problem: Ask the user for a floating point number until the user enters a negative number or zero. After each number the user enters print the highest and lowest number so far, and the average so far. Do not print the highest, lowest, and average when the user …

Software Development c++
Member Avatar for pmvignesh
0
168
Member Avatar for rezax123

i wanna make a .com file. i mean command.com file. i m using visual C++ 6.0. i know the way to make the EXE files but dont know how could i make a COM file

Software Development c++
Member Avatar for rezax123
0
133
Member Avatar for emilio

i'm having a syntax error when trying to use switch condition: control cannot fall through from one case label to another... my code is [CODE]public override Boolean intersect(Shape s) { switch (s.GetType().Name) { case "RealPoint": { s = (RealPoint)s; if (!(this.gspos > s.gspos) && !(this.gspos < s.gspos)) return true; } …

Software Development
Member Avatar for emilio
0
129
Member Avatar for darktroyan

Hey, my name is Alberto i am just starting to lear all about programming with C++ and one of my assignments is to open a file data1.txt into the program using ifstream inData where inData is the name of the variable for my file. the problem i have found is …

Software Development c++
Member Avatar for ithelp
0
94
Member Avatar for sfurlow2

I have another question for my homework. Here is the problem: Keep inputting numbers from the user until the user enters a 0. After each number, print a "running average". That is, print the average of the last three numbers entered. Be careful how you handle the first two numbers …

Software Development c++
Member Avatar for sfurlow2
0
805
Member Avatar for Mr Brownstone

I am currently trying to export data from a excell db to a vb.net and create some for loops so I can generate data from it. anyway I got the whole thing working apart from I cant get the list box to show all the data in the column instead …

Software Development sql vb.net
Member Avatar for Mr Brownstone
0
131
Member Avatar for DeepakHemnani

Can anyone please explain to me the detials of what the fork command does?? Like wat is the Pid of the parent for a child created using this command.. again also it is said that it creates a replica of the currently running process what does this exactly mean?? Do …

Software Development c++
Member Avatar for sohguanh
0
121
Member Avatar for rajeshwarreddyt

Hi Folks, My requirement is like this : How to get User Name using LDAP when my application URL hitted by user in intranet for example: Suppose Application running on my system and any person in intranet hit the my application URL , now using LDAP i need to find …

Software Development java
Member Avatar for rajeshwarreddyt
0
136
Member Avatar for vikas1111

Hi All.. I am trying to access records and edit and save the changes .. Here is the code Private Sub cmd_edit_Click() Dim addnew As Boolean rsnew3.Open "select * from company", c, adOpenDynamic, adLockOptimistic rsnew3.addnew If text1.Text = "" Then MsgBox " enter the company name" text1.SetFocus rsnew3.Fields("text1").Value = text1.Text …

Member Avatar for debasisdas
0
174

The End.