132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for WolfShield

I have a lot more code than I'm going to post here, but I am posting the relevant parts. What I have is a Calculator program. Here's the code: [CODE=Python] num1 = None num2 = None oper = None def calculate(num1, num2, oper): print("calculate() called") if(oper=="+"): answ = Decimal(num1) + …

Software Development python
Member Avatar for woooee
0
261
Member Avatar for valter

Hi, I am not looking for a response to this, but I thought I would post this info which might help others in the futture. If you change the default install directory say from C; to something else, which you might do if your c: drive is getting full. Please …

Software Development
Member Avatar for valter
0
70
Member Avatar for rameshbadi

Hi.. I am learning C using Def c++. I struck at strcpy command. It giving error for a small exercise [CODE]#include<stdio.h> main() { char string[20]; strcpy("Hello", string); printf("%s", string); fflush(stdin); getchar(); }[/CODE] it giving error: `strcpy' undeclared (first use this function) Please help me that what can i do in …

Software Development c
Member Avatar for Ancient Dragon
0
439
Member Avatar for vincezed

Hi all I am developing a form which has a gridview... i am try to do is.. it has three columns... the first two columns are for display purposr. The third column is a combobox column which displays different value for different rows.. it is fatched from database.. i am …

Software Development
Member Avatar for lianpiau
0
127
Member Avatar for sergent

I made a simple assembly program about a year ago and I lost the source, but I still have the .exe file. I wanted to see the assembly code, so I disassembled the program with ollydbg and there was MUCH MORE code. There was about 3000-4000 lines of code, but …

Software Development assembly
Member Avatar for GunnerInc
0
184
Member Avatar for Matt_L

I am not the original author of this software project and the code is poorly documented. I am mainly a Java/C++ developer. The program displays the tree structure and allows files and folder to be selected. The program is getting errors with FileSystemTreeView when trying to return nodes on a …

Software Development vb.net
Member Avatar for dxider
0
162
Member Avatar for Ertzel

I am trying to use the Net User command from the cmd in my C++ program. I have this... [CODE]char acUserName[100]; DWORD nUserName = sizeof(acUserName); if (GetUserName(acUserName, &nUserName)){ cout << "User Name: " << acUserName << endl; system("Net User"); }[/CODE] This displays the User Name on the screen and then …

Software Development c++
Member Avatar for Ertzel
0
148
Member Avatar for alex-i

Hi gyes I need any solution about login form I have 3 from (formLogin, formUsers, FormAdministrator) In formLogin i have 2 textbox for user and password and 2 radiobutton who check if I click radiobuttonuser to open formUser and if i click on radiobutonAdmin to open formAdministrator. how can I …

Software Development
Member Avatar for Ezzaral
0
98
Member Avatar for jayrpalanas

anybody can give me the free link for c/c++ software?...please give me... thank you!!!

Software Development c++
Member Avatar for iamthwee
0
171
Member Avatar for SQLpower

Hello, guys. I found useful stuff so far. I'd like to ask if someone can give me some ideas how to wandering guards or set switches to open certain doors in a maze game in c++? At the moment I am thinking just to add some bits, can someone give …

Software Development c++
Member Avatar for iamthwee
0
321
Member Avatar for infiniteloop56

Hey everyone, I am new to this site, basically my problem is this: The user inputs an integer, and then the user inputs a character, the program is supposed to make a triangle out of the character, with the max width of the user inputed integer. for example; user inputs …

Software Development c c# c++
Member Avatar for goldzero
0
1K
Member Avatar for SQLpower

Hello. I have some problems understanding the code. I'd like to ask for some help. I need someone to break it down for me. Just to explain what's going on and what's happening. Well this is map.cpp: I got the other bits but I am struggling with this one and …

Software Development c++
Member Avatar for Sky Diploma
0
206
Member Avatar for DerrickC

I have written the following program. It collects inventory information and stores it in a file. I need to write a separate program that will access that file and give me the totals of the information stored in it ie. (quantity,wholesalecost,retailcost). What I'm specifically having trouble with is how to …

Software Development c++ data-structure file-system ios
Member Avatar for DerrickC
0
184
Member Avatar for VIPER5646

[QUOTE]Hi all I am using Vb2008 Express and an Access DB. I would like to Display a note from a column in the Notes_tbl to a text box this from an Access database. Here is the code that I used but it does not do the job. [/QUOTE] [ICODE] Dim …

Member Avatar for viki123
0
544
Member Avatar for programing

plz help me with code c++ for binary full adder that sum to binaryn like 1111 + 0110 [CODE]#include <iostream> using std::cout; using std::endl; const int LENGTH = 5; char sumChars(char x, char y, char& carry); int main() { char first[LENGTH + 1] = "10100";// 20 char second[LENGTH + 1] …

Software Development c++
Member Avatar for Sky Diploma
0
3K
Member Avatar for VulcanDesign

Hi all, I'm trying to use Python's urllib to get a Facebook profile page. I get the following error: [CODE]IOError: [Errno socket error] [Errno 10035] A non-blocking socket operation could not be completed immediately[/CODE] Here's my code: [CODE] import urllib member_profile_text = urllib.urlopen('http://www.facebook.com/profile.php?id=1073109649').read() [/CODE] I need to get this working …

Software Development python
Member Avatar for VulcanDesign
0
542
Member Avatar for virusisfound

How can I change the app.config file path at run time. When user select the name and enter the passward. Please can any one provide me some code for that. Like a login form.

Software Development
Member Avatar for virusisfound
0
197
Member Avatar for markfw

Hi I have some questions: I'm getting segmentation fault on print_clauses(...) function and I really can't figure it out why. But the bigger question is, am I doing something wrong in build_clauses(...) function? Am I using double pointers in right way? because the second #if ... #endif gives me N …

Software Development c c# c++
Member Avatar for markfw
0
124
Member Avatar for winecoding

In servlet side, I am trying to receive an vector sent from the applet. The code is like [CODE]InputStream in = request.getInputStream(); ObjectInputStream inputFromApplet = new ObjectInputStream(in); Vector v = (Vector)inputFromApplet.readObject(); [/CODE] But the compiler specifies that the following one is wrong. [CODE]Vector v = (Vector)inputFromApplet.readObject(); [/CODE] The error message …

Software Development java
Member Avatar for JamesCherrill
0
145
Member Avatar for Muhammad Anas

A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then …

Software Development c++
Member Avatar for Muhammad Anas
0
2K
Member Avatar for gcardonav

Hi guys: The following code compares two folders and if the input is correct will print out the data. That's not my problem, I wanted to add an empty line when the comparison is incorrect. The things is that it adds a good amount of empty lines before I get …

Software Development c++
Member Avatar for WaltP
0
223
Member Avatar for tboz203

I've had an idea for a class that, instead of storing a number as a single floating-point value, stores the exact value as two or more integers (in cases such as division, fractional exponents, or irrational numbers such as pi or e). The class would have it's own mathematical functions …

Software Development java mathematics storage
Member Avatar for JamesCherrill
0
192
Member Avatar for xanawa

Hi, I need a validation using regex just the pattern i have. The user has to enter digits and after the digits one letter. User can have up to six digits or less eg: 1234(G) 123456(K) 12(O)

Software Development regex
Member Avatar for xanawa
0
801
Member Avatar for senthilamp4

Dear Experts, Here i have bit stuck with logic to create text to CSV file creation. pls help me to this code. Thanks in Advance, Senthil. V [CODE] [U]input file[/U] "OC192-11,OC192:ESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SEFSS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:CVL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" [/CODE] [CODE] [U]OUTPUT as CSV [/U] ESS SESS SEFSS CVL "OC192-11,OC192:ESS,0", "OC192-11,OC192:SESS,0", "OC192-11,OC192:SEFSS,0", OC192-11,OC192:CVL,0, [/CODE]

Software Development perl
Member Avatar for d5e5
0
285
Member Avatar for failbot

This should display 5 lines of code that say "test", yet I am only getting 4 and it is never reaching zero, since the output never displays, "the test is over". What is wrong with this implementation? I am quite sure it's an error in my next() function. Any help …

Software Development c++
Member Avatar for predator78
0
165
Member Avatar for chriselectrix

Hi All Ive got an XSL for some XML data. The XML data contains a date field called OrderNum_OrderDate. How can I filter the data so it only displays data from the XML that has a date of TODAY + 7 days. I only want to see information for the …

Software Development xml
Member Avatar for SBA-CDeCinko
0
439
Member Avatar for TrustyTony

[I]This is one idea for thread of some lessons learned with experience about asking wrong question and answers 'thinking out of box'. If there is need to have sticky, I suggest that this thread become sticky development thread and moderator can move the upvoted suggestions for next part in new …

Software Development data-structure linked-list python
Member Avatar for TrustyTony
0
223
Member Avatar for bulger2503

Is there a way to add data into a RandomAccessFile using seek(long) without writing over the data at that position and beyond? For example: [code] public static void main(String[] args) throws Exception { RandomAccessFile raf = new RandomAccessFile("test.txt", "rw"); raf.writeBytes("Hello, World!"); seek(2); raf.writeBytes("Goodbye, World!"); raf.close(); } [/code] Using that the …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for euwbah

Here you can share assembly code snippets for the YASM assembler and you can also help people with their YASM assembly programming and share 32-bit apps. :) I also have a problem when I do this (It is supposed to generate a very simple hello in the cmd(DOS/command.com/command prompt): [CODE] …

Software Development assembly
Member Avatar for euwbah
0
283
Member Avatar for [V]

Ive noticed print() includes linebreaks, and its real easy to suppress them. Is there a way I can write lines to a file, but have the line breaks includes implicitly? eg: [CODE] file=open("testfile.txt","w") file.write("line 1") file.write("line 2") file.write("line 3") file.close() [/CODE] meanwhile the file will contain [code] line 1\nline 2\nline …

Software Development python
Member Avatar for vegaseat
0
134
Member Avatar for srikanth2321

HI, I have a software which gives me a text file which consist of German characters and are stores in the notepad with space. When I open it with note-tab software initially the german character is stored as space but they have a option " convert to ASCII text" then …

Software Development
Member Avatar for srikanth2321
0
205
Member Avatar for Red Dragon

the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> …

Software Development c++ file-stream file-system ios
Member Avatar for Red Dragon
0
360
Member Avatar for towerrounder

Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I …

Software Development sql xml
Member Avatar for nick.crane
0
214
Member Avatar for spiritsad

Write a C program to implement Queues using Singly Linked Lists. Hints: The operations to be performed are 1. Insert Front 2. Delete Rear 3. Display or 1. Insert Rear 2. Delete Front 3. Display i solve but there are error: [CODE]#include<stdio.h> #include<conio.h> #include<alloc.h> // Structure of each node in …

Software Development c linked-list
Member Avatar for zaraki
0
184
Member Avatar for TrustyTony

This is inspired for recent poster, who asked to check multiple strings in multiple files.

Software Development python
Member Avatar for TrustyTony
0
911
Member Avatar for kutuup

Hi, I'm working on an assignment where we have to have a client and server sending each other an integer that represents a noughts and crosses board. I had it working by simply sending back and forth the entire NoughtsAndCrosses class, but now we need to do it just using …

Software Development c++ client-server
Member Avatar for kutuup
0
205
Member Avatar for rEhSi_123

Hi Guys, I am trying to do design a coarse grain algorithm in MPI for carrying out multiple pattern searches. For which I have created a function that does the main pattern searches as shown in the algorithm below called hostMatch. The code below, reads in the data and sends …

Software Development algorithm c
Member Avatar for rEhSi_123
0
194
Member Avatar for zalia64

Help! I need to write some code for SIMD, 64-bit Intel X86. I am fluent with Masm; Where can I get a Masm version for 64-bit, and some documentation as to the changes in registers, changes in instructions set, etc? Anybody here has some experience with AVX ? any usefule …

Software Development assembly
Member Avatar for Tahir007
0
787
Member Avatar for samueal

I have a database which contains Hebrew language(foreign characters) in it. When I populate it in grid view. It gets populated in reverse order(left to right) For example: "כן" is getting populated as "ןכ"

Software Development c#
Member Avatar for samueal
0
332
Member Avatar for ninjatalon

[CODE] If count < max Then If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then 'Code End If End If [/CODE] is there a way i can put both if statements together like if …

Software Development vb.net
Member Avatar for Jx_Man
0
118
Member Avatar for samueal

I need to disconnect internet connection of a single system which I'm using now,connected in LAN. And I need to Connect again to the internet. How could i make this. I used [CODE]ReleaseDHCPLease [/CODE] and [CODE]RenewDHCPLease [/CODE] But it didn't work Help me

Software Development
Member Avatar for samueal
0
604
Member Avatar for gulbano

Hi I have two forms MainForm and DisplayForm. From MainForm i get the file name on button click and load the form in picturebox placed on display form... Can any one tell me how to do that??? Thanks in advance

Software Development
Member Avatar for abelLazm
0
128
Member Avatar for ninjatalon

I have a table that i'm trying to use as a template that I can then copy to a new page. i only got this much [CODE] Dim oWord As word.Application Dim oDoc As word.Document Dim oTable As word.Table FileCopy("C:/1535.doc", "C:/1535_1" & ".doc") oWord = New word.Application oDoc = oWord.Documents.Open("C:/1535_1" …

Software Development vb.net
Member Avatar for ninjatalon
0
2K
Member Avatar for ScubaSam

Hey every one i need some help please! I am trying to save a Database through c# but cant seem to crack it. I read a few threads but every one explains how to save an existing DB. In my program I am creating a new DB in c# then …

Software Development c# microsoft-access
Member Avatar for breath2k
0
233
Member Avatar for aplee

Hi everyone, I have this problem, I developed the program in C#(winform) in my computer, when I try to publish it and install in my computer, it works fine. But when other users with different computer install, the are receiving this error : unable to install or run the application. …

Software Development assembly microsoft-office
Member Avatar for aplee
0
564
Member Avatar for caierhui

How do i restrict access to other JFrame? if i open my main frame and click the add button, the user will not be able to go back to the main frame. how do i do that?

Software Development java
Member Avatar for mKorbel
0
145
Member Avatar for stereomatching

As far as I know, if we don't ask template to generate the code for us It would not do it because template is "lazy". The codes generated by template are same as handcrafted codes, so what makes template being blamed by code bloat if you know how to handle …

Software Development c++
Member Avatar for pseudorandom21
0
176
Member Avatar for polystudent

Hi All, Need expert to teach me how to solve the below C++ questions. Thanks (a) void Triangle (int, char) The function takes in two arguments, the integer representing the base and height; and the character representing either original or mirror. These values are use to print the triangle. For …

Software Development c++
Member Avatar for pseudorandom21
0
120
Member Avatar for vincezed

Hi all I am developing a form with a toggle button in the toolstrip ... i have given the property checkonclick to true and gave this coding in the click event.... I am loading a Groups (Usercontrol) in the MainPanel1 (panel).... It works for first time but does not work …

Software Development
Member Avatar for abelLazm
0
303
Member Avatar for Razer_90

Ok, i made a code to Encrypt a file (any file), but i have a problem to do the Decrypter and the code to the Decrypter (doesn't work) [CODE]if (RestoreFile.ShowDialog() == DialogResult.OK) { FileStream fsFileIn = File.OpenRead(o.FileName); FileStream fsKeyFile = File.OpenRead(o.FileName); FileStream fsFileOut = File.Create(RestoreFile.FileName); TripleDESCryptoServiceProvider cryptAlgorithm = new TripleDESCryptoServiceProvider(); …

Software Development
Member Avatar for hirenpatel53
0
171

The End.