132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DeadJustice

I have a seg fault I can't seem to be rid of. Basically I'm building an AVL tree and I'm stuck on the insert method. gdb says it is occuring on the line with: while( temp != NULL && temp->key != k ){ Would someone please help? Thank you in …

Software Development c++
Member Avatar for DeadJustice
0
201
Member Avatar for Phil++

Hey, I need to create some pseudo code for a class and I dunno if I've done it right or not. Any help? [code] Begin class Employee Initialise empty constructor Employee Initialise constructor Employee with parameters Define prototype for method getID(as integer) Define prototype for method getFirstName(as char array) Define …

Software Development c++
Member Avatar for mrnutty
0
152
Member Avatar for sexyzebra19

I have 2 main if statements inside this for loop (lines 7 and 56). I'm trying to get so that if after all the iterations are complete, i.e. j = 51 the first and second if statements are not satisfied, then it will print out an error message. I have …

Software Development c++
Member Avatar for GrubSchumi
0
101
Member Avatar for Mitja Bonca

I did an application, published and installed it. In my User`s Start Menu there is created a new folder with y shortcut to my application.exe inside. What`s bothering me is the name if this folder. It has a name, that I don`t know how and where to change it. I …

Software Development visual-studio
Member Avatar for Mitja Bonca
0
87
Member Avatar for srujanasadula

i have a file a.txt which contains "ysm.set.ac4-qa.sds.audit add yinst setting yti. YTI_ HOST_OVERRIDE =qa-sav-midas-002.ysm.ac4.yahoo.com" I have variable STR which is dynamically assigned the value "HOST_OVERRIDE=qa-sav-midas-002.ysm.ac4.yahoo.com" I need to grep $STR on the file a.txt as `grep "$STR" a.txt ` But because of the spaces before =, the line is …

Software Development shell-scripting
Member Avatar for issue9
0
107
Member Avatar for LucarioWill

[CODE]import java.util.Scanner; public class MathTutor { Scanner input = new Scanner(System.in); int numQuestions; int choice; int numCorrect; public MathTutor (){ numQuestions = choice = numCorrect = 0; } public int getNumQuestions(){ { System.out.print("How many questions? "); numQuestions = input.nextInt(); if (numQuestions < 1) { System.out.println("Invalid - must ask at least …

Software Development java
Member Avatar for LucarioWill
0
3K
Member Avatar for luskbo

Ok. I've been working on a pacman game using C++, and OGRE. Things have been going good, but I have run across a problem with the collision detection of pacman hitting the walls. Before I explaing, here is some of the source code. PacpersonObj Class Header [CODE] // PacPersonObj.h // …

Software Development c++
Member Avatar for mrnutty
0
661
Member Avatar for Goddan

Hello! I have another issue that i cant solve. How do i search after a string in a text file and remove it when it get a match?

Software Development shell-scripting
Member Avatar for issue9
0
266
Member Avatar for miag

i have to write a program in c++ that reads numbers(weight of an item) from a file until now i got it:) and then place this items in boxes.the goal is to use as less boxes as possible.Each box can weight no more than 10. place each new item in …

Software Development c++ queue
Member Avatar for miag
0
112
Member Avatar for halluc1nati0n

'Learning CPP' programmer here. So, bear with me. First off : [B]STRCAT : [/B] [url]http://www.cplusplus.com/reference/clibrary/cstring/strcat/[/url] When clearly the definition says : [CODE]char * strcat ( char * destination, const char * source );[/CODE] Why'd they use char str[80] in the example??? What types can be used?

Software Development c++
Member Avatar for Dave Sinkula
0
110
Member Avatar for blahbla

i have a problem : Write the definition of a function, isReverse , whose first two parameters are arrays of integers of equal size, and whose third parameter is an integer indicating the size of each array. The function returns true if and only if one array is the reverse …

Software Development c++
Member Avatar for blahbla
0
220
Member Avatar for Darth Vader

If I have two dates like this, I wonder how it will be possible to count how many of these days that are: Monday,Tuesday,Wednesday,Thursday,Friday The dates are for example: 11/01/2009 11/18/2009

Software Development
Member Avatar for Darth Vader
0
121
Member Avatar for Clawsy

Hi, I first convert the image on the server application in bytes: [code] //server public void sendImage(File file) throws IOException { ByteArrayOutputStream baos=new ByteArrayOutputStream(1000); BufferedImage img=ImageIO.read(new File(file.getAbsolutePath())); ImageIO.write(img, "jpg", baos); baos.flush(); os.write(baos.toByteArray());// this is a "new DataOutputStream(clientSocket.getOutputStream());" System.out.println("Done! Length is:"+baos.toByteArray().length); baos.close(); } [/code] Then my application freezes when trying to …

Software Development client-server image java
Member Avatar for Clawsy
0
223
Member Avatar for Behi Jon

Hi, When I want to run a program in eclipse, I get "Binary not found" error . I have MinGW in c: root and I have added C:/mingw/bin to environment path .

Software Development c++ ide
Member Avatar for Behi Jon
0
75
Member Avatar for momike205

Here is the program: int i,n; double v_in[20+1],v_out[20+1]; cout << "\ninput n ? "; cin >> n; for(i=1;i<=n;i++) { cout << "input v_in[" << i << "] ? "; cin >> v_in[i]; } // reverse v_in and store the result in v_out for(i=1;i<=n;i++) { v_out[i] = v_in[n-i+1]; } cout << …

Software Development c++
Member Avatar for momike205
0
105
Member Avatar for saggiatorius

Hi, I ask you for a problem I can't resolve. I'm developing a form application in C# and I need to access a web application (IIS) within the intranet and not to insert crediantials manually (I keep them in code). I tried using both Win32NativeMethods.LogonUser and advapi32.dll's Logon User methods, …

Software Development sharepoint wordpress
Member Avatar for saggiatorius
0
1K
Member Avatar for Chowley

Hello. I cannot for the life of me figure this out. It was all running fine until i added another while loop for the directory part, same as the first one. Then i removed the loop and started getting this error. syntax error near unexpected token `fi' I have an …

Software Development shell-scripting
Member Avatar for Chowley
0
540
Member Avatar for hanntaa

im using a JFileChooser to find a file from anywhere on the system and load it but i also need to be able to export the data within my program to an unknown location, how would i go about doing that?? is it simular to the JFileChooser? any help would …

Software Development java
Member Avatar for hanntaa
0
106
Member Avatar for serkan sendur

is there any vay to access iterator's index value without using another variable in the for loop?

Software Development c++
Member Avatar for guest7
0
180
Member Avatar for zendet

lets say i had this int times cout<<"enter times you want to repeat"; cin>>times; ----> cout<<"Hello what age are you?"; cin>>age; <------- how would i get it to repeat this section of codes the same amount as the user inputs? but make it that if he input repeat by 5 …

Software Development c++
Member Avatar for zendet
0
102
Member Avatar for joshjgordon

This is my first post here, but I have been using the forum for many months and up untill now has been able to answer all my problems without me actually asking anything. So thanks in advance for all the great work you guys do, you have been fantastic in …

Software Development c++
Member Avatar for JasonHippy
0
144
Member Avatar for wdb07159

I am adding a usercontrol combo box to another usercontrol form and when I do this the program actually runs and goes to an initialise routine in a class and shows the error mentioned in subject. I have a collection of records and a new combo box and this is …

Software Development visual-basic
Member Avatar for wdb07159
0
303
Member Avatar for Darth Vader

I am looking for how it is possible to calculate the difference in minutes for a date and time. This example will cover the problem. [B]20091118 18:15 20091125 01:35[/B] I know this is possible using Date functions and TimeSpan but trying to find examples but cant find an example of …

Software Development
Member Avatar for Darth Vader
0
108
Member Avatar for ffs82defxp

Its not running [CODE]import math import os cls = os.system("cls") title = os.system("title Pythagorean Theorum Solver") def MainLoop(): cls print "Enter 3 coordinate plane points (x - y) format" print "" firstPair = input("--> ") SecondPair = input("--> ") MathPart() def MathPart(): '''structure of the formula: squareRoot of --> (x-y)^2 …

Software Development os-x python
Member Avatar for vegaseat
0
143
Member Avatar for zendet

Hello, im doing a project and need some help. my project is have to make a program for 5 judges. at the start the first thing asked is how many competitors are there. then it asks the first judge what hes gives for the first competitior, then what the second …

Software Development c++
Member Avatar for dkalita
0
81
Member Avatar for hanntaa

Hey guys iv got this project to make an address book that has all kinds of functions and iv got them all working apart from one bit, it needs to be able to read a file when it opens as well as import other data from other files. The data …

Software Development file-system java
Member Avatar for hanntaa
0
212
Member Avatar for laks_samy

Hi i am working in vb.net (vs 2005) i have designed my mdi form ribbon file (System.Windows.Forms.Ribbon.dll file ) its working fine but when i close my mdi form that time i got error error message Title "Windows32 Exception was unhandled" The system cannot find the file specified any one …

Software Development vb.net
Member Avatar for laks_samy
0
83
Member Avatar for LisaJane

I have this program that is supposed to read part numbers from a text file. 101-110, 301-310, 501-510 and put them into a hash table. It will prompt for one of four algorithms to be used and then continue to load the part numbers. Everything seems to be working okay, …

Software Development algorithm c++ file-system ios
Member Avatar for xaveri
0
5K
Member Avatar for Fire_Michel

i am making a program need 128 button when u click on button color of button change to red when you click it a gain it back to normal color is there a way to code one button and the other take the same function thank at all

Software Development
Member Avatar for Fire_Michel
0
152
Member Avatar for 21KristianN

Dear freinds i have a big problem!! i hope somebody can help me out.. The situation: I have a small application where i store customers and orders.. In my database i have a tabel called Customers and a tabel called Orders. These 2 dabases are joined on Customer ID - …

Software Development dataset display listview vb.net
Member Avatar for 21KristianN
0
115
Member Avatar for gitech

Hai Friends, Iam using swing application in my project with short cut keys to perform some action, it takes few seconds to process(retrieve data from server to client) ,when i press the shortcut key for three times means the action is performing thrice, i want to perform single action.is there …

Software Development client-server java java-swing queue
Member Avatar for gangsta1903
0
92
Member Avatar for reza.adinata

Hallo all, I have a question for implementing Inheritance in C++. I think I miss the concept of inheritance C++ somehow, because the second class can not take the parameter from the first class.. I need to use a class Carbol and Carbol2. In Carbol2, I need to add a …

Software Development c++
Member Avatar for programmersbook
0
121
Member Avatar for manste

I am developing a software for a restaurant which is owned by my sister. I would like a functionality that will make her send all purchased items into a listbox,and afterwards which will calculate for the total plus VAT. Whereby, there will be another button which will print out a …

Software Development printer vb.net
Member Avatar for manste
0
70
Member Avatar for blazted

I created a text box event handler to only allow my textbox to accept Numbers only. The Event handler works great and does not allow anything but numbers except when the form first loads and the character entered is non-numeric it then allows the first charcter to be entered can …

Software Development
Member Avatar for Nick Evan
0
555
Member Avatar for foxmulder

Hi! I am doing a C++-program which I have to use functions. The program is the following: Write a function that calculates the fuelconsumption, it takes two numbers, litres and kilometers, and gives the consumption in litre per 100 km. The functions must write on screen in main. Here is …

Software Development c++
Member Avatar for Seten
0
140
Member Avatar for bejoy.baby

Hi i am trying to write a simple programme to allow the user to open and read data from a RS232 port on a medical equipment and save the data into text file. Iam not a techie. I am totally new to programming save a few projects in foxpro(lol.....yeah oldshool). …

Software Development vb.net
Member Avatar for redback93
0
1K
Member Avatar for er.daljeetsingh

i have a datagridview with checkboxes in my window form and i want to sort my result with textbox without losting checkbox checked value. i place code in textbox_textchange() event. first i fill datatable with label click() [code] Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label8.Click …

Software Development asp.net vb.net
0
120
Member Avatar for Mattpd

Sorry, solved my own problem. [CODE] #include <time.h> time_t current = time(NULL); char date[11]; strftime (date, 11, "%m/%d/%Y", localtime (&current)); [/CODE]

Software Development c
0
71
Member Avatar for BrendaByrne

Hi, yes I'm a student with homework problems, but I am trying. I need to display various shapes in a picture box, and am trying to do so via a combobox that the user can select from. My problem is clearing a previous selection when a new selection is made. …

Software Development vb.net
Member Avatar for BrendaByrne
0
114
Member Avatar for rel0aded911

can we type while ( "variable" = '\n') ? or an error will occur?

Software Development c
Member Avatar for Ancient Dragon
0
81
Member Avatar for Valaraukar

Hi, I have created a generic linked list in which different objects can be added to a list as long as they inherit from my object class. My problem is this: I am able to add nodes and find nodes etc. but I can't figure out how to return an …

Software Development c++ linked-list
Member Avatar for GrubSchumi
0
134
Member Avatar for Darth Vader

Hi, I wonder what the way is to remove dublettes from a List. ? I have filled a List like this: [code] List<String^>^ List1 = gcnew List<String^>(); List1->Add("123"); List1->Add("124"); List1->Add("123"); [/code]

Software Development c++
Member Avatar for Darth Vader
0
123
Member Avatar for murid

I try to create an forgot password application. in the application, in order to get user password, user must do some input. there is 4 input : Username, Name, Security Question, and Security Answer. [CODE]Try If TextBox8.Text <> "" Then kueri = "select Username, Pass, Nama, SecQue, SecAns from Account …

Software Development vb.net
Member Avatar for Smith5646
0
111
Member Avatar for guest7

Hi, I have a 2 dimensional vector containing entries such as : 10X 01X 001 I merge two rows at a time and get a new row of elements. In other words, when i combine "10X" and "01X" i might get "001" but since "001" is already there i do …

Software Development c++
Member Avatar for programmersbook
0
86
Member Avatar for lewashby

In the following program, I'M getting the following error message when I try to run it. [COLOR="Red"]TypeError: object.__new__() takes no parameters[/COLOR] [CODE] # Classy Critter # Demonstrates class attributes and static methods class Critter(object): """A virtual pet""" total = 0 def status(): print "\nThe total number of critters is", Critter.total …

Software Development python
Member Avatar for pythopian
0
551
Member Avatar for "Alex"

For example Im trying to make the user input his name, last name, and salary and then make it display " First Name is" followed by what they put in as their first name "Last Name is" followed by what he put as his last name... and now im getting …

Software Development c++ display
Member Avatar for Narue
0
133
Member Avatar for PDB1982

I have to creat a program where the user inputs two large ints, and they are converted into string in order to add them together (assuming they are larger than 20 characters). One thing, is that it tells me to convert the numbers to a string and store it in …

Software Development c++
Member Avatar for mrnutty
0
100
Member Avatar for didijc

Hey everyone, Happy Thanksgiving first and foremost... Second, I am attempting to build my own HTML Parser in C++ but I have no idea where to start... I've looked at some of the examples and libraries out there on the web, but none of them really helped... If someone could …

Software Development c c# c++ html-css
Member Avatar for didijc
0
550
Member Avatar for sabian4k

[code] void triangle(ostream &outs, unsigned int m, unsigned int n) { if ( m <= n) { int NumberOfLines = (2 * (( n - m) + 1)); int Mid = (NumberOfLines / 2); for (int i = 0; i < NumberOfLines; i++) { if (i < Mid) { for …

Software Development c++
Member Avatar for DaBunBun
0
171
Member Avatar for furblender

Completely frustrating - I have been googling for a solution for this for a couple of hours now. I have this little bit of code that I wish to read a text file into a Python Dictionary. I used this dictionary format internally within the another piece of code I …

Software Development file-system python
Member Avatar for furblender
0
3K

The End.