132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stefilina

Hy everyone...I would like to make a thing like the function "like" in php but in C#...It is something already implemented?I've searched on the internet and all i've founded was about regex... I'w waiting for answers..Thnx

Software Development c# regex
Member Avatar for stefilina
0
139
Member Avatar for cooldj

I have windows form lab created in which I enter plane name and location, direction, speed and send it to listbox.. I need to show how many have i created in a lbl form.. which goes like this: Number of planes created: (number) how can I write this in code? …

Software Development
Member Avatar for abelLazm
0
99
Member Avatar for farshad_emp

Hi Dears I want to print text throu a termal printer of embedded device.I implement it's code in c# but it doen't print.please guide me any one that know the below code lpt dll for printer and Nazanin.ttf is font that i will print my text my code : [CODE] …

Software Development printer
Member Avatar for farshad_emp
0
258
Member Avatar for strungoutfan78

I really need help on my latest C++ assignment. The program was due a week ago and I'm still beating my head against a wall here. This is supposed to be a VERY SIMPLE linked list implementation. I have rewritten this dang thing countless times in as many different configurations …

Software Development c++ linked-list
Member Avatar for strungoutfan78
0
531
Member Avatar for xXProgrammerXx

I wrote this script for my classmates where we shoot at each other, but after it compiles it says that there was an error and exits out. heres my script, if there is anything in there that needs to be fixed please help me. [CODE]#include <allegro.h> #include <process.h> #include <stdio.h> …

Software Development c++
Member Avatar for xXProgrammerXx
0
201
Member Avatar for apanimesh061

This is program that return a concatenated string to the main() [CODE] import java.io.*; class ConCat { public static void main(String args[]) { String a, b ,c; a = "Animesh "; b = "Pandey"; c = concat(a, b); System.out.println(c); } } static String concat(String s1, String s2) { String C; …

Software Development java
Member Avatar for jon.kiparsky
0
171
Member Avatar for strungoutfan78

So I have this assignment to create a dynamic stack with template and I've got it nailed pretty much. My question, though, is: I tried to implement "stack2" originally with data type as string. It would not work. The compiler threw all kinds of errors. Could somebody tell me what's …

Software Development c++
Member Avatar for strungoutfan78
0
172
Member Avatar for yashsaxena

Hello All I want to learn PERL language. Till today I know C, C++, HTML and little bit JAVA. So is there any prerequisites for learning PERL? Which book you will recommend for me (that book must be available freely :) ) for quick learning PERL?

Software Development perl
Member Avatar for roswell1329
0
134
Member Avatar for nightbreed

Hey guys! I'm trying to write a program that calculates the area of the convex hull of a set of points in a plane. I can find which points construct the convex hull but calculating the area is a little bit difficult for me. I guess the problem is that …

Software Development algorithm c++ mathematics
Member Avatar for nightbreed
0
2K
Member Avatar for Gata_Salvaje

Hi ,There I hope you can help me with this I need a Java algorithm to help me find how much % is string A relevant to String B Example : String A => Java ,C++ ,C# ,Assembly String B => java ,c++ then Result should be => 50% relevant …

Software Development assembly java
Member Avatar for ztini
0
5K
Member Avatar for 24x24

This is homework. Please do not write my code for me. I did look for this but only found things related to buttons or making a background, none of which had the answers I needed. I have been working on a game. The game has some images floating around and …

Software Development gaming image java
Member Avatar for mKorbel
0
163
Member Avatar for elshan0011

i have some formula. (find kubik feet) aswer = ((height(inch)/12 * height(inch)/12 * width(feet))/16 i want to solve this formula and asnwer in kiubic feet i am using double data type and c# language; ex: height = 48inch ,width =12feet double height_in_feet = 48/12; double width_in_feet =12; double ans=(4*4*12)/16; Messagebox.Show(ans.toString()); …

Software Development
Member Avatar for ddanbe
0
219
Member Avatar for Ertzel

I'm trying to create a Chat program for people to talk to each other through. So far I have it so multiple clients can connect to the server and send/receive messages to/from the server. The problem I'm having is because of the way Clients that are connected to the server …

Software Development c++ client-server
Member Avatar for template<>
0
1K
Member Avatar for Celtrix

I literally hate to ask this question but I am having trouble with Qt 4 basically all I am trying to do is clear the textEdit area with clear() but I am not sure of what to do. In C++ I would just [CODE]textEdit->clear();[/CODE] and it would do so. I …

Software Development python qt
Member Avatar for vegaseat
0
151
Member Avatar for komyg

Hi, I am developing a Java SE console application that needs to connect to a web page, get its contents (using HTTP GET) and get the value of a timer that was written in Javascript. If we take [URL="http://www.elated.com/res/File/articles/development/javascript/creating-a-javascript-clock/clock.html"]this[/URL] example page for instance. When I retrieve its contents using HTTP …

Software Development html-css java javascript
Member Avatar for NormR1
0
290
Member Avatar for IDC_Sharp

how can i take only the letters that after the dot (.) in the word? if i have the word: "Yes.No" i want that my string a will be equal to "No", but that should work in every word, not just in Yes.No

Software Development
Member Avatar for IDC_Sharp
0
75
Member Avatar for Nirmeen Ased

Write a program toconvert from Fahrenheit to Celsius : Tc =(5/9)*(Tf-32) Tc : Celsius Tf : fahrenheit

Software Development assembly
Member Avatar for GunnerInc
0
109
Member Avatar for johans22

How to round a number like 1678.5445 to 1678.6?.

Software Development c++
Member Avatar for Derek Elensar
0
113
Member Avatar for evaldaskowka

Hi again, With silly question... I read about generating random numbers random(10); but it gives numbers from 0 to 10 and i need for example from 10 to 100. I tried random([10..100]); but i can't compile this :/ Could somebody help me?

Software Development pascal
Member Avatar for Wolfgan
0
176
Member Avatar for sudheer2250

Hi, I am trying to convert a word xml into another xml file format using XSLT. Here I need to check the all the following siblings with some condition. If that condition is satisfied, the control should exit from that loop. How can i achieve this, I am desperately need …

Software Development abuse xml
Member Avatar for sudheer2250
0
376
Member Avatar for Sekhrian

Hi guys! Can anyone provide an accurate code for me to do this please. I'm not having any luck finding particular codes on Google that work.

Software Development java
Member Avatar for Sekhrian
0
188
Member Avatar for evaldaskowka

Hello, I'm working on a snake based game in pascal. I'm using graph window. But here is the problem: Yesterday i was doing great my project compiled and everything, today i turned on my computer, open my project and it wouldn't compile... I checked the code the was nothing strange …

Software Development pascal
Member Avatar for TrustyTony
0
306
Member Avatar for sneaker

I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have …

Software Development java
Member Avatar for sneaker
0
566
Member Avatar for dina154

Hi, I don't know where i when wrong... But my program doesn't want to loop properly. I was ask to make a Simple calculator that will loop the ans till giving a exit. here is what i got... #include <iostream> #define NEWLINE "\n\n"; using namespace std; int main() { char …

Software Development c++
Member Avatar for dina154
0
492
Member Avatar for 24x24

I wasn't sure if this should go in games development or here but it's java so I put it here. This is homework so please don't write my code for me. My assignment is to create a game. It has to have moving parts, keyboard controls, buttons, the works. I …

Software Development gaming image java
Member Avatar for 24x24
0
388
Member Avatar for bioinfo90

i NEED A PERL SCRIPT TO CREATE NAME_DIRECTORY FOR ALL TRAJECTORIES. i've trajectory files like this, rep2.tra3M.bz2 rep2.tra4M.bz2 rep2.tra5M.bz2 rep2.tra6M.bz2 rep2.tra7M.bz2 i want a scipt to list all replicas,copy zipped replicas and unzip all replicas and create a file with list of replicas and call make_pdb.pl for all trajectories.

Software Development perl
Member Avatar for d5e5
0
192
Member Avatar for dimitris4463

Hello DaniWeb, this is my first view at this forum as a member! I have an issue with my code. The application interacts with a MySQL database on a remote server, I have access to this server. When my app is running the insert into code I m getting this …

Software Development mysql open-source vb.net
Member Avatar for debasisdas
0
240
Member Avatar for [V]

Can someone please show me the best way to achieve this with the least amount of lines? Im a recovering PHP coder, I have one solution. I was wondering if there was a quicker more pythony way to do this: I have in "results" [ICODE][('Basp1', 'Aen2'), ('Basp1', 'Ahy18'), ('Basp1', 'Ahy26'), …

Software Development python
Member Avatar for vegaseat
0
156
Member Avatar for Tellalca

Hey; I have an assignment. My assignment includes the following tasks to be implemented under Linux: – Display a list of all available files (with their types) in the working directory, – Display a list of only regular files in the working directory, – Display a list of only directories …

Software Development c++
Member Avatar for sergent
0
219
Member Avatar for rssk

hi all i hav a list like list = ['0', '344', '1', '345', '2', '346', '3', '347', '4', '348', '5', '349', '6', '350', '7', '351', '8', '352', '9', '353', '10', '354', '11', '355', '12', '356', '13', '357', '14', '358', '15', '359', '16', '360', '17', '361', '18', '512', '19', '513', '20', …

Software Development python
Member Avatar for woooee
0
103
Member Avatar for luisthedude

I'm trying to launch an .exe from a JButton on a java Jframe, any1 knows how to make it execute. [CODE]private void OKButton3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } [/CODE]

Software Development java
Member Avatar for harinath_2007
0
114
Member Avatar for radical43144

This is my class project to be made in pythonCard : A local community centre desires to have a user friendly application to keep track of their community members. The application must allow a user to display information about community members, including the list of activities that individual members are …

Software Development python
Member Avatar for woooee
0
151
Member Avatar for PhysicsExpert

This worked in VC++ 6 but in Visual Studio 2010 assign needs a second parameter, in the context of this function would it be a better idea to use resize or reserve and why? [CODE] bool CN3ShapeExtra::Load(HANDLE hFile) { bool bSuccess = CN3Shape::Load(hFile); int iPC = m_Parts.size(); m_Rotations.clear(); if(iPC <= …

Software Development c++ visual-studio
Member Avatar for PhysicsExpert
0
183
Member Avatar for extemer

hello friends, i am doing my final project in which i have chosen to operate electrical appliances through cell phone in which i am going to use Linux and Perl to connect to cell phone and so on.... i am little stuck in the Perl way,can't figure it out that …

Software Development perl
Member Avatar for roswell1329
0
171
Member Avatar for Drau

hello, small question if i may :-) [CODE] try: x=int(input()) except ValueError as var: print(str(var.args[0])) [/CODE] if i input a string like - abcd this code prints me the full error message invalid literal for int() with base 10: 'abcd' while i need only the input - abcd to be …

Software Development python
Member Avatar for Drau
0
169
Member Avatar for saurabh2007

I am running into an error with NoSuchElementException, Please help! Here is the error: Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:838) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextInt(Scanner.java:2091) at java.util.Scanner.nextInt(Scanner.java:2050) at Project.answerKey(Project.java:292) at Project.findMyAvg(Project.java:344) at Project.printMyResults(Project.java:269) at Project.printHeader(Project.java:203) at Project.main(Project.java:30) The code at line 292 is: [CODE]answer[count] = inScan.nextInt();[/CODE] the method is: [CODE] …

Software Development java
Member Avatar for NormR1
0
516
Member Avatar for potchi
Member Avatar for vegaseat
0
1K
Member Avatar for dnur

Hi, I try to reach Start->Control Panel->Regional and Language Options->Customize->Decimal Symbol and change of that value from windows forms app written in c#. I search different solution from this : [CODE] System.Globalization.CultureInfo ci = System.Threading.Thread.CurrentThread.CurrentCulture; string decimalSeparator = ci.NumberFormat.CurrencyDecimalSeparator;[/CODE] because these System.Globalization or culture things can't see if the user …

Software Development c#
Member Avatar for dnur
0
236
Member Avatar for mamta_k

how to clear lines drawn on a panel.on some event i want to clear lines which r previosly drawn

Software Development vb.net
Member Avatar for Thijk
0
125
Member Avatar for Danny1994

Hello, im searching a Packer wich can protect hackers from "Reverse Engineering". It has to work for Net DLLs which are made with visual studio 2008. and it would be awesome if it would be free. Cheers :)

Software Development c++ engineering visual-studio
Member Avatar for andyman2
0
147
Member Avatar for valter

I am having a bit of a problem building my app. This is what I'm doing. Perhaps someone may be able to point out where I'm going wrong. When ready to build I click on solution explorer, properties and open, build tag. Output path is bin\release\. Yet when I do …

Software Development
Member Avatar for samueal
0
136
Member Avatar for wenbnet

Hello, i m using vb.net with MS Access database & oledbconnection in my project. now i want to mail my crystal report in pdf format to respected email-id, how can i do this????? i spent lot of time for searching some helpful bt didn't get

Software Development email pdf vb.net
Member Avatar for Luc001
0
566
Member Avatar for goocreations

Hi I've seen a function in numpy ([URL="http://docs.scipy.org/doc/numpy/reference/generated/numpy.gradient.html"]http://docs.scipy.org/doc/numpy/reference/generated/numpy.gradient.html[/URL]) for calculating the gradient of a 2-dimensional array. Numpy also provides 2 examples on that website (I'm more interested in the second one). I now want to use such a function in C++. Does anyone know if there is such a function …

Software Development c++
Member Avatar for goocreations
0
2K
Member Avatar for hokage4

I,m having a problem with my program. [CODE] float num,num1,score; cin>>num; score=num/num1; cout<<score; //if num and num1 is a digit, continue program; else, end program[/CODE] I already tried using (isalpha and isdigit), but it seems to be working only in int and char data type, also tried using stringstream approach, …

Software Development c++
Member Avatar for hokage4
0
127
Member Avatar for TheWolverine

Hi all, I'm busy writing a generic textfile reader class and I'm struggling to write the code to deal correctly with end-of-line (EOL) characters for Mac, Linux and Windows. I've done a fair bit of reading on the issue and I came up with the following function within my TextFileReader …

Software Development c++
Member Avatar for TheWolverine
0
567
Member Avatar for virusisfound

timer i have two labels in C# windows Application and i want make it visilbe for once. on form load : label1.visible = true; label2.visible.false; and on timer tick event: label1.visible.false; label2.visivle = true; now after it perform one tick it display another form. how to do it. in my …

Software Development c#
Member Avatar for abelLazm
0
105
Member Avatar for gomonkeyninja

Hi, I'm a beginner with Java and I need help with an assignment: Write a program that will help the Toronto Blue Jay's scouts decide which players they should draft next year. For each player the scouts have been watching, a record has been prepared showing the player's name, age, …

Software Development java
Member Avatar for bibiki
0
371
Member Avatar for clickspiker23

Im trying to learn c++ and i got a book which is not that great in my opinion, due to errors. one of my problems im having with one of the exercises is trying to set values for food, land. every time i run the program i get a bunch …

Software Development c++
Member Avatar for Duoas
0
111
Member Avatar for tagazin

Hello I wanna create an application that, inserted words an English and words an another one language will show you this in a random mode. Also you should be able to insert new words and carry on like this. I'm not smart enough so I got stuck. If someone would …

Software Development c
Member Avatar for tagazin
0
157
Member Avatar for TJones

Hey everybody. All my Google searches for help led me here so I thought I'd post my actual problem directly. I'm in a 101 programming course and this is only our second Python assignment. What I need to do is use one-dimensional parallel arrays to allow input of four different …

Software Development python
Member Avatar for TJones
0
487

The End.