132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alice1990

This is a file named InBoundData.txt [TEX] 1 B777 850 Paris KL 9395 11.40 am 6 2100 2 B747 900 Lon KL 10000 12.30 pm 7 2100 3 A380 900 LA KL 16800 10.30 am 15 2750 4 A340 850 CapeTOWN kL 9580 12.10 pm 6 3000 5 A330 800 …

Software Development c++
Member Avatar for Alice1990
0
359
Member Avatar for LuciaPwNs

So here is cliff notes of my assignment: -Use Inheritence -Person(lname, fname, address) inherited by employee(rate, hours) What I would like to do: -Find how long my arrays have to be(depends on file length) -open file -go to function retrieve lastname from file -go to another function retrieve firstname ...etc …

Software Development c++ file-system
Member Avatar for prvnkmr194
0
193
Member Avatar for rockerjhr

ok here are the files [B]globals.h[/B] [CODE] #ifndef _globals #define _globals #define DATA( L ) ( ( L ) -> datapointer ) #define NEXT( L ) ( ( L ) -> next ) typedef enum { OK, ERROR } status ; typedef enum { FALSE = 0 , TRUE=1 } …

Software Development c
Member Avatar for Adak
0
290
Member Avatar for oldezwe

-List of names in a database -names have double assigned to them, x -each name has random 10 digit double generated from 0 to x -the name with the highest number double is assigned to a variable -if two names generate the same double then the name with in the …

Software Development java queue
Member Avatar for Progr4mmer
0
174
Member Avatar for flebber

I started writing a python script to rename files. I wanted it to be able to rename multiple files in a given directory. I started off trying to use rename but then found other options Can't quite get it to happen. Hope my code is understandable, can anyone assist in …

Software Development python
Member Avatar for snippsat
0
2K
Member Avatar for Archenemie

I basically need to make the repeat button work. I've tried several approaches but i've hit a brick wall and there doesn't seem to be a function I can find to get the values of the selected item and repeat them. self.listctrl.GetItemString() will only get the string from item in …

Software Development python
Member Avatar for Archenemie
0
216
Member Avatar for failbot

So, I'm writing an implementation of List in C++ as a programming exercise, so far I have this: [CODE]#include <iostream> #include <algorithm> using namespace std; template <class T> class Link; template <class T> class List_iterator; template <class T> class List { public: typedef List_iterator<T> iterator; List(); List(const List<T> & l); …

Software Development algorithm c++
Member Avatar for failbot
0
350
Member Avatar for tdba.316

After a few months of learning and practicing C++ with the book C++ Primer Plus through Chapter 7, I decided to do myself a little simple program. I started with the decision to try splitting my program into multiple files, and I decided to collect all shared declarations/definitions (*) into …

Software Development c++ storage
Member Avatar for tdba.316
0
2K
Member Avatar for FUTURECompEng

[ICODE]I need to solve a 3x3 matrix, x,y,z of a funtion (I only have a 2x2 matrix determinant solved) I have figured out how to solve the determinant with this code and I have created another attached program that displays any size matrix I thought it might help.[/ICODE] [CODE] public …

Software Development java
Member Avatar for FUTURECompEng
0
656
Member Avatar for jasoncastro

Hello I'm new at using c++ and new at this forum as well, I'm wondering if you could help me with my atm project. Could you please show how to make my program accept pin number but display ***** or any other character,[ICODE][/ICODE] instead of showing numbers when inputting them? …

Software Development c++
Member Avatar for jasoncastro
0
2K
Member Avatar for insanely_sane

Hey guys. So I want to learn how to do a simple I/O to and from a file. I want the simplest way to do this. My teacher sent me her program but I don't think I get what she is doing and it's giving me an error. So I …

Software Development java
Member Avatar for Progr4mmer
0
226
Member Avatar for james6754

Hi, I am making a program where I am to ask the user a series of questions and add up the amount they get right blah blah.... I have to ask them the area of a square, the perimeter of the square along with other shapes.... So I was going …

Software Development
Member Avatar for james6754
0
113
Member Avatar for Sevyt

Hi everybody, i just registered here. Hoping to learn some from everything i find here and also hoping a bit to be helped out. I am creating a small program which has a few texboxes which i want to saved in a access database. My problem is i have no …

Software Development vb.net
Member Avatar for Sevyt
0
158
Member Avatar for jimJohnson

I have a very simple question for someone. I am trying to get back into java programming and I downloaded the latest textpad. Can someone please provide me the link of what else I need? I am on a Windows 7 machine.

Software Development java
Member Avatar for Progr4mmer
0
140
Member Avatar for lianpiau
Member Avatar for prvnkmr194
0
200
Member Avatar for paulablanca

Hello! I wonder if someone can help me. I have a combobox named Requirements and The values of it come from sql. I want to ask how can I detect if I already selected one item to avoid selecting it again the next time I dropdown the combo box. Thank …

Software Development vb.net
Member Avatar for prvnkmr194
0
186
Member Avatar for snippetGirl

im a newbie here in python and in this forum site. im using python 2.7.1. and im making a simple calculator that can trap if the second input is zero in division 0peration.. is it possible to call def to def within the if-else statement where ?? because im trying …

Software Development python tkinter
Member Avatar for Archenemie
0
123
Member Avatar for Archenemie

I'm trying to find a way to make a wx.Frame stay on top of my other windows until I call hide(). I do not mind if it stays on top of all windows or just the windows called by my program. I think I need to set a style on …

Software Development python
Member Avatar for Archenemie
0
183
Member Avatar for rbduck09

Can someone please explain it saying that warning C4700: uninitialized local variable 'd' used? Enhance the Quadratic program in the following manner. If the user enters a valid set of coefficients (the else” case compute the value )of the discriminant d, defined as: d = b^2 - 4ac If the …

Software Development c++
Member Avatar for rbduck09
0
224
Member Avatar for ibdatx

Hi, I am trying to serialize an operation to an xml file and have a specific xml format. I have 4 classes "Recipe" and the other 3 classes implement class "Recipe", being classes "Breakfast", "Lunch" and "Dinner". Class "Recipe" implements members "name" while the other 3 classes have the member …

Software Development xml
Member Avatar for Momerath
0
125
Member Avatar for drspock

Hi, I am having a lot of difficulties with the DataGridView control in Windows Forms. No matter what I do, I can not affect the height of rows in any way, shape, or form. I try to set the grid's properties so that it will automatically resize to row contents, …

Software Development asp.net microsoft
Member Avatar for Mitja Bonca
0
88
Member Avatar for davieJohnson

I have 2 projects that I have been working on for a while. I want to open a form that is part of project 2 when I click a button on a form in project 1. I have no doubt that that this is possible but I don't know how, …

Software Development
Member Avatar for davieJohnson
0
212
Member Avatar for buhoasa

hey guys.....i need for a part of my homework in python...to change the text in color. for each letter a specific color will be assigned, in this way, the text that will be typed in will be turned into the specific color. can anybody help me?

Software Development python
Member Avatar for Gribouillis
0
250
Member Avatar for wonder_laptop

Hello, I have written some java classes to generate a random network. The network is made of : 200 nodes . Each node has a maximum of 50 neighbors. What i want is to Randomly chose a node from that network and GRAPHICALLY show it with its one hop neighbors …

Software Development image java
Member Avatar for Taywin
0
131
Member Avatar for WSCman44

I am new to programming and trying create a program that will be able to input students test scores. After this another prompt will ask you for the students name who received that score. When finished inputting, the program should tell me the highest score and lowest score, along with …

Software Development python
Member Avatar for Archenemie
0
149
Member Avatar for wonder_laptop

I created a simple [B]Node.java[/B] class, where each Node instance has an 1-id variable of type int 2-Neighborlist of type Arraylist I wrote a code that gives me a random network, made of 200 nodes, and each node can have up to 55 neighbors. [CODE]for(i=0; i <200; i++ ) // …

Software Development java
Member Avatar for jon.kiparsky
0
264
Member Avatar for jfountai

Hi, I am new to java (normally program in perl and bash). I have an array that has X amount of rows that look like this: 2011-02-24,XXXDAO_456912 - (none) - (direct),(none),(direct),(not set),(not set),0,5447,1,3639.71,3521.86,0,0 What I need to do is take this column - XXXDAO_456912 - (none) - (direct) - and …

Software Development java perl
Member Avatar for jfountai
0
176
Member Avatar for Shizuo

it give an access denied<java.io.filepermission Item.txt write> error any suggestion for a simple id generator? [code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.lang.*; public class Shoes extends Applet implements ActionListener, ItemListener { Font SansSerif = new Font ("SansSerif", Font.BOLD, 12); Button create = new Button("Create a …

Software Development java java-swing
Member Avatar for Taywin
0
135
Member Avatar for CMAUK

Hi guys, ran into a small problem, i can read & write anything i want to a text file as well as append to the end of the line but I cant seem to figure out how to edit a specific line. Lets say in the text file i have: …

Software Development assembly file-system java xml
Member Avatar for jon.kiparsky
0
3K
Member Avatar for Rorystu

yt= 1.0 + 0.90yt-1 + e1t zt= 1.0+ 1.0zt-1 +e2t Using RATS generate 500 observations for y and z. note e1t and e2t are iid. save the generated y and z in a RATS data file (.rats) and open your data file. plot y and z and discuss the time …

Software Development
0
73
Member Avatar for Archenemie

I would like my wx.TextCtrl box to only accept numbers, preferably to only 2 decimal places. Where should i start? should i use an input mask or are there styles too control this kind of input? [CODE]value = wx.TextCtrl(parent)[/CODE]

Software Development python
Member Avatar for Archenemie
0
4K
Member Avatar for Dasharnb777

I have 10 words. How can I get all possible combinations of 5 words (n=10, k=5). The order does not matter. For example: "A", "B", "C", if k=2 (n=3 in this case), it would like AB, BC and AC. Maybe you know some usefull code or example. P.S. Sorry if …

Software Development
Member Avatar for Dasharnb777
0
281
Member Avatar for f.damati

Hello everyone, I wrote a c program in order to write 5 students records (name, ID and average) to a file. Now the difficult step is to firstly to find the highest average among students. Have anyone any clue how I can do this? Thank you

Software Development c file-system
Member Avatar for WaltP
0
94
Member Avatar for Muhammad Sumair

How can i get graphics.h header file and put it in my Visual C++ 6.0 directory ??

Software Development c++
Member Avatar for Muhammad Sumair
0
183
Member Avatar for VP2

Memory allocation. Pretty simple, but I guess there might be some people here who do not know what it is... [CODE]#include<stdio.h> #include<iostream.h> int main() { int *n = new int; *n=12; printf("n's value is %d\n",*n); *n=25; printf("n's value is %d\n",*n); delete n; printf("n was deleted\n"); system("PAUSE"); return 0; } [/CODE]

Software Development c
Member Avatar for WaltP
0
459
Member Avatar for efronefron

The problem is I use malloc in the last function(toString()). I just wanna know if there is anyway to free it? or that I dont have to? Thanks [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> /* Function prototypes */ void process(char input); void update(char words[][51], int position); char * toString(char character); /* …

Software Development c
Member Avatar for WaltP
0
214
Member Avatar for denmarkstan

please people your help will be appreciated. i have a table with data definition: column Datatype BookID int AuthorFirstname nvarchar(20) AuthorSecondName nvarchar(20) BookTitle nvarchar(50) Price nvarchar(50) My problem is that i can't see the inserted data in my table Below is the whole code: [CODE]Imports System Imports System.Collections Imports System.ComponentModel …

Software Development open-source vb.net
Member Avatar for CodeWord
0
183
Member Avatar for maniac00

Hi guys i need help with one thing in Python... I've got something like [code] number=001 example = "picture%d" % number print example ---> But it prints picture1 not picture 001.... [/code] and i need it as integer not as string because i want to use --->[code]number=number + 2 for …

Software Development python
Member Avatar for Gribouillis
0
123
Member Avatar for anirudhruia

for(j=0;j<3;j++) { repeat:if((int*)ch[j][l]>(int*)ch[j+1][l]) { strcpy(tmp,ch[j]); strcpy(ch[j],ch[j+1]); strcpy(ch[j+1],tmp); } else if((int*)ch[j][l]==(int*)ch[j+1][l]) { l++; } goto repeat; } for(i=0;i<3;i++) { printf("%s",ch[i]); } return 0; NOt gettin any output

Software Development c
Member Avatar for navedalam
0
124
Member Avatar for lochnessmonster

How do i prevent a C string input from the user from exceeding the capacity of the array? is this not possible? [code]int main() { char buffer[8]; printf("enter a string"); scanf(%s,&buffer); return 0; }[/code]

Software Development c c# c++
Member Avatar for navedalam
0
75
Member Avatar for ticktoc09

Im a noob in C and I got this simple code working.. [CODE]#include <stdio.h> #include <conio.h> #include <string.h> int main () { char str1[20]="burke",str2[20]; printf("Dog's name?:"); scanf("%s",str2); if (strcasecmp(str1, str2)==0){ printf("Gratz you got it",str2); } else{ printf("Wrong Answer!!!"); } getch(); } [/CODE] My problem is what if instead of "burke" …

Software Development c
Member Avatar for navedalam
0
118
Member Avatar for nickliutw

I write a simple average program, but for some reason I keep getting compiler error. I tried to check my work, but still can't find where do I do wrong. It shows the message on average = total/10, and it says something like unable to reach statement. [CODE] //test import …

Software Development java
Member Avatar for nickliutw
0
101
Member Avatar for sharksaw40

Hi I have recently learned c++, I'm 14 and want to get started on developing software. The problem is I'm too young to get a career in programming but I would like to start now partly to make it easier in later life and partly because I enjoy programming. The …

Software Development c++ career open-source
Member Avatar for sharksaw40
0
279
Member Avatar for yeahyeah85

Hi, i am trying to write a program for my homework. Write a function, lookupPrice that uses the product code to look up for the price. If the product code is on special promotion, a 10% discount is given. If the product code is found, the function returns the price, …

Software Development c++ promotion
Member Avatar for yeahyeah85
0
96
Member Avatar for Dasharnb777

I have 5 strings, such as: "one", "two", "three", "four", and "five". I need to get all permutations of these words. I've explored all internet resources, but all solutions are so bulky and it's hard for me to understand it and integrate it to my program. So, maybe you know …

Software Development c c# c++
Member Avatar for Momerath
0
2K
Member Avatar for xxxferraxxx

Hi, Sorry for many questions... I need help for button sound that when i click the button sounds. Thanks

Software Development gui vb.net
Member Avatar for VBrulez
0
147
Member Avatar for lochnessmonster

after examineing this code, it seems like it actually allocates space for the pointer....but how? is this a bug? how can u allocate space for an array of 0 elements [CODE]int main() { int *ptr = new int[0]; return 0; }[/CODE]

Software Development c++
Member Avatar for template<>
0
90
Member Avatar for cppgangster

Hi I am trying to put up simple app, and i get an error, could you tell me what I am doing wrong please. Here is my code: [CODE] #include <afxwin.h> class myapi: public CWinApp { public: virtual BOOL InitInstance(); }; class myframe: public CFrameWnd { public: myframe(); protected: afx_msg …

Software Development c++
Member Avatar for cppgangster
0
555
Member Avatar for b56r1

Hi, can anybody help me with this program output. Program is based on GCC compiler standards [CODE=c]#include<stdio.h> main() { int *ptr=10,j; j=ptr+19; printf("ptr=%d\n",ptr); printf("j=%d\n",j); } [/CODE] [CODE=text]output: ptr=10 j=86[/CODE] when ptr value is 10 in statement "j=ptr+19", why the j value is 86??

Software Development c
Member Avatar for gerard4143
0
120
Member Avatar for InLondon76

Was asked this question for an interview and really wasn't sure how to answer it. Can anyone suggest examples of where a bug will only present itself when using multiple CPU/core and NEVER happen on a single CPU? The question didn't mention "threading", i.e. nothing specific about threads running within …

Software Development c++
Member Avatar for template<>
0
327

The End.