132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pythonprog

i need help writing a program that asks the user to enter an objects mass, and then calculates its weight object> 1000 newtons display a message that it is to heavy object<10 newtons display indiccating that it is to light weight = mass x 9.8

Software Development python
Member Avatar for jlm699
0
75
Member Avatar for Feenix45

[B]Solving systems of Linear equations using Iteration: You are required to write a Python program which will solve system of linear equations with 3 unknowns (to be entered by the user). Your program should display a menu which will allow the user to choose whether he wants to (1) coefficients …

Software Development python
Member Avatar for woooee
0
727
Member Avatar for jthechemist

Hey all. I've made stacks aplenty in Java before; my C++ is a bit rusty though, so I thought this would be a good project for me. Turns out I was rustier than I thought! So here's the situation: I've made classes LinkedNode, jStack, and Test. Test simply holds an …

Software Development c++
Member Avatar for ArkM
0
115
Member Avatar for letlet_pogs

hello guyz,,who knows how to tokenize???i mean,,i am about to start to make "String Calculator" but i don't know how to tokenize,,,do you know any sites that could explain best about tokens??thank you ahead,,,,

Software Development java
Member Avatar for Ezzaral
0
146
Member Avatar for lllllIllIlllI

Hi everyone What i am doing now is creating a program that the user can change the way buttons look half way through. My problem is i couldnt work out how to update the wx.Button's style while the program is running. I was wondering if anyone could help me for …

Software Development python
Member Avatar for lllllIllIlllI
0
156
Member Avatar for mugun

Hello everyone...i need help with text file in c++,i know that we can append like ios::app and into a text file.....i need help in inserting a particular string to a particular line in a text file.....is that possible....So far i only knw tht it will append at the bottom of …

Software Development app-store c++ file-system ios
Member Avatar for mugun
0
180
Member Avatar for proudShy

Hi, People can you please help me on how to start the connections using SQL Server and C#.NET. I have the following tools in my PC but I don't know how to start,from the very beginning. Can you please send me a link on how to start. Badly needed. Your …

Software Development c# sql
Member Avatar for ramiljoaquin
0
144
Member Avatar for nordiquefb

I'm currently working on a project to display Pascal's Triangle and the binomials up to a certain row that the user inputs. I have the triangle done, but I'm having a bit of trouble getting the binomials to work. This is what the output should look like for the binomials: …

Software Development pascal
Member Avatar for nordiquefb
0
146
Member Avatar for ahamed101

Hi everyone, Need a small help. I need to read the data from stdin (standard input) without hitting enter. Need to read the data as in and when they are typed in until EOF (CTRL + D as I am using UNIX) is encountered. I tried, getc() - requires ENTER …

Software Development c unix
Member Avatar for ahamed101
0
491
Member Avatar for dickersonka

I am determining what method to call by using the runtime class. My problem is whenever I pass in a null object, obviously it will throw a null reference exception. How are you able to determine at runtime the class of a null object. Although its null i need to …

Software Development java
Member Avatar for dickersonka
0
1K
Member Avatar for DemonGal711

I'm trying to read a line from a text document so I can move it into an array. So I've tried to get this to work out and it stops when it sees the "while" line. [CODE]void input (ifstream& file, int& end, string word[]) { int x = 0; string …

Software Development c++
Member Avatar for DemonGal711
0
105
Member Avatar for DemonGal711

Okay, I have this program I have to write. I think I get the basis of the idea, but I'm a little confused about parts of the instructions. Here's the instructions. [B]Write a C++ program that uses bit strings to represent sets, and finds A^B, AUB, A-B, where A and …

Software Development c++
Member Avatar for DemonGal711
0
119
Member Avatar for acoxia

Hello i have a quick question working on a hangman project and have most of it done but i was wondering how to count how many letters a word has in order to have the right amount of spaces wondering if a function or something exists or a link to …

Software Development c++
Member Avatar for acoxia
0
115
Member Avatar for phynias

i have a modsecurity log that i want to pull a couple things from. here is an example line [05/Mar/2008:12:50:07 --0800] [[url]www.mydomain.com/sid#1ef44178][/url][rid#2042fa58][//member/index.php][2] Warning. Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required. [file "/usr/local/apache2/modsec/modsecurity_crs_21_protocol_anomalies.conf"] [line "41"] [id "960015"] [msg "Request Missing an Accept Header"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER"] so i want to …

Software Development shell-scripting
Member Avatar for manik007
0
129
Member Avatar for BlackNinja

hi im new to java and just need a little help in the right direction. I am trying to display an input of int on number at a time. So for example the user would enter 1998 and the output would be: 1 9 9 8 and we have to …

Software Development java
Member Avatar for Ezzaral
0
135
Member Avatar for renoss

Hi, My problem is that I need to tell class A to repaint, but from class B. Class B will be a thread that updates components of class A and will eventually tell A to repaint. The basic idea of my code is as follows: [CODE] class A extends JPanel{ …

Software Development java java-swing
Member Avatar for Ezzaral
0
122
Member Avatar for josejp1

Hello friends, I inform you that on the web [url]http://delphimagic.blogspot.com[/url] have a selection of good tricks in Delphi. I hope you like. Javier

Software Development delphi pascal
Member Avatar for Duoas
0
84
Member Avatar for c++ prog

hi, im creating a simple game here...its a shooting game...so how can I make my program read the keyboard to control the player's movement around?tnx in advance

Software Development c++
Member Avatar for Duoas
0
264
Member Avatar for marivic
Member Avatar for shxrainz

Hi, I have created a login form that has adminid and password.. I use visual studio 2005,database access. login form work smoothly when i enter the correct adminid and password but never display an error message if wrong data was entered or no data was entered. I need a help …

Member Avatar for shxrainz
0
150
Member Avatar for asifjavaid

hi guys, i have declared a char pointer. i am using this in itoa() function to convert integer data into hex data e.g [code] char * hexData= NULL; itoa(1484820,hexData,16);[/code] this results in equalent of 1484820 in hex decimal and store it in hexData. now when I want to some process …

Software Development c++
Member Avatar for ArkM
0
173
Member Avatar for paferlini

Hey guys! im triyng to run these example codes for a simple connection using these libs, and these errors occurs: codes: [ICODE] #server import SimpleXMLRPCServer from datetime import datetime server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8888)) server.register_instance(datetime) server.serve_forever()[/ICODE] [ICODE] #client import xmlrpclib server = xmlrpclib.ServerProxy("http://localhost:8888") print server.now()[/ICODE] en the errors: Traceback (most recent …

Software Development client-server python xml
Member Avatar for paferlini
0
606
Member Avatar for laghaterohan

PLZ HELP ME OUT ON THIS...ITS VERY URGENT..... Hi...plz help me out on this...i have stuck up here for past many days... 1) Plz tell me how to update the Database Table from the datagrid... here is my code : ITS A ATTENDANCE FORM CODE... I AM RETRIVING MY ATTENDANCE …

Software Development dataset vb.net
Member Avatar for isaackhazi
0
121
Member Avatar for mailtosridar

[B]any help me urgent i have a list box in my form in that i want to display empname and empid from database[/B]

Software Development vb.net
Member Avatar for Jx_Man
0
95
Member Avatar for chenmanalo

:'( please help... i want to know the syntax in the checkbox and option button.... any idea please.... :?:

Software Development vb.net visual-basic
Member Avatar for Jx_Man
0
52
Member Avatar for xcyrus_tan_rx

pls help me with my code! it wont align! T_T i cant get it to work correctly! pls help guys! heres the screenshot! the date wont align huhu! [IMG]http://img72.imageshack.us/img72/4647/helprk3.jpg[/IMG] [code] #include<stdio.h> #include<string.h> #include<conio.h> int getNumberOfDays(int month,int year) { switch(month) { case 1 : return(31); case 2 : if(year%4==0) return(29); else …

Software Development c
Member Avatar for xcyrus_tan_rx
0
147
Member Avatar for knish

i am using glob.glob('') function to get a list of all files from a folder. I need to get only those names which do not contain '_ab' in it. How is it possible. I understand the need for regular expressions here. i tried (?!....) . what should work here. example …

Software Development python
Member Avatar for ghostdog74
0
141
Member Avatar for matejkralik

Hey professionals, I use DataGridView that allows me to add new rows in table. But when I want to delete it by clicking on my deleting button with following code: DataGridView.Rows.RemoveAt(DataGridView.CurrentCell.RowIndex); ...it makes problems, others rows aren't problematic to delete but this is. But not on purpose I want to …

Software Development dataset xml
Member Avatar for Renukavani
0
101
Member Avatar for dinilkarun

Hi friends, I have a custom tree control(Tree control) and a check list box placed next to each other on a frame.i.e., tree control on the left side of the frame and check list box on the right. I need to place sizers such that on exapnsion of the frame, …

Software Development python
Member Avatar for lllllIllIlllI
0
114
Member Avatar for gouki2005

[CODE] Imports System.Data.OleDb Module Module1 Sub Main() Dim Cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\mibase.mdb;Persist Security Info=False") Cn.Open() Dim comando As OleDbCommand comando = New OleDbCommand() comando.CommandText = String.Format("SELECT Telefono FROM empleados ") comando.Connection = Cn Dim lector As OleDbDataReader lector = comando.ExecuteReader Do While lector.Read Console.WriteLine(lector("Telefono")) Loop Dim nombres As New …

Software Development open-source vb.net
Member Avatar for gouki2005
0
869
Member Avatar for jireh

I have a datagridview with three columns namly column A, column B, column C. column A has a column type of DataGridViewTextBoxColumn. while column B and column C has a column type of DataGridViewComboBoxColumn. The problem is this.... During form_load I want the column type of column B and column …

Software Development
Member Avatar for LizR
0
90
Member Avatar for asifjavaid

hi guys, I want to call win32 dll in C#. It has parameters encode(char *argv[]). what i have to write in in C# in the placa of char *argv[]. I have make my efforts see my code below but vain. [code] // in C++ int ConvertBinToAmt(char JFIF_NTSC_XML_File1[],char JFIF_NTSC_XML_File2[], char DestinationFolderName[],char …

Software Development c# c++ xml
Member Avatar for LizR
0
205
Member Avatar for plike922

I need help with program i cant find a way to get rid of the error and if i think a little bit more my head will explode this is a 2day program for me [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include "string.h" using namespace std; …

Software Development c visual-studio
Member Avatar for rpiper138
0
83
Member Avatar for HolyEnd

I'm making a program that involves the copy and pasting of a piece of text into a TEditBox and submitting the text into 4 different columns in a TListBox. This program is actually for a game called FlashFlashRevolution (great free, online, ddr-like game if anyone wants to try it out). …

Software Development pascal
Member Avatar for ExplainThat
0
155
Member Avatar for Raj.Acharya

Hi, how to declare optional parameters in C#. Like... public void test(int a, Optional int b) Thanks in advance.

Software Development c#
Member Avatar for LizR
0
101
Member Avatar for dinilkarun

Hi friends... I have a frame with a panel which contains a static bitmap. On resizing or expansion of frame, I want the bit map to be at the centre position with refernece to the frame always irrespective of the size of the frame. Please help!!! Regards, Dinil

Software Development python
Member Avatar for dinilkarun
0
81
Member Avatar for JONZ

Can anyone help me make a pseudocode for this function....cause its really difficult:'( [CODE]int updateRecord( FILE *fPtr ) { int account; /* account number */ double transaction; /* transaction amount */ /* create clientData with no information */ struct clientData c = { 0, "", "", 0.0 }; /* obtain …

Software Development c
Member Avatar for rpiper138
0
175
Member Avatar for abcd_nima

Is it possible for a function to return a string,an array of characters to the calling function? i mean something like char f1() { char www="nima"; return(www); } if not,please tell me how is this possible?

Software Development c++
Member Avatar for ArkM
0
118
Member Avatar for Clipper34

Hey guys, well first off i'm a new member here. My question is how do you go about killing/stopping a process? Thanks, Clipper34.

Software Development c++
Member Avatar for Ancient Dragon
0
202
Member Avatar for JackDurden

Can I use getline to get two lines of string data? for example: [CODE]string line; string myfile; ifstream file; file.open(myfile.c_str()); while(!myfile.eof()) { getline(myfile, line) }[/CODE]

Software Development c++
Member Avatar for Ancient Dragon
0
506
Member Avatar for Prathvi

Hi, With the same GetOpenFileName(...) I have one problem. when this displays the dialog with files, the time displayed in the date field will not be local time. Instead GMT time. How I can Change this. i.e in the mobile, time is set as GMT + 5.30 New Delhi. At …

Software Development c++ xml
Member Avatar for Ancient Dragon
0
79
Member Avatar for JustLearning

Here is the header file I was given to use [code] // // ministack.h // #ifndef MINISTACK_H #define MINISTACK_H const int MINI_STACK_SIZE = 5; // Fixed number of element in stack class MiniStack { private: int num; // Number of values stored in MiniStack char* stackPtr; // Pointer to array …

Software Development c++
Member Avatar for JustLearning
0
160
Member Avatar for smile4evr

hi every1... i hv a doubt in updating my date... i hv a textbox asking for the number of days(days1).... n a dtpicker1 that should show the date after the number of days(days1) from the date the form is run and submitted.... there is a lable today that takes the …

Software Development visual-basic
Member Avatar for smile4evr
0
112
Member Avatar for MylesDBaker

Hello everyone. I am trying to create a program that reads these values / strings from a file: 170 Lipstick 250 Orange Crush 350 Chickadee 450 Green Grass 550 Monaco 750 Toffee Crunch Then I am supposed to create a menu that prompts the user to provide either the number …

Software Development c++ unix
Member Avatar for MylesDBaker
0
152
Member Avatar for bpacheco1227

I need to average the numbers in the array and display and also detemine the letter grade and display. I've managed to average the numbers but I am unable to display the lettergrade, (won't compile) I think it has to do with "Average Grade" being a constant string This is …

Software Development vb.net
Member Avatar for bpacheco1227
0
156
Member Avatar for Tekito

I have created a class module, and my program creates many instances of the class. Each object has a lot of data, and I want to be able to create a new instance that is a copy of an existing instance. I can't figure out a automatic way to do …

Software Development visual-basic
Member Avatar for Tekito
0
712
Member Avatar for Dannielf

ok, so I just started looping today and the simpler programs are all right, but we got a pretty complex assignment which I am pretty lost on. here's the assignment: [I]Write a program that updates a person’s bank balance based on withdrawals and deposits. Ask the user to enter the …

Software Development c++
Member Avatar for VernonDozier
0
162
Member Avatar for predator78

Hey all, still working on my lil program. But now that I'm getting into loops I'm pretty confused on this one. Needless to say I think this is the first while loop I have used since I started python about a week ago. What I'm trying to do at this …

Software Development python
Member Avatar for predator78
0
117
Member Avatar for monkey_king

I've been overloading some methods for a template class. This means I can write my code in this way. [CODE=c++] myClass var3=var2+4; [/CODE] Is it possible to do it the otherway around like [CODE=c++] myClass var3=4+var2; [/CODE] I know that the end result will be the same, I was just …

Software Development c++
Member Avatar for monkey_king
0
149
Member Avatar for anilvc31

Dear friends I am electrical engineer of 54 yr age. Recently, I have developed interest in vb6. Vb.net is too complex for me to understand. At present I am trying to develop a software in which family details are to entered. family.mdb is having tables, name, place & family. To …

Software Development vb.net visual-basic
Member Avatar for jireh
0
1K

The End.