132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kruptein

with the function: list(string) you put every letter from the string in a list, I want to put each 2 letters in a list so If I had the string: ThisIsATestt I want to get a list: ['Th','is','Is','AT','es','tt'] (There will never be a letter alone, so you don't have to …

Software Development python
Member Avatar for jice
0
104
Member Avatar for jeeter19

I have been given an assignment where I have to create a small shell that the user will be able to enter in a path and 2 parameters. The shell must be able to process this input and run the program at the given path using execvp, and must also …

Software Development c
Member Avatar for Ancient Dragon
0
297
Member Avatar for riahc3

Hey I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it is called like that) and it is pretty good. …

Software Development c ide visual-studio
Member Avatar for jeeter19
0
395
Member Avatar for geek_till_itMHZ

I am trying to make a very simple program for a school assignment. I simply need to display 3 random icons of playing cards. All the icons are stored in an image file as 1.png-52.png Is there anyway to do this with out identifying each individual image, adding it to …

Software Development java
Member Avatar for truebot
0
84
Member Avatar for george21

I can't figure out how to display the ImageIcons after I get three random cards. I tried to add the .png to the random number and that didn't work. I would appreciate your help. import java.awt.GridLayout; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class Exercise139 { public static void main(String[] …

Software Development java java-swing
Member Avatar for IrishWay
0
109
Member Avatar for Phil++

Hello, I'm wonder what static references are. Are they like: [code] static int number = 0; [/code] I'm really confused. Thanks for any help.

Software Development c c# c++
Member Avatar for Phil++
0
150
Member Avatar for itslucky

Dear Friend, i have a crystal report, in which i have amount of Different Items, now i want to calculate total amount of all that items and show Total Amount at the end of the Report. so please tell me how can i calculate Total amount of different items in …

Software Development c c# c++
Member Avatar for itslucky
0
90
Member Avatar for CppBuilder2006

why does this have an exception in VC++ 2008 Express: [CODE]#include <conio.h> #include <iostream> using namespace std; class A { private: int a; class B { public: void f(); }; public: B b; //A(){} // default constructor class C { public: int a; }; B g(B); }; void A::B::f() { …

Software Development c++
Member Avatar for Nick Evan
0
122
Member Avatar for hosh

Hi, can anyone help me to solve this problem? I have this code: [code=c] FILE *in; char i =fgetc(in); int perm=0; perm =atoi(&i); printf("%d\n", perm); [/code] if first character in my "in" file is 2, the output is 28; if ------------------------------- is 3, -------------- 38, and so on... any ideas …

Software Development c
Member Avatar for hosh
0
135
Member Avatar for vvilladolid

hi.. our frst semester was now ending.. n our instructor leave dis problem for us to had.. she told us to create a program that supplies a number and outputs its equivalent in words.. the maximum input number is 9000... sumbody knew dis?? plzz help... thank u n advance...

Software Development c++
Member Avatar for mrnutty
0
187
Member Avatar for easyb

Hi techies, Kindly help me the situation below: [CODE]//Interest.java /*Mr. Brown invests $50,000.00 in a savings account yielding 5 percent interest. * Assuming that all interest is left on deposit, write java codes to calculate and print * the amount of money in the account at the end of each …

Software Development java
Member Avatar for easyb
0
144
Member Avatar for procopio

Hi, it is really a simple question, but i can't find any deep word that can best replace the word "login". If you have some ideas please tell me. I will very much appreciate any kind of help. Thank you:)

Software Development
Member Avatar for procopio
0
68
Member Avatar for beginerC#

Hi! I am a beginer in C# and I have 2 forms in a project. The first one contains a [U]dataGridview[/U] with 3 columns: nr,date and obs and a [U]button[/U]. when i select a row and click on a button i want to copy the current nr,date and obs in …

Software Development
Member Avatar for beginerC#
0
147
Member Avatar for rociel

Hello, I'm trying to create a program that calculates the hypotenuse and area of a right triangle. I need to round the hypotenuse to 2 places after the decimal, and one place for the area However, I can't seem to get it to work If I tried c = int(round(math.sqrt(a**2) …

Software Development python
Member Avatar for rociel
0
279
Member Avatar for abu taher

if I write 500 in a textbox then a label.caption show "Profit". If I write -500 the the label.caption show Loss. I write code[CODE]If Format(Text1, "0000000") Then Label1.Caption = "Profit"[/CODE] but for -500 what I need to write?

Software Development visual-basic
Member Avatar for Vineeth K
0
130
Member Avatar for nareshkumar131

I have a combo box on a form and I want to load some items in this combo box at run time from a database table of access. For this I have written below code. But when I start my program this message appears. Run-time error '91': Object variable or …

Software Development visual-basic
Member Avatar for nareshkumar131
0
256
Member Avatar for scvinod

I have a string like "system\admin". Now I want get the "admin" part alone from the string using IndexOf() method.Can anyone please help me out.Thank you.

Software Development c#
Member Avatar for Rashakil Fol
0
265
Member Avatar for stoymigo

Hi , I am busy converting a VB6 project to c#. Now in vb6 , the columns have intellisense like so... [code=VB] rsIBBSData!DrOrCr = 1 'rs is the recordset [/code] But in c# , i would either have to create an sql query , or use datarow with a column …

Software Development c# dataset
Member Avatar for stoymigo
0
186
Member Avatar for sivananda2009

[CODE]private void insertbtn_Click(object sender, EventArgs e) { string name = textBox1.Text.ToString(); string course; for (int i = 0; i < checkedListBox1.CheckedItems.Count; i++) { course += checkedListBox1.CheckedItems[i].ToString() + " "; } string constring = "PROVIDER= MSDAORA;USER ID = SYSTEM; PASSWORD = mca"; string query = "insert into checkapp1 values('" + name …

Software Development
Member Avatar for sknake
0
116
Member Avatar for Aakriti

How to pass array of pointers to structures using functions in C? #include<stdio.h> #define dept_count 3 struct employee { char name[20], post[20]; int emp_no; int basic_pay; }; void search( struct employee * , char , int ); void main() { struct employee *deptt[dept_count]; int i,j,emp_count[10],dep_srch; char emp_srch[20]; clrscr(); for(i = …

Software Development c
Member Avatar for Tom Gunn
0
255
Member Avatar for srk619

how do you write a command that turn left or right at an angle in a superclass is it like this: def left(self): self.position += self.angle return (self.position) its part of Object oriented Python

Software Development python
Member Avatar for vegaseat
0
85
Member Avatar for Ednutt

Good day to you all, I feel very excited being in the midst of gurus and great enthusiasts of programming... I have a little challenge in completing a program intended to read records from a file <notepad> and place them in an orderly manner on a pdf file <so as …

Software Development pdf regex vb.net visual-basic
Member Avatar for vb5prgrmr
0
72
Member Avatar for imon

hello ! i have a probelm which i'm unable to understand.i'm programming in Dev-C++.when i'm compiling the programm i've written it's showing 'compiled successfully' without any error message,but when i want to run it is giving the message 'project not compiled' and hence not running the program.I can't understand what's …

Software Development c++
Member Avatar for giegiey
0
455
Member Avatar for mostafanageeb

I am Making an implementation to the lz77 compression algorithm, but I couldn't calculate the offset, pleasei f someone can help tell me, [CODE] public class Main3 { public static void main(String[] args) { StringBuffer input = new StringBuffer("ADABRARRARRAD"); StringBuffer toBe = new StringBuffer(input); StringBuffer done = new StringBuffer(""); String …

Software Development algorithm java
0
158
Member Avatar for jmark13

I've gotten some great responses to my questions here, so I'm really grateful for this resource of programmers on this website. I've been working on an algorithm and am almost completed with it, but I'm finding out the very last steps are the most difficult for me because they require …

Software Development algorithm python
Member Avatar for masterofpuppets
0
110
Member Avatar for abu taher

I have two dtpicker. here I want I select two date from dtpicker and the total sum of amount will show in two diffrent textbox. like: I have two field, expense and income. the total amount of expenses will show in a textbox by selected date and other textbox show …

Software Development visual-basic
Member Avatar for Ednutt
0
280
Member Avatar for RunTimeError

Hello, I'm just wondering about static and non-static methods. I have a basic understand that non-static methods require a new object to be initialized to be used such as: [CODE=C#] public static void main() { mainProgram main = new mainProgram(); main.doNothing(); } public void doNothing() { } ][/CODE] V.S. [CODE=C#] …

Software Development
Member Avatar for DdoubleD
0
349
Member Avatar for jaimca

Hi I need a vb.net example code to execute a batch file when a button is clicked in my application .. The .bat file is in a different location and it must be called and executed.... Thanks in advance..

Software Development vb.net
Member Avatar for jaimca
0
2K
Member Avatar for Nakeo

I need to read in numbers from a .txt file and sort the numbers to find the 3 highest and i can not figure out how to accomplish this. I'm so lost i dont even know where to start. :(

Software Development c++
Member Avatar for Nakeo
0
184
Member Avatar for glasnoster

Hi all! Is there any way to add http headers to a request generated by the web browser component in C#? The setup is as follows: I have developed a piece of thadware that gives users access to the internet. The hardware is connected to an admin pc. On this …

Software Development client-server web-browser web-server
Member Avatar for glasnoster
0
81
Member Avatar for A_Dubbs

Hello everyone, I need some help with instances and loops (I am a very new programmer). Basically, I have a problem where I need to make a program that has a circle move around a window every time the user clicks. This circle is suppose to have a text box …

Software Development python
Member Avatar for Gribouillis
0
384
Member Avatar for nola_Coder

I need help with how to handle parentheses when converting an infix equation to postfix through the use of a stack. The program reads the equations in from a .txt file. It works for the equations without parentheses, but not for those with parentheses. I've attached the text file to …

Software Development java
Member Avatar for ejosiah
0
343
Member Avatar for EngSara

Hi, I want to write a java program that send a file through cable to another PC automatically in specefic time.. I don't know which cable to use(crossover or usb) and how to read and write from the serial port.. i tried to do it in VB(with help from some …

Software Development java
Member Avatar for masijade
0
118
Member Avatar for 50701735

please tell me about some my questions. if (we have a pointer *tmp)-> that my goal is assign that pointer for another pointer ** temp ; so ,how do we assign for right sytax.

Software Development c
Member Avatar for dkalita
0
77
Member Avatar for kalual

Hi Guys, I am stuck i need reports in my VB 6.0 small project (Crate Management System, anyone with good tutorials or ready to help me on this one, i have used ADODC and a Microsoft Access Database.

Software Development microsoft-access visual-basic
Member Avatar for kalual
0
97
Member Avatar for mauryoung

#include <stdio.h> int main() { int age; printf("Please enter your age:"); scanf("%d", &age); if(age<100) { printf("You are pretty young!!!\n"); } else{ if(age==100) { printf("You are old\n"); } else { if(age>100) { printf("You are really old\n"); } } } getchar(); return 0; } the program just flashes wen i click run …

Software Development c
Member Avatar for mythilisrini
0
191
Member Avatar for infern0

Hi. I'm having trouble making a simple calculator. The code I have so far compiles, but it does not run. Right now I only have addition in because I wanted to make sure I was going in the right direction before I added anything else. I have to use a …

Software Development c++
Member Avatar for Phil++
0
89
Member Avatar for kool.net

hi, pls. tell me how to select value from a check box, & from a list box or combo box. actually i m new to c# , so sorry for this stupid question but i need your help. Thanx in advance. Happy Diwali Regards ~ Dimple

Software Development
Member Avatar for avirag
0
224
Member Avatar for comput

*Forgive the double post (in Computer Science thread too. As soon as I figure out which thread this should be in, I will be sure to consolidate and delete one.* I got this example in a handout in class, but am having trouble following...can someone kindly insert some comments? After …

Software Development c
Member Avatar for dkalita
0
1K
Member Avatar for darkw1sh

I am having a small issue I have to use only putchar and get char to get an operator and two numbers and print the format into num1 (operator) num2 I have a lot of code but I am afraid to post on the site because someone might steal it …

Software Development c
Member Avatar for darkw1sh
0
149
Member Avatar for guerrund

I need to know how to do the following: Allow for editing and Allow for searching by state or by any other options This is what I have so far: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; public class AddressBook extends JFrame { // Specify the size of …

Software Development java java-swing
Member Avatar for masijade
0
162
Member Avatar for Kshiteesh

Dear all, I have been preparing an address management system using ms access as backend and vb.net as front end. I have got a problem in using search button. How can I display searched datas in access files in grid. (can i get a code for it if you really …

Software Development display vb.net
Member Avatar for Sumanbehara
0
120
Member Avatar for mcap61

I have this program that calculates students grades. It asks for each students test scores individually then gives their total score and percent, then loops for the next student. But after the user is done inputing all the students scores, how do you create a function of some sort to …

Software Development c++
Member Avatar for mcap61
0
142
Member Avatar for abu taher

in my data report I have two rptfunction. both of them show the total sum. here I want 1 extra rptfuncion show the calculate amount. I mean it show (1st rptfunction - 2nd rptfunction). like: 1st rpt...2000 and 2nd rpt....1500. so the 3rd rpt... show 500. and one more thing …

Software Development visual-basic
Member Avatar for abu taher
0
67
Member Avatar for logan59102

Here is my assignment: Write a C program that will reserve seats on an airplane that has 10 first class seats and 100 coach seats. Your program should be menu driven. If a seat of the desired type is available, your program should recored the reservation and display the seat …

Software Development c
Member Avatar for Beg.CProgrammer
0
350
Member Avatar for vineeth5march19

do anyone 1 knows hw 2 access other running windows in desktop using VB??? i saw it in a buk

Software Development microsoft microsoft-access visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for hollywoood69

Hello everyone of DaniWeb!! I have an issue with the good old Mortgage Calculator I need to make this list, but i am not sure what i am doing wrong. any help? Here is the assignment Write the program in VB.Net (not Web based) and have it accept user input …

Software Development vb.net
Member Avatar for hollywoood69
0
110
Member Avatar for Trini89

Im trying to write a program thats uses call function, but for some reason the program. Can someone help point out what i might be missing in the code? [CODE]#include <iostream> #include <cmath> using namespace std; void timeoffall(); void velatimpact(); int main () { double h; cout << "Please enter …

Software Development c++
Member Avatar for Trini89
0
123
Member Avatar for tones1986

Hey all. I have worked with a project to create a basic student database/registration system for the past 4-5 projects... slowly adding more functionality or using different containers and classes etc. For this next project, i am to use the code from a website online which contains all the nescessary …

Software Development c++ linked-list
Member Avatar for Vincenttalent
0
169
Member Avatar for wyett

Quick question regarding the Fraction class created in the header file. Someone in my group used this in the header and I was wondering if there was an alternative to coding it than what they used. Something simpler for me to understand. It seems they just took a shortcut. [CODE]public: …

Software Development c++
Member Avatar for wyett
0
89

The End.