132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for maurice.tracey.7

if(company[i][j] < 0) { loss = loss++; } else //Im trying to Get the number of losses and not the actual input numbers"for example loike 1 loss, 2 loss etc

Software Development c++
Member Avatar for maurice.tracey.7
0
166
Member Avatar for nutrion

All, I have this very basic script that's producing some odd output. What I need to do is constantly ping a server, and when/if that server stops responding, I want to write the timestamp and " timed out" to a file. We're trying to lock down a time as to …

Software Development python
Member Avatar for nutrion
0
199
Member Avatar for Lamirp

Ok I'm just looking for a cleaner way to achieve my goal here, if there is one and if this is not much of a satisfactory method. The goal is to accept an integer from a user using JOptionPane.showInputDialog. A brief example of what I'm currently doing do { check …

Software Development java
Member Avatar for mKorbel
0
7K
Member Avatar for filipgothic

I need help with this two questions, its not hard for experts I guess, here it is: Determine the time of executing the following algorithm fragment: a) if (x == 0) then for i = 1 to n do a[i] = i; b) i = 1; repeat a[i] = b[i] …

Software Development algorithm c++
Member Avatar for filipgothic
0
264
Member Avatar for CodyOebel

**Ok the problem is this. I have the groups I want added to the administrator, and remote desktop users group on the local machine, and all that works fine. If you hit windowsKey+pause , or right click on "My Computer" and go to advanced settings, remote tab. At the top …

Software Development c++
Member Avatar for CodyOebel
0
778
Member Avatar for Khalessi

hello everyone! i have a quiz about 2D Arrays. and i don't know how the questions might be, can you help me :) thank you. PS:please correct my grammar mistakes if you see any, i'm here to learn. thank you

Software Development c++
Member Avatar for Khalessi
0
219
Member Avatar for Jahliah

In the previous post, I had difficulty accessing fields separated by comma in "~" separated rows. Example "a,b,c~d,e,f~g,h,i~" But after writing the output I get the following result: "a,b,c~ a,b,c~ d,e,f~ a,b,c~ d,e,f~ g,h,i~" my desired result is as below: "a,b,c~ d,e,f~ g,h,i~" Any help is appreciated. Thanks! using (StreamWriter …

Software Development
Member Avatar for sai ram
0
166
Member Avatar for Rebecca_2

I have a series of (~950KB) '.txt' output files from a computational chemistry program; Each file will contain the line '****optimisation achieved****' at least once and, depending on the result of the calculation, possibly twice. Does the following code, in which I am trying to find specific lines and print …

Software Development python
Member Avatar for snippsat
0
286
Member Avatar for cmps

Hello I ma trying to practice on Data structure using java. I solved a lot of problems but this one looks interesting but I need some help understanding what I really have to do ... > write a program that simulates the operation of a busy airport that has only …

Software Development data-structure java queue
Member Avatar for bodiddly123
0
679
Member Avatar for deepaktiwari.k

Hi All, I need to create a Page in which a text box and a button needed. Please help me to create this Page. i am very new in VB. Thanks Regards Rahul

Software Development vb.net
Member Avatar for G_Waddell
0
70
Member Avatar for fernandofranca

Hi all, I´m having troubles programming with C# for windows CE. I need to listen a serial port, I have the program for windows and it works fine but when I program it to windows CE I dont know why it does not recognize any event function. I normally use …

Software Development microsoft
Member Avatar for Ketsuekiame
0
2K
Member Avatar for TheNewKid

Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone …

Software Development c++ image microsoft windows-api
Member Avatar for mitrmkar
0
341
Member Avatar for Rebecca_2

I have the following directory/file setup (this is simplified): Ce +---top.txt +---X0.0 | | | +---Y0.0 | | | | | +---X0.0Y0.0Z0.0.dat | | +---X0.0Y0.0Z0.05.dat | +---Y0.05 | | | +---X0.0Y0.05Z0.0.dat | +---X0.0Y0.05Z0.05.dat +---X0.05 | +---Y0.0 | | | +---X0.0Y0.0Z0.0.dat | +---X0.0Y0.0Z0.05.dat +---Y0.05 | +---X0.0Y0.05Z0.0.dat +---X0.0Y0.05Z0.05.dat Within each Y directory, …

Software Development python
Member Avatar for Gribouillis
0
687
Member Avatar for Sci3nc3F1cti0n

Hey guys, I've been working on a little project of mine, and part of it requires sorting. I'm using bubble sort and before I put the algorithm in the code, the program ran fine. void ranking(){ int count = getcount("all"); // get total members and save value to count int* …

Software Development algorithm c++
Member Avatar for Sci3nc3F1cti0n
0
593
Member Avatar for ZBatool

0 down vote favorite I am trying to read float numbers from a Binary file using Struct module and then storing them in numpy 3D arrays.When I run it as an independent script, it works fine.But when I call it as a class's function from another script(after import) it gives …

Software Development file-system python
0
106
Member Avatar for bullet_1

I am new to C# I want to replace Characters such as("' & < > ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ² ³ ´ µ ¶ · ¸ and so on...) with entity numbers like (&#34; &#39; &#38; &#60; &#62; &#160; &#161; &#162; &#163; …

Software Development
Member Avatar for bullet_1
0
159
Member Avatar for samsnov

Please help me out here, I have a small PC screensaver created with CINEMA 4D, I want to add/link it to my website but I don’t know how to add/link an application program installer setup to a website. I would want to set the screensaver on commercial that means client …

Software Development
Member Avatar for anthonydaly
0
277
Member Avatar for EdwardVX

Hi DaniWeb! I kinda need your help on this little bugger. How can I input this CSV file in to an array? Module Name, Module Code -- Student ID, Last Name, First Name, Exam Score, Average Introduction to Art Life, ITAL 07,Krave,Mark,27,30 60,Lever,Paul,89,96 13,Green,Jon,15,40 15,Davids,Jerry,5,15 If the Module Name and …

Software Development java
Member Avatar for JamesCherrill
0
594
Member Avatar for sue26

hi guy's!! i need your help.. Ijust want to ask if how to show the date using combo box??

Software Development vb.net
Member Avatar for anthonydaly
0
211
Member Avatar for prakash4

1. #include<stdio.h> #include<conio.h> int main() int a=10; printf("%d%d%d",a,a++,++a); getch(); return 0; } o/p:12 11 11 #include<stdio.h> #include<conio.h> int main() { double a=5.2; if(a==5.2) printf("equal"); else if(a<5.2) printf("less"); else printf("high"); getch(); } o/p: less Can any one give me explanation for the above outputs.....

Software Development c c# c++
Member Avatar for sepp2k
0
287
Member Avatar for eldiablo1121

I have to write a program where I take user input and print out how many times each word prints out. Here is my code: import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; public class wordlist { public static void main(String[] args) { int i = 0; int USER_MAX = 50; String[] …

Software Development java
Member Avatar for JamesCherrill
0
230
Member Avatar for Kuroshi

The question is pretty straightforward, does BigInteger have a limit? From what I know it is only limited to the amount of memory available on the system, nothing else. This question arose when my instructor told me that one could not calculate 50! using BigIntegers, which I believe one can. …

Software Development java
Member Avatar for JamesCherrill
0
162
Member Avatar for geethashri

hello i am using vb 2008 version and microsoft office access 2003.I have installed access 2007 also. while i work in vb,i get error -could not find installable ISAM ,at this code con.open("provider=microsoft.jet.oledb.4.0;datasourse="&application startup path&"vbnet.mdb")

Member Avatar for zryder
0
145
Member Avatar for jared.geli

Hi I'm new here. I'm making a barcode calutator and I want to know how can I get the positions of all integer in a string because I need their position for calculations. Thanks in advance

Software Development vb.net
Member Avatar for jared.geli
0
271
Member Avatar for pritesh2010

i have follwing data in datatable how to convert it to xml ErrorType UtilityType MstLocCode MDescription SubLocCode SDescription FieldName FDescription 1 Elect NM0001 XMN001 ABC ddsafs 1 Elect NM0001 XMN001 XYZ ddsafs 1 Elect NM0001 XMN001 LMN ddsafs 1 Elect NM0005 XMN002 sds 1 Elect NM0006 XMN002 fghfgh Gas ddsafs …

Software Development asp.net xml
0
189
Member Avatar for munitjsr2

**test.html** <!DOCTYPE html> <html> <head> <title>Database test</title> <link rel="stylesheet" type="text/css" href="test.css"> <script> function validateForm(n,mes) { valid=true; var x=n.value; var errn="error_"+n.id; var email = document.getElementById('EMAIL').value; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; //alert(errn); if (x==null || x=="" || x.trim()=="") { document.getElementById(errn).innerHTML=mes; valid=false; } else { document.getElementById(errn).innerHTML=""; if(n.id == 'EMAIL') { if (!filter.test(email)) { document.getElementById(errn).innerHTML="Please …

Software Development html-css mysql perl
0
112
Member Avatar for bluejamesbond

I am trying to create a simple transparent window where I can draw with Direct2D. So far what I have done: 1. Created window 2. Set style to **WS_EX_LAYERED** 3. Set alpha color key as #FFF 4. Draw using Windows Graphics a white rectangle 5. Now window is transparent with …

Software Development c++
0
200
Member Avatar for iana.bancila

Please help me to perform this code! I'm beginner and want to know how it's look like! thank you To create abstract data type (structure) - vector that comprises a pointer to the target and the number of elements. To define initialization functions, the removal of a vector, set / …

Software Development c++ data-structure
Member Avatar for NathanOliver
0
207
Member Avatar for Ravic85

I'm a bit lost. I am trying to take an input file and use the data inside as a command as well as the data. So my input file would look like this: *B 127.2 Hi 183.2 Someone 23.8 Lost* Where "B" would call the specific function it is attached …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
220
Member Avatar for Dani

What is the difference between Pascal and Delphi? I heard they're like the same language?

Software Development delphi pascal
Member Avatar for seblake
0
1K
Member Avatar for wallet123

Hello guys, im trying to self study about connecting java to mySQL database. it's been a while since i used java, so i forgot some of the codes a little, and im also not so good at it. So im trying to connect, been copying and pasting codes trygint to …

Software Development java mysql
Member Avatar for stultuske
0
357
Member Avatar for eldiablo1121

Hello, I have to write a program where I need to take an input from the user, a phrase with words seperated by spaces, and then print the phrase and show how many times a word is used in the phrase. I'm a beginner, I would like to know how …

Software Development java
Member Avatar for eldiablo1121
0
2K
Member Avatar for Platnium

I was running my program whenn it crashed and gave me a error of NSInternalInconsistencyException reason: Could not load NIB in bundle can anyone help please

Software Development objective-c
Member Avatar for bondo
0
162
Member Avatar for Pride

Hi guys, I've been working on Vb.net for about 2 and a half years. It's easy and always has been. I did almost everything. I need some new ideas to work on. I did all the basic stuff such as: picture viewer browser calculator 'explorer' - to view files/folders reads/writes …

Software Development gui vb.net visual-basic visual-studio
Member Avatar for sashyn01
0
407
Member Avatar for dabasank

I need to retrieve all the filenames ending with .xml extension from all the subdirectories present in a directory and copy those names into a new .xml file.

Software Development python
Member Avatar for vegaseat
0
136
Member Avatar for plasticfood

hi guys, I'm new to python and i can't seem to understand this one line of code right here: distance, coordinates = min([(someFunction(state, coordinates), coordinates) for coordinates in coordinatesList]) coordinatesList contains a list of paired coordinates (x,y). someFunction returns an int. My question is why isn't distance and coordinates contain …

Software Development python
Member Avatar for plasticfood
0
396
Member Avatar for ss125

Hello friends, I had done some questions regarding function call. I had done an console application that can run a particular set of code every minute. For that i used System.Threading.Thread.Sleep(60000); That worked well too. But now i stuck in another problem. Now I dont wanna use the above code.Because …

Software Development
Member Avatar for ss125
0
276
Member Avatar for marethamogale

write a program that stimulates flipping a coin 100 times and then displays the total number of heads and total number of tails achieved

Software Development python
Member Avatar for phorce
0
176
Member Avatar for cool_zephyr

hi everyone. i've used the following way to store the uploaded files into D: drive of my windows machine from Tomcat server and it works pretty goood. private final String directoryPath="D:\\uploadedFiles\\"; File f=new File("D:\\uploadedFiles\\"+fileName); InputStream in=file.getInputStream(); OutputStream out=new FileOutputStream(directoryPath+fileName); byte[] buff=new byte[4096]; int count=0; while((count=in.read(buff))!=-1) { out.write(buff, 0, count); } …

Software Development java storage
Member Avatar for JamesCherrill
0
303
Member Avatar for pc20912

How can I use Background Image(PictureBox) in Mdi Form without overlap to another forms.

Software Development image vb.net
Member Avatar for pc20912
0
91
Member Avatar for MrDavo

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does …

Software Development perl
Member Avatar for yuvanbala
0
245
Member Avatar for kandarpa

Hi all I have a function and it is being called by many other functions. Is there any method or macro which can return the function name which calls the current function. EX: [code] int a() { pintf (<required a macro for printing the caller function name>); /* do operation …

Software Development c
Member Avatar for बालाजी
0
7K
Member Avatar for OsamaJutt_1

Hello Guys, I am facing problem while i am create menu system using swtich statement. I have 3 level of menu but don't know how to go back to main switch Statement. For Example currently I am in 2nd level of switch but how to go in main(outer) switch. Please …

Software Development java
Member Avatar for stultuske
0
3K
Member Avatar for Joseph Vann

Hello, I am working on a Tk program that generates geometric patterns, and I have written into all of my defs that if the variable "outline" is True it will draw a black outline, otherwise it will draw an outline the same as the fill. I tried a function called …

Software Development mathematics python tkinter
Member Avatar for ZZucker
0
399
Member Avatar for FazeLessWhite

Hey guys! I wan't to write a facial recognition software in C++ My platform is on a MAC. Please Suggest some good examples Thank you..

Software Development c++ mac-software
Member Avatar for rubberman
0
264
Member Avatar for Rayon_1

I have a database i want to write a query to return the total members in the database member(paul,100). member(john,101). member(ryan,102). member(jabouki,103). Should Return 4 I also have a list and i want to return the number of persons in the list memberlist([ant,cat,sat,bat]). Should Return 4 Query I have thus …

Software Development
Member Avatar for TrustyTony
0
201
Member Avatar for teppuus

Hello, I am trying to write a macro for Excel 2003 that will allow me to search for two words in Sheet1, copy all the data below those words, and then paste that data in Sheet2. That part I can get to work. My problem is that I have multiple …

Software Development microsoft-office visual-basic
Member Avatar for PerplexedB
0
413
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Software Development c++ file-system
Member Avatar for phorce
0
4K
Member Avatar for farmwife

"Active cracking" means indirectly changing a plaintext message so that it becomes a totally different, plaintext message that says something totally different but still makes sense, by creating a brand new encryption key that is applied to the ciphertext itself and changes the ciphertext rather than the original plaintext. I …

Software Development encryption
0
141
Member Avatar for J_SON

Hi , I am trying to do a couple of bitwise operations on some hex numbers but for some reason i cant compile. Apparently, it wont be possible with my method: #include <stdio.h> float tv,lv; float nv = 0x01FE; int main() { tv = 0x7FFC; lv = 0x8000 & tv; …

Software Development c mathematics
Member Avatar for J_SON
0
271

The End.