43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Andrew Wiggin

I am trying to use shutils to copy a folder but it throws errno 13 at me. The traceback points to open() as the culprit. I wrote a test script: open(raw_input("Filename: ")) this is the result: Filename:e: Traceback (most recent call last): File "C:\Documents and Settings\talvey\Desktop\testOpen.py", line 1, in <module> …

Software Development python
Member Avatar for lllllIllIlllI
0
17K
Member Avatar for freelancelote

Hi all, let's say I have a string object. I can cout the string literal by just stating the name of the object or I can use the data function. [CODE=cpp] string myStringObj = "Hello World!"; cout << myStringObj; cout << myStringObj.data();[/CODE] So, why do we have a function like …

Software Development c++
Member Avatar for Narue
0
104
Member Avatar for clutchkiller

[code=c++] #include <iostream> #include <windows.h> #include <cstdlib> using namespace std; int main() { SetConsoleTitle("The Guessing Game!"); int guess; int clue; srand ( time(NULL) ); int num(rand() % 25 + 1); int total; cout << "Hello Internet\n"; Sleep(2000); cout << "Today, we are going to play the Guessing Game!\n"; cout << …

Software Development c++
Member Avatar for clutchkiller
0
108
Member Avatar for Generalcoco

This is my Final Project and as you can see my program asks the users twice for the test grade I am trying to consolodate and have the program only ask for the test score once and give the letter grade at the same time.? any ideas I do not …

Software Development java java-swing
Member Avatar for Generalcoco
0
89
Member Avatar for Filipe11

I have a form with a tabcontrol, and I would like to know whow to do that the tab follow the form,that means, to maximaze the tabcontrol to!forgive me about my english...

Software Development
Member Avatar for ddanbe
0
115
Member Avatar for dmanw100

I always wondered if it is possible in Windows to read in general file information (size, created date, modified date, etc) and then modify that data? If it's possible, how can it be done?

Software Development c++
Member Avatar for low_coder
0
138
Member Avatar for keyser_soze

hey...i want to understand how following code works : [code=c]int x=1; printf("%d%d%d",x,++x,x); [/code] [code]OUTPUT: 222[/code] also [code=c]int x=1; printf("%d%d%d",x,++x,x++); [/code] [code]OUTPUT: 221[/code] actually these o/p are produced when i use [B]visual c++[/B] compiler but when i wrote the same commands in [B]turbo c[/B] they gave perfectly understandable o/p as [B]221[/B] …

Software Development c
Member Avatar for keyser_soze
0
150
Member Avatar for GrahamShaw2008

Where do I locate the logical or on my keyboard? Thanks for your help in advance.

Software Development c
Member Avatar for GrahamShaw2008
0
2K
Member Avatar for Grub

Hi is it possible to get the file creation date of files on the mac using c++? If so, may you assist me on how do I go about doing so? Many thanks

Software Development c++
Member Avatar for Grub
0
379
Member Avatar for Littlerocks

Thanks in advance. I am wriiting a code about Conway's game of life,and i am a beginner of python,have looked at my code for hours,still couldnt find out the bug...when i run it,it doesnt work....only return the same matrix as the test code given..anybody can help with check it would …

Software Development python
Member Avatar for Littlerocks
0
119
Member Avatar for ninja_gs

[B] i need to find the user I/p is an String or char or int or float in C++ lang . [/B] My Goal is to Get 3 inputs from user and Find the Greatest of all and list out it but matter of fact the Big deal is the …

Software Development c++
Member Avatar for som shekhar
0
193
Member Avatar for bhavna_816

I have created a C# Windows application in .NET 3.5, it runs the powerpoint slideshow and closes all the existing slideshows and should only run the new .ppt application. In C# when I run this application with putting breakpoints it runs fine and gives no error. But when I run …

Software Development
Member Avatar for bhavna_816
0
953
Member Avatar for ohlaph

I'm working on this project due by 4AM and my loop keeps stopping after following part of a loop. I've checked the code several times, but it just freezes inside the checkstuff function. Can someone tell me how I can break from that fucntion or loop and continue looping through …

Software Development c++
0
68
Member Avatar for CoolAtt

Hi. i have to extract the following line: C:\WINDOWS\lsass.exe i tried [QUOTE](\w:\\.*\.\w{3})[/QUOTE] it worked on some strings only. any suggestions ? plz help.

Software Development perl regex
Member Avatar for CoolAtt
0
90
Member Avatar for anilk

Hi All, I am a total newbe to python. I am using some already available code to send email from commandline using my Gmail account. For the piece of code smtp = smtplib.SMTP('smtp.gmail.com', 587) I get a error ################ Traceback (most recent call last): File "Mail.py", line 44, in <module> …

Software Development python
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Diamonddrake

Does anyone remember how ms dos had a [B]sort[/B] program that you could sort the rows in a huge text document based on just one character by its position from the left margin? I am trying to recreate that effect in a notepad clone. I am sort of new to …

Software Development
Member Avatar for Diamonddrake
0
154
Member Avatar for serkan sendur

do you know any articles which is like c++ for c# developers?

Software Development c c# c++
Member Avatar for jbennet
0
62
Member Avatar for Doy123

Hello, I'm new to the forum. I studied x86 assembly about 25 years ago. I think we used a 8080 or 8086. It was all Dos back then, no Windows. Anyway, my career took me down another path and I would like to learn assembly again. My laptop and desktop …

Software Development assembly career
Member Avatar for jbennet
0
88
Member Avatar for Grub

Hi It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program? If so, may someone tell me how or point to materials that I can read. Many thanks

Software Development java
Member Avatar for Grub
0
193
Member Avatar for veledrom

Hi, This is my XML file. I want to retrieve information stored in a HTML Table in index.html page. How can i do it? Thanks [code] <?xml version="1.0" encoding="UTF-8"?> <memo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="memo.xsd"> <header> <companyName>XML development LTD</companyName> <to>myemail@yahoo.com</to> <from>xml@yahoo.com</from> <date>1979-11-07</date> <reg>I don't know the reg</reg> </header> <body> <message> <parag>Hello, How are …

Software Development html-css xml
Member Avatar for veledrom
0
163
Member Avatar for Lukezzz

General question: If you want to create a homepage, wich application can you do this in ? I know C++ well but I am not sure if you can use Visual C++ Express Edition 2008 for something like this ? Does anyone have experience of this, What application could otherwise …

Software Development c++
Member Avatar for ArkM
0
92
Member Avatar for BestJewSinceJC

I'm trying to read in the whole file at once. If this code ever fails, my whole project will fail. I'm using the following: byte[] theFile = new byte[input2.available()]; then, input2.read(theFile); The API says something about blocking. What exactly is blocking, when will it happen, and how will it affect …

Software Development api java
Member Avatar for BestJewSinceJC
0
91
Member Avatar for happymadman

Hi Is there a way to check if a float is a whole number eg 10.0, 7.0 or somthing.0 I'm doing problem 5 on project eular Mayby I have the complete wrong idea here is my code: [code] numbertobetested = 0.0 loop2 = 1 while loop2 == 1: numbertobetested = …

Software Development python
Member Avatar for sneekula
0
101
Member Avatar for spanigrahi_situ

HI All, Ant Unix method or C++ method is there to convert unix time stamp to system time stamp.The input is ULONG and out put should be in string. u can intimate to <email snipped> Any help is appreciated in advance.

Software Development c++ unix
Member Avatar for Salem
0
2K
Member Avatar for nikola.rosic

Well i have one main form which i run like an application.On that main form i have 3 buttons which are opening another 3 forms(instances of Form2 class) which are of the same class Form2. So i have : Form2 form1=new Form2(); Form2 form2=new Form2(); Form2 form3=new Form2(); all of …

Software Development c# visual-studio
Member Avatar for LizR
0
257
Member Avatar for Zermoth

Try to do 3 things. The 1st see if a database exists in a certain location: if it dose then connect. else show error message. The 2nd see if the database is open: if open the display a message to the users that they are going to get disconnected. pause …

Member Avatar for Zermoth
0
148
Member Avatar for Demonisya

O.k My teacher game me a take home exam which will be submitted on monday..... and also I have to defend what I composed so I will ask you many questions so that I will understand this program..... my teacher said Never use C... do it in your own ideas.... …

Software Development c
Member Avatar for Demonisya
0
107
Member Avatar for Zermoth

is there a way to disconnect a user/s from a database and/or display a msgbox to the users telling them that there are about to be disconnected? ms access 2003

Software Development visual-basic
0
84
Member Avatar for TriceD

Hi all, I'm fairly new to programming as a whole and so I would be grateful if you can help me out. I'm trying to write a program in VC++ or C++ that would intercept print jobs from another program and save this information in another file(to be formatted later). …

Software Development c++ ios open-source
Member Avatar for TriceD
0
503
Member Avatar for gamer12223

Hey guys, I am tying to get my program to work, I don't have any errors but I cant get an output from it. I am supposed to output the second set of three from the nine inputs. Thanks to those who reply. [code]#include <iostream> using namespace std; class TMoney …

Software Development c++
Member Avatar for Murtan
0
162
Member Avatar for dmanw100

I was trying to find ways to improve the loading time of an application that I'm working on. It uses SDL to handle graphics and sound which brought up a question: which takes longer to load? If I want to load either graphics or sound into memory during the application …

Software Development c++
Member Avatar for MosaicFuneral
0
82
Member Avatar for imput1234

Hey, I'm trying to only read the int's and the symbol - (negative) from the file. right now my code is where m,d, and y are dates. Everything works fine. Except I do not read the - symbol. Any one know how to solve this? [ICODE] fin.open(ifile.c_str()); fin >> m1 …

Software Development c++
Member Avatar for imput1234
0
162
Member Avatar for kruglok

I got first part by creating it using for loop. But got stuck on while loop. Would you see what I'm doing wrong. # Calculating number of vowels using for loop count = 0 word = raw_input("Please enter a phrase: ") for letter in word: if letter in "aeiou": count …

Software Development python
Member Avatar for jlm699
0
17K
Member Avatar for didi00

hello,can someone help me? I must make a program which contains: Deck (the data in it must be integer(numbers)),(if possible,in header file). Sort the elements by the method of Shell Find the elements that can be divided by 5, and smaller then the largest number that can be divided by …

Software Development c
Member Avatar for didi00
0
153
Member Avatar for clutchkiller

[url]http://www.e-learningcenter.com/c_programming.htm[/url] Looks like it might be a pretty useful course and for only 69$. Before i spend the money, what do you guys think. Im not worried about the monetary value, but what kinda benefits i may get. I even noticed that thier copyright is up to date so this …

Software Development c++
Member Avatar for clutchkiller
0
66
Member Avatar for spodder

I have a problem with the MoveFile() function of the Win32 API. I cant move files which are in the same directory as the exe file,if i specify the pathname,it dosent work.I dont know how this function works.Need urgent help....... [code] # include<windows.h> # include<iostream.h> int main() { MoveFile("C:\File1.txt","C:\New Folder\File2.txt"); …

Software Development api c++ windows-api
Member Avatar for Freaky_Chris
0
139
Member Avatar for praetorian20

Hi, I'm using FindFirstFile and FindNextFile functions to get a list of files from a path specified by the user. Let's say the current directory has a sub-directory named 'subDir1' which has a file named 'file1.txt'. myDir <- pwd |_ subDir1 |_ file1.txt Now, if the user enters 'subDir1\*' as …

Software Development c++
Member Avatar for praetorian20
0
643
Member Avatar for Filipe11

When I debug my program, if I maximize my form, i dont know how to align the center all my butons!!!The butons stay in the corner... Someone can help me!!

Software Development
Member Avatar for ddanbe
0
71
Member Avatar for namehere05

Im trying to make this Hash Table to work, but I get these errors on linking time main.obj : error LNK2019: unresolved external symbol "public: __thiscall List::~List(void)" (??1List@@QAE@XZ) referenced in function "public: __thiscall HTable::~HTable(void)" (??1HTable@@QAE@XZ) StringTable.obj : error LNK2001: unresolved external symbol "public: __thiscall List::~List(void)" (??1List@@QAE@XZ) HashTable.obj : error LNK2019: …

Software Development c++
Member Avatar for namehere05
0
243
Member Avatar for andyT

Hello, I'm trying to find some help with code that I've been maintaining and currently trying to modify. Basically, I am working with a single array of length "m", call it the "max" array. Other than knowing that each entry in the "max" array is nonnegative, I have no other …

Software Development c linked-list
Member Avatar for andyT
0
117
Member Avatar for ryan311

how can i delete the record in my Sold To table if the quantity is = 0 heres my code in my command button [CODE]Set cn = New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\Inventory System\PharmacyInventory.mdb;Jet OLEDB:System Database=system.mdw;", "admin", "" Set rs = New ADODB.Recordset cn.Execute "INSERT INTO CustomerReturn (cno, pcode, …

Software Development open-source visual-basic
Member Avatar for ryan311
0
85
Member Avatar for jt_murphree

Hello all. This past semester I took assembly programming. The programs in class were done on windwos machines and now I am trying to write some assembly on my linux machine, which has an intel 64bit processor. I am having a problem converting integers to ascii for output. I am …

Software Development assembly
Member Avatar for jt_murphree
0
199
Member Avatar for asameh99

I already added the path of my installed java, but the problem is I cannot compile my codes. here is my path. . %SystemRoot%\system32;%SystemRoot%;C:\Program Files\Java\jdk1.6.0_10 and then this is what happens when I compile. . Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Carlo>e: E:\>cd nerd's …

Software Development java microsoft-windows
Member Avatar for verruckt24
0
127
Member Avatar for karang

HI I have a class className which is an abstract class. I am attaching the definition in the code snipet below. when I am writing the line I am getting an error error C2259: 'className' : cannot instantiate abstract class From this error I have understood that we cannot create …

Software Development c++
Member Avatar for grumpier
0
252
Member Avatar for adam291086

I am trying to print out a dictionary result. The dictionary is made from a database search. I have tried to print it in every possible way here is the code [CODE]#!/usr/bin/python import elementtree.ElementTree as ET import urllib import MySQLdb print "Content-type: text/html\n" info={} def find_text(element): if element.text is None: …

Software Development python
Member Avatar for adam291086
0
121
Member Avatar for C0rey

Hello all, I'm new to VB .Net, I found this open source file editor. Its can read unicode text fine, but its doesn't save unicode and its read only ITST01 and not QEST01. How to make its detect both and save as unicode? Here is the file format. [CODE] BSTR …

Software Development file-system open-source vb.net
0
77
Member Avatar for PhiberOptik

Hey folks, I am working on a getBalance method that retrieves a balance from a CSV file. I keep getting: [ICODE][COLOR="Red"]java.lang.NullPointerException at java.util.StringTokenizer.<init>(StringTokenizer.java:182) at java.util.StringTokenizer.<init>(StringTokenizer.java:204) at atmEngine.getBalance(atmEngine.java:100) at atmEngine.<init>(atmEngine.java:81) at Launcher.main(Launcher.java:12)[/COLOR] [/ICODE] I can't figure this one out! I threw in some console print outs to make sure it was …

Software Development java
Member Avatar for PhiberOptik
0
1K
Member Avatar for Micko

Hello, I'm writing a simple calculator in C. The main problem is I need to parse string to evaluate for example 1+2*(3-1)/2.5. However writing such parses is a very hard task. This is a trivial thing Python using this code: [code] s = raw_input('Please enter expression:') try: x = eval(s) …

Software Development api c++ python
Member Avatar for hunkaboy2003
0
4K
Member Avatar for chasee

I'm trying to create an array that can be resized, and automatically renumbered, at the moment, what I have works for up to a 3x3 array, but anything larger than that doesn't work. I've tried doing this with int instead of char for the type or the array, but then …

Software Development c++
Member Avatar for chasee
0
280
Member Avatar for Yaserk88

alright. I have this file that lists about 3000 coordinates in this way. -90.0000 0.0000 220.7533 -90.0000 5.0000 220.7533 -90.0000 10.0000 220.7533 -90.0000 15.0000 220.7533 I'm trying to open this file in my program, but I'm having no luck at all. I've tried reading numerous threads on doing so, but …

Software Development c++
Member Avatar for Ancient Dragon
0
97

The End.