132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arenq

Can you tell me which basic operations on a list can cause an use of stack proportional to the size of the list? (I mean, looping on all elements...) I have problems with stack size. Is iterator post-incrementing dangerous in this sense?

Software Development c++
Member Avatar for arenq
0
82
Member Avatar for K'rul

Can anyone help me fix these?Program displaying and writing symbols to my file... And also after calculating GPA , when choose function read or display all it is illustrated as null....help plz [code=cplusplus] # include <stdio.h> # include <string.h> # include <iostream> # include <fstream> #include <stdlib.h> using namespace std; …

Software Development c++ file-system ios
Member Avatar for K'rul
0
101
Member Avatar for bhanu1225

Hello All. I got a doubt. In general, for updating remote database, we use ip address for the remote system. Here, i would like to update two remote systems at a time. I wrote the code like the below one. Could anyone please give the correct advice and suggestions. [B]try: …

Software Development python
Member Avatar for jice
0
285
Member Avatar for still_learning

I am working on solving several problems and this is one that I came across which I am not sure how to solve. If someone could help me here that would be great. Here is the problem, thanks much in advance: Your boss comes up with the following idea: Move …

Software Development algorithm c++
Member Avatar for siddhant3s
0
157
Member Avatar for hesham_51

Hello everyone First ,My name is Hashem I'm a beginner in c#, I'm trying to open Excel file(2003) but I get error at Open Function in the below code : (Old Format Or Invalid Library Of kinds (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)) Is there anybody can help me? where I …

Software Development c#
Member Avatar for Poojasrivastava
0
453
Member Avatar for bokr66

Hi Guys, I'm making a program ( game sudoku) in C# - windows application which contains many textboxes (81) labeled as shown below. String[] polja = { "tbA11", "tbA12", "tbA13", "tbA21", "tbA22", "tbA23", "tbA31", "tbA32", "tbA33","tbB11", "tbB12", "tbB13", "tbB21", "tbB22", "tbB23", "tbB31", "tbB32", "tbB33",... ... "tbI11", "tbI12", "tbI13", "tbI21", "tbI22", …

Software Development
Member Avatar for ddanbe
0
128
Member Avatar for Gurdinho

Hey everyone, I've just a simple question for you. I've an array like a[10] = {23, 17, 35, 67, 43, 52, 97, 83, 73, 29} How can i shuffle the order of this array's elements? (randomly) Thanks for your interest and your help... Have a nice day...

Software Development c++
Member Avatar for ArkM
0
100
Member Avatar for kerek2

hi all, I got 3 form that is form1,form2,form3 I create a mainmenu to call form2 or form3 I got problem to getcenter the form2 or form3 in FORM 1.... Anyone have idea?...

Software Development vb.net
Member Avatar for Teme64
0
130
Member Avatar for cool_aj

Hi there, I tried to use the above compiler for C.For every program I get the following message. I followed the tutorials,but can't figure out what am I missing in order to compile and run programs efficiently.It is not the code,as I have tried a number of programs which run …

Software Development c c++
Member Avatar for cool_aj
0
130
Member Avatar for Duki

I am trying to convert an array of longs to an array of chars. There are 1081 elements in the long array. Each element is 4 digits long. Is there a function in C++ that will convert a long something I can store in the array or could someone point …

Software Development c++
Member Avatar for tux4life
0
251
Member Avatar for Poppystar

I am new to programming and am trying to create a program to access a database of DVD's. I want to input a unique code for a title and display relevant fields from that record. I am getting the error above and have spent many hours now trying to see …

Software Development java java-swing
Member Avatar for Poppystar
0
579
Member Avatar for Topi Ojala

Greetings from a newbie! I'm creating a game of a sort where objects move and collide on a 2D ASCII map ( vector<vector if u will ). I'm having hard time calculating the projectories of ranged weaponry. Not sure if this problem is more mathematical than C++ related, but here …

Software Development c++
Member Avatar for amrith92
0
292
Member Avatar for sunil01

Guys please help me out on ths' I have created a table in sql ' managed to change datetime to date only in (sql query analyzer ' parsed it ) its shown date only n sql table but its shown both datetime in vb.net textbox Please tell me if my …

Software Development vb.net
Member Avatar for Teme64
0
112
Member Avatar for cool_zephyr

hey there..can you please help me write a C program to put the Caps Lock on??

Software Development c
Member Avatar for Salem
0
333
Member Avatar for punjabi

i am making a hangman game on python for school and need help i have to practice using loops like ifs there are three parts i have to make which are checkletter.py which i have been given directions to do this • Code the checkLetter() function so that it goes …

Software Development puzzle python
Member Avatar for jlm699
0
142
Member Avatar for sanushks

Is there a function in C which can read dual delimiters, there is strtok which works using a single delimiter.. Is i need to decode a file as such 123#!45!2#!678#!666#!45!6#! in the above case #! is the delimter, if i use strtok and use(#! as delimiter) 45!2 in the above …

Software Development c
Member Avatar for cool_zephyr
0
212
Member Avatar for azjherben

I was told olny the computer / home that the "host program" was in needed to be port forwarded, but you need port forwarding just to use the client too. Base code for client program: [code] //Main.cpp #include <iostream> #include "Socket.h" #include <fstream> #include <string> using namespace std; string getcot(char …

Software Development c++ ios
Member Avatar for azjherben
0
102
Member Avatar for 1obama

Two files be placed , to certain composition of (warehouse of) simple project entering, template calculates inclusive < include (reach; make) > Array and it operation of template with (from) method several instructions of codes ( ) demonstrating main. Task relies on making of new template representing calculator, be based …

Software Development c++
Member Avatar for monkey_king
0
81
Member Avatar for Bob Jacobs

Can anyone tell me, what to change in the VB4 application setup program to prevent it from reporting a negative available memory during set up?

Software Development visual-basic
Member Avatar for vb5prgrmr
0
177
Member Avatar for pythonian4000

Hey everyone! I have been teaching myself Python, and so as an exercise, I have tried writing an image grabber for OneManga.com. You put in the path to the comic page you want to start the grab from, and it grabs every page from there to the end of the …

Software Development python web-server xml
Member Avatar for pythonian4000
0
222
Member Avatar for larry78

Hi, I've a problem. I need to retrieve all contacts stored in a public folder in the ms exchange 2003 server in VB.NET or C#. Anyone can tell me a way to do it or some example ? Thank you.

Software Development vb.net
Member Avatar for kirill.krylov
0
463
Member Avatar for lifeismusic434

Hello everyone, I am trying to update a JTable after a user clicks a button. I have a bunch of data in a TreeMap, which I then convert to a String[][], and pass to a DefaultTableModel, and then use that DefaultTableModel in the JTable. When the user clicks a button, …

Software Development java
Member Avatar for lifeismusic434
0
101
Member Avatar for JustmeVSI

Hi. My problem i guess it is simple but i guess I'm simple as well :). The problem is the flowing: I have a JTextFead and a search method for IDs. The IDs are 7 char long. I want to be able when the user enters 7 chars the search …

Software Development java
Member Avatar for JustmeVSI
0
105
Member Avatar for KirkPatrick

Just had a quick question about my code. Seems like a very simple solution, perhaps I'm just too sleepy to think straight. What I am wanting to do is if a certain index is selected in my combobox i want certain textfields to display which is apparent by the code: …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Dendei

Hi me and my class are getting this problem with tim.start(); and stop. we get start to work with a button but cant stop and we can stop with the keyboard but not with the buttons bad explaination i know but have an look plz :P [CODE] /* * To …

Software Development java java-swing
Member Avatar for Dendei
0
128
Member Avatar for gbarnas

Greetings, I've been given a task to create a bunch of thin-client systems. I found a Python script that acts as a window manager and provides a simple "Connect or Shut Down" interface. It works well, but now I've been asked to adapt it for two special situations. 1. Connect …

Member Avatar for gbarnas
0
230
Member Avatar for grisha83

Hello, For some reason, my program prints out extra zero from my linked list Can anyone tell me why? Thank you [ICODE]public class Main { public static void main(String[] args) { IntNode my = new IntNode(5,null); LinkedList list = new LinkedList(); list.createList(0); list.addValue(1); list.addValue(23); list.addValue(3); list.addValue(4); list.print(); list.getLength(); } }[/ICODE] …

Software Development java linked-list
Member Avatar for grisha83
0
91
Member Avatar for grisha83

Hello, I was wondering why do we need to assign value of -1 to the top of the stack? topOfStack = -1; Thank you

Software Development java
Member Avatar for grisha83
0
105
Member Avatar for durga84

Hi, I'm new to python and linux as well. Could someone suggest how to install python2.3.4 on RHEL4? When I tried, installing rpm package it thrown some errors saying that dependencies are missing. Please do needful. Thanks in advance...

Software Development python
Member Avatar for woooee
0
284
Member Avatar for OLer94

Hello everyone, Im very new to python so I am having a hard time with it. I am trying to input a set 's' and have it spit out 'result' which would be a list of all computed subsets of 's'. I wrote the following code but its not working. …

Software Development python
Member Avatar for woooee
0
235
Member Avatar for Pramoda.M.A

code is : code is : path = (char*)malloc(100); pname = (char*)malloc(100); path = "ragHu"; strcpy(pname, path); free(path); whats wrong with this?

Software Development c
Member Avatar for Salem
0
130
Member Avatar for username7260

Ok, i got this so far ... [code] import java.util.regex.Matcher; import java.util.regex.Pattern; public class Testing2 { public static void main(String[] args) { Pattern p = Pattern.compile("[wati]"); String text = "water"; Matcher m = p.matcher(text); if (m.find()) { System.out.print("Found !"); } } } [/code] With that code i got a match, …

Software Development java regex
Member Avatar for masijade
0
133
Member Avatar for billymcguffin

in my coding program, it says this line of code is wrong syntax: [icode]class Mainwindow()[/icode]. Why? whenever i add a line above it with just a semicolon (;), it says it isnt bad syntax. i copied it directly from a tutorial. WHY??? billy

Software Development python
Member Avatar for jlm699
0
98
Member Avatar for lolwtf

I working on a personal project of mine and got stuck. The program is a simple quiz in which the user answers some questions, and their results are saved into a text file. Reading and writing to text files is easy so I don't need help with that. On my …

Software Development file-system vb.net
Member Avatar for lolwtf
0
1K
Member Avatar for Vidya Bhama

Hi, I call a vbscript file from my batch file. I need to pass a variable from this vbscript file to batch file. can anyone please let me now how to do this. batch file looks like this cmd.bat ------------ @ECHO OFF cscript "D:\samp.vbs " isql -S sername -d dbname …

Software Development file-system vbscript visual-basic
Member Avatar for Vidya Bhama
0
210
Member Avatar for Sune

Hello I have started to study C++ after having worked with a procedural language for many years. I have read a couple of C++ books (hmm, well at least looked into) and some tutorials about C++. I started to prepare a C++ quick reference guide for my own usage and …

Software Development c++
Member Avatar for e.shankar87
0
228
Member Avatar for pferian

Hy, I have to develop an application usign Visual C++ 2008 that should handle (open, change cells and save) some Excel 2003 sheets. I am using .NET Framework 3.5 and the COM reference Interop.Excel.1.5. Does anyboby knows how to code this? Thanks.

Software Development c++
Member Avatar for pferian
0
152
Member Avatar for DeathWalker101

Hey all, Im working with assembly atm and thought i might just get a better idea understanding loops if i know how java loops work not that it is really the same im just trying to back track. Im trying todo the following: When var1 = 3 It then needs …

Software Development assembly java
Member Avatar for tux4life
0
84
Member Avatar for gotm

[code=python] #!/usr/bin/python import os.path n = 10 allPositions = [] state = [] blackPairCap = 0 whitePairCap = 0 blackInaRow = 0 whiteInaRow = 0 row0 = [] row1 = [] row2 = [] row3 = [] row4 = [] row5 = [] row6 = [] row7 = [] row8 …

Software Development python
Member Avatar for gotm
0
146
Member Avatar for Robtyketto

Greetings, The vb.net application I'm developing is for data input and have utilised a combo box which is populated with a list of UK towns. As it is 45,000 lines long there are problems testing the application as it doesn't always run when using the standard F5 - Start debugging …

Software Development vb.net
Member Avatar for iamthwee
0
251
Member Avatar for cigur

As I noticed everybody says that THE ONLY difference between classes and structs is access mode. But I have noticed that initialization is also different. I mean if we have struct SA{int n;}; class CA{public:int n;} then we can write SA sa = {2}; but we cannot write CA ca …

Software Development c++
Member Avatar for tux4life
0
118
Member Avatar for dot_net_rookie

Hi I am trying to bind two checkboxes in a datagrid. The 1st Checkbox is category and the 2nd Checkbox is sub category. A category can have several sub categories. When i bind the 1st checkbox the category name is repeated more than once and I need to have only …

Software Development vb.net
Member Avatar for dot_net_rookie
0
183
Member Avatar for sanushks

Hi All, I'm using gdb to debug a C code which does file processing. The file i'm processing has about 100,000 records. The code runs fine until the 30,000 records and after that it produces garbage value. Could i use gdb to run the code until it reaches 30,000 records …

Software Development c
Member Avatar for sanushks
0
109
Member Avatar for cipherbeale

I have to make a guessing game program using CLR Windows Form APP in Visual Studio 2008. The program has to catch excceptions. Im trying to catch an exception if I were to leave the input box called guessBox2 in the program blank and hit the submit button. IM STUCK. …

Software Development c++ visual-studio
Member Avatar for _Nestor
0
106
Member Avatar for juzzy

how do you add the output of a sum back into the input? eg. i = 100 print i/2 which will give you 50 (obviously) then i want to divide the answer by 2 and then the answer of that by 2 and so on ad infinitum thanks in advance

Software Development python
Member Avatar for juzzy
0
112
Member Avatar for airey1988

Hi i have created a list which reads from a text file. how can i view the contennts of the list outside of the method it was created. I have inserted my code below. [ICODE]//read Customers.txt and save in an object. List<Customer2> list = new ArrayList<Customer2>(); File file = new …

Software Development java
Member Avatar for giri.pankaj
0
81
Member Avatar for vedmack

Hi ... i found a way to add watermark in java to the following images format: PNG , JPG , GIF... (like this: [url]http://blog.codebeach.com/2008/02/watermarking-images-in-java-servlet.html[/url]) Now im looking for a way to do the same with BMP and TIF... (cause this way doesn't work on that format...) Anyone know how to …

Software Development api image java
Member Avatar for peter_budo
0
183
Member Avatar for onsir

I have design report with ireport, if that report i run in netbeans its ok, but while i move to drive c: got error like this "error displaying report page. see the console for details" if i try in command prompt get message [code] java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown …

Software Development java java-netbeans java-swing session
0
105
Member Avatar for radskate360

HI, I have been working on this program for a bit now and having a little bit of trouble, I have got most of it but still a few stumbles. Here is the Directions: Write a program that will generate an unknown (between 93 and 139) count of random numbers …

Software Development c++
Member Avatar for ArkM
0
158
Member Avatar for preetchhabra

i am new in programming in visual c++ can anyone tell that how can i call one form from other form means by clicking on button first form should disappear and second fom should come on screen in visual c++ 6

Software Development c++
Member Avatar for ArkM
0
74

The End.