43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tkud

Can i use borland c++ 5.5 to design graphic programs? if yes, please reference a book that i can use(ebook please).

Software Development c++
Member Avatar for Ancient Dragon
0
100
Member Avatar for geg13

Hello, I am looking for some help with a program i am writing. It is supposed to ask you for the name of an object and the 'create' said object. It ends with an error message saying that the hard drive was wiped. The only problem is that i can't …

Software Development c++ hard-drive
Member Avatar for Phil++
0
109
Member Avatar for PoisonedHeart

Hi guys, good day, just want to ask if there's a function that determines the number of days in a month, In a Roman Calendar, the days in a month are either 30 or 31, but if it's a leap year(every 4 years) the month of February is 29 instead …

Software Development visual-basic
Member Avatar for elkhartlynn
0
158
Member Avatar for Traicey

Hi All I am having a problem on finding a solution regarding the ff problem I need to do a search using a textbox and a datagrid, that means type in a text on the textbox and press enter and If a record is found the datagrid should point to …

Software Development
Member Avatar for Traicey
0
176
Member Avatar for mahela007

What is a static method and when should I use one?

Software Development python
Member Avatar for mahela007
0
85
Member Avatar for PixelHead777

I'm looking for some major help. I'm a decently new coder, taking a Python class independent study. I was writing a program for a two-player 21 game. (Like blackjack only I start with only one card... for some reason.) Only problem is, while the code doesn't seem to contain any …

Software Development python
Member Avatar for PixelHead777
0
207
Member Avatar for nateuni

Guys.. I am trying to figure out Comparator so I can compare Strings in an object array (the object has other data types as well). I have been hunting around and have come up with this.. but I cant get it to work --> Can anyone point me in the …

Software Development java
Member Avatar for nateuni
0
98
Member Avatar for BlackPhoenix

[B]Title:[/B] WinSock connect() problem. Client thinks it is connected even when Server is down As of right now, my program incorrectly displays the status of the connecting socket. Because of the if statements seen below, even when the server is down, my friends can access a part of the program …

Software Development c++ client-server
Member Avatar for lashatt2
0
2K
Member Avatar for Ene Uran

I have two similar lists and want to create a new list with just the differences between the two. Is there an existing function or do I have to iterate with a for loop?

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for saikeraku

Hi, I want to make a program that can make asterisks around the text, so the output is something like this: Enter string: Hello World ************* * Hello World * ************* I do not want to use the multiplication technique (ex: "*" * 5), and I want to try using …

Software Development python
Member Avatar for marecute
-1
110
Member Avatar for TomMan

I am trying to compile this, but when I run g++, I get this: tom@griffindor:~/Projects/wermz$ make g++ -c -Wall -O3 main.cpp -o main.o g++ -c -Wall -O3 wermz.cpp -o wermz.o g++ -c -Wall -O3 logger.cpp -o logger.o g++ -c -Wall -O3 win_funcs.cpp -o win_funcs.o g++ -c -Wall -O3 lin_funcs.cpp -o …

Software Development c++
Member Avatar for dkalita
0
261
Member Avatar for bludeath

Hey, my problem basically is that I have no idea why images that I am loading from my files are not getting printed to this little panel I've created. Basically, the functionality i have is that users select units and then I want to lay out all the units that …

Software Development
Member Avatar for Geekitygeek
0
111
Member Avatar for Derice

i am using scanner class, i faced problem when i tried to get a string with space. How can i modify my code to solve the problem. Here is my code: [CODE] import java.util.Scanner; class abc { public void main(String[] args) { Scanner abc = new Scanner(System.in); System.out.print("Name: "); String …

Software Development java
Member Avatar for javaAddict
0
123
Member Avatar for Toila

I have two question: 1. how to read the string below into token ? 2. how to include the query into the token without having to reprint it? I have made a thread earlier but i have fixed and this version is shorter so i hope one of you will …

Software Development c++
Member Avatar for Nick Evan
0
182
Member Avatar for CurtisEClark

I am building a code that needs to find the average of a set of scores in a list that can have amounts added and removed. I know how to find the average of a list of scores of a fixed number can someone help me on how to find …

Software Development python
Member Avatar for CurtisEClark
0
138
Member Avatar for lrh9

I always wondered how a programmer could efficiently generate a random number from a set* of numbers once and only once. I quickly realized the inefficient solution. Simply generate the number and if it equals one you have all ready generated then regenerate the number. Regenerating the number is a …

Software Development python
Member Avatar for lrh9
0
379
Member Avatar for Doughnuts

Hello all, I am working on an assignment and came across a problem. The assignment is to take a file with integers and calculate the average. Here is my code: [CODE]#include <iostream> #include <fstream> #include <stdlib> #include <conio.h> double calculateAverage(double Number, double Sum); void trimSpaces(char Filename[]); int main() { ifstream …

Software Development c++ file-system
Member Avatar for Doughnuts
0
119
Member Avatar for nola_Coder

Hello... This is my last assignment from my Data Structures class. I turned it in and got a good grade, but it still has one problem that I am unable to pinpoint. The assignment is as follows: Create an alphabetical linked list from a .txt file containing various names. (1 …

Software Development java linked-list
Member Avatar for nola_Coder
1
168
Member Avatar for klackey19

So I'm working on a project for a class in which we have to create a parser for a made up grammar. The input is read from a file. When I use input that is in the grammar, the program works. For certain input not in the grammar such as …

Software Development c++
Member Avatar for klackey19
1
537
Member Avatar for kcasmir

I want to populate my msflexgrid with lots of data from a database and it takes seconds for the process to complete. In that case, i need to include a progress bar that shows the progress of the process above and i do not know the code that will simultaneously …

Software Development visual-basic
Member Avatar for ImMoRtAl-
0
210
Member Avatar for Dewey1040

Write a new program called paginate.cc. It should work like this: Usage: paginate [--lines-per-page #] [--columns-per-page #] [--tabstop #] file [...] Required command line parsing: The options may be given in any order, but must all precede the file(s) to be printed. Parsing the argument should simply deposit the associated …

Software Development c++
Member Avatar for Dewey1040
0
215
Member Avatar for Toila

The code below is failed to let me input the data twice because im only able to open the text file and read it once. I have included a part of the file. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> #include <vector> #include <sstream> using namespace std; class Record …

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
112
Member Avatar for AutoPython

I can't find a simple command that does this. If there's no command that does this I'm going to spam python.org until they finally agree to put this in the next version of python.

Software Development python
Member Avatar for bumsfeld
0
171
Member Avatar for simpatar

I've got a book for python 2. in school and the problem is that we're programming in 3. which makes it difficult from time to time to get it right, cause you cant just copy the text in the book to the shell. I'm stuck with this ex: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # …

Software Development python
Member Avatar for bumsfeld
0
272
Member Avatar for srk619

i need to write code for two "robots" that will chase each other around the screen. im stuck on a command which is the step(x,y) command which take the (x,y) coordinates of the other robot as a parameter which should just contain "pass" and will be overridden by the subclass. …

Software Development oop python
Member Avatar for jlm699
0
103
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 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 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 green_leav

please i need help in my c++ assignment its about loop ( while and for) and i cant do it im gonna write it and hoping if any one can solve them before 25\10 pleaaaaaaaaaaaaaaaaaaaaaaaaaaase 1- write a c++ program that will read in the integer N, and calculate: a) …

Software Development algorithm c++
Member Avatar for Sky Diploma
-1
154
Member Avatar for dzhugashvili

I have this code which I need to be compiled in 64-bit mode but have no 64-bit capable compiler. First of all, could somebody compile this code for me and put the executable on filedropper.com or something? And second of all, does anybody know of a free 64-bit capable compiler …

Software Development c++ windows-vista
Member Avatar for dzhugashvili
-4
113
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 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 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 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 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 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 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 kool.net

hi, i m trying to get value from of first column of selected row from datagridview. please help me....\ Thanks in advance

Software Development vb.net
1
86
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 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 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
Member Avatar for nola_Coder

I'm needing to evaluate string infix equations and transform them to postfix equations. I'm following the info here: [url]http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/index.htm[/url] 1.) I'm confused by this line: "compare the precedence of the character with the element on top of the stack" It's asking me to compare the precedence of an operand to …

Software Development java
Member Avatar for nola_Coder
0
108
Member Avatar for xfrolox

How do i do that when Button5 is pressed it will add 3600 to the textbox1 and if button4 will add 1800 cuz when i do press the button 5 textbox says 3600 its ok but when i press button4 the 3600 change to 1800 i want it to add …

Software Development vb.net
Member Avatar for TomW
0
122
Member Avatar for nola_Coder

Hi... I'm a new user here. I've stumbled across this place on a couple occasions in the past, and it worked out to my advantage when I needed a little help with some coding assignments. My Data Structures class is working on stacks right now, and that is our current …

Software Development data-structure java
Member Avatar for nola_Coder
0
683

The End.