132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MansonASP

My first post ever anywhere! :) As a novice I may be asking a stupid question here. Although arraysize exists, postcode array doesn't when I try to work with it in the addToArray method (and yes I know there are some other issues but I'll sort those later): [CODE]namespace Postcodes …

Software Development regex
Member Avatar for MansonASP
0
249
Member Avatar for mr.romero99

Hi all, I am newbie at Pascal programming and I need help getting started on one of my assignments. I am totally lost on where to begin. This is what my professor gave us to start: Implement a menu based program with the following array-based list functions: * ADD (at …

Software Development pascal
Member Avatar for mr.romero99
0
101
Member Avatar for invisi

Well I wrote this programme, hoping what I wrote is a lenear sorting algorithm if it's not pls tell me :-O [CODE] #include <iostream> #include <string> using namespace std; int main() { int a[10]; int num = 0; int number = 0; cout << "Enter 10 int..." << endl; for …

Software Development algorithm c++
Member Avatar for Narue
0
127
Member Avatar for vermont

Please I am having challenges to write a code with notepad and then run it with IDLE 2.6 particularly when importing modules like turtle. Here is an example: here is python code : [code=python] # Programme pour dessiner une série de triangles équilatéraux de différentes couleurs en différent endroit. from …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for Orusaka

Okay, so I have a program that read integers from a file and stores them in an array. The relevant code: [code] readLevel.open("level.txt"); if((readLevel.is_open())) { for(int rows = 0;rows<=BLOCKROWS-1;rows++) { for(int cols = 0;cols<=BLOCKCOLUMS-1;cols++) { blocks[rows][cols] = readLevel.get(); } } } [/code] However, here's the trouble. Instead of reading the …

Software Development c++
Member Avatar for WaltP
0
95
Member Avatar for persianprez

I'm trying to make the code able to post in here [url]http://spreadsheets.google.com/embeddedform?formkey=dEtSUVAtQVAtUVN1WDFPU3BEbm9yNkE6MA[/url] I've been successful in getting to read from the spreadsheet. With this code if you're wondering: [CODE] import urllib opener = urllib.FancyURLopener({}) f = opener.open("urlhere") print f.read() [/CODE]

Software Development first-post google python
Member Avatar for persianprez
0
172
Member Avatar for rwill357

Hello having some issues with my logic. I have to write a function that determines whether a given string is palindrome. I have to use multiple stacks for implementation. I have began coding and it compiles however it is not working correctly. I think the problem is within my while …

Software Development c++
Member Avatar for dusktreader
0
112
Member Avatar for iou

How do you make something happen everytime the program runs? [code] Dim CloseValue As String = Space(255) Win32.GetPrivateProfileString("Close", "value", "Default", CloseValue, 255, "C:/UserData.ini") [/code] I need that to execute, I've tried Public Sub Form_Load() Public Sub Form_Initialize() Public Sub Form_Active() None works, I've tested with MsgBox("HELLO") to see if that …

Software Development vb.net visual-studio
Member Avatar for iou
0
89
Member Avatar for akamini

Hi This is my first time posting after daniweb has helped me alot but I couldn't find a solution for this so I thought hey why not ask. Basically I would like to have an sql statement which selects all the bookings from a table in microsoft access callled tblBookings …

Member Avatar for akamini
0
194
Member Avatar for Fbody

A couple days ago, I was involved in [URL="http://www.daniweb.com/forums/thread258996.html"]this thread[/URL] which concerns bit shifting (kind of) and a solution was found (by someone else). The problem is, something about the solution never really sat right with me. Hopefully someone can clarify this for me. [B]Code:[/B] The code uses 1 constant …

Software Development c++
Member Avatar for Fbody
0
164
Member Avatar for eldhoksuresh

in netbeans 6.7 i'm trying to create a text file,say man.txt using code "file fr=new file("man.txt").. code executed fine..but i can't see the file man.txt anywhere where the file is created..pls help me

Software Development file-system java
Member Avatar for eldhoksuresh
0
85
Member Avatar for tzushky

hello, Here's a simple question I want to clear up. We all know that we can use the name of an array as the pointer to that array, and that a pointer holds the address to the variable named. What I'm doing is this [CODE] //somwhere in the code uint8_t …

Software Development c
Member Avatar for Narue
0
3K
Member Avatar for AdamE34

I'm a relative beginner, taking a c++ class, and I'm trying to output this stream of numbers to a .txt file. I'm having no problem actually getting them into the file, but I can't figure out how to get the numbers to line up in columns or rows instead of …

Software Development c++ file-stream printer
Member Avatar for AdamE34
0
141
Member Avatar for jemz

hello can i delete my thread so that it can't be found in the google?because all my thread can be search in google..hoping for your positive responds

Software Development visual-basic
Member Avatar for jemz
0
90
Member Avatar for vamsicoolman

please help me how to check the validity of the json object if suppose the example of the JSON is as ({type:'AAU', msgid:1265033798233, sel:0, gadinfo:[{ adid:316,adprt:40.0,dur:10,ef:'2009/06/03 10:00:00',et:'2012/06/03 12:00:00',imgfurl:'vaccumcleaner_h.jpg' }]}) SO I want a script in python which would give me the validity of the object as the output by taking …

Software Development json python
Member Avatar for vegaseat
0
183
Member Avatar for nimmyliji

Hi, I am new to Python programming... I have a .txt file....... It looks like.. 0,Salary,14000 0,Bonus,5000 0,gift,6000 I want to to replace the first '0' value to '1' in each line. How can I do this? Any one can help me.... With sample code.. Thanks in advance. Nimmyliji

Software Development python
Member Avatar for vegaseat
0
130
Member Avatar for vesnushka

Hi everyone!! Help me please with my script. I'm using Perl Express for scripting in . This is my script: [CODE]use warnings; use strict; open (file,'C:\Documents and Settings\soea\Desktop\Test.docx') || die "Can not open: $!\n"; @file = <file>; for (my $i = 0; $i<=scalar(@file)-1; $i++;) { if ($f[@file] =~ /^Exec.+\n/) { …

Software Development perl
Member Avatar for vesnushka
0
319
Member Avatar for sujithy15

what is an ide how is it different from traditional java platform ? what is java beans?

Software Development ide java
Member Avatar for sujithy15
0
186
Member Avatar for wongcc13

I'm working on a pascal project. And I want to append record on a binary file without overwriting it again.I've tried using the 'append();" statement but it doesn't work.

Software Development pascal
Member Avatar for wongcc13
0
1K
Member Avatar for spetsnaz26

I've got this annoying "access violation" problem. I've done searching for a whole day on the Internet and although I didn't find any solution specific to my problem I do understand "unhandled exception in abc.exe:0xC0000005: Access Violation" has something to do with inappropriate use of pointers. However where the error …

Software Development c++ file-stream ios
Member Avatar for spetsnaz26
0
1K
Member Avatar for trebauchet1986

I have c++ functions in which all the arguments are integers....I was wondering if there was a way of telling the computer this, other than typing int before each and every variable....I tried function S(int a, b,c..) but did not work....

Software Development c++
Member Avatar for JasonHippy
0
114
Member Avatar for MacUsers

Hi there, I'm having this problem with using translate() - I have a line in my code like: [icode]k.translate(None,':.-')[/icode], being called from a function, which works flawlessly under v2.6.4 but throwing in TypeError when run under v2.5 [code]Traceback (most recent call last): File "./wakeONlan", line 94, in <module> WakeOnLan(k.translate(None,':.-')) TypeError: …

Software Development python
Member Avatar for MacUsers
0
143
Member Avatar for Cap'nKirk

Hi, I am trying to build a simple calculator to get x^y, I have found that the '^' symbol is not used in C# and I have to use 'Math.Pow' instead. I have a form with 2 text boxes for input, an rtf box for output and a button for …

Software Development mathematics
Member Avatar for Cap'nKirk
0
374
Member Avatar for qariella

Ive been sitting in 3 hours trying to figure out whats wrong, read in my book, seen the Powerpoint and google search and now im giving up.. This is my last resort and I hope to learn how to do it.. Would appriciate the help guys. Well, here i post …

Software Development java
Member Avatar for JamesCherrill
0
161
Member Avatar for Stefano Mtangoo

Hi All, what is method to get all availabled disk drives and their status. By status I mean whether they are hard disk or CD/DVD or USB? Also how to get list of Drives in *nix? Thanks a lot

Software Development c++
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for gitech

Hai Friends, Iam using J2ME , i can read a text file from jar (in res folder) by using InputStream is = getClass().getResourceAsStream("help.txt"); StringBuffer sb = new StringBuffer(); try{ int chars, i = 0; while ((chars = is.read()) != -1){ sb.append((char) chars); } return sb.toString(); }catch (Exception e){} but i …

Software Development java
Member Avatar for peter_budo
0
192
Member Avatar for fidan

Hello, I have compiled a GCC plugin successfully, but I get error when linking: [CODE]$ make /opt/imo/bin/g++ -g -fplugin=../libimo/libimo.so -o test main.cpp cc1plus: error: Cannot load plugin ../libimo/libimo.so ../libimo/libimo.so: undefined symbol: _ZN11NodeFactory10CreateNodeEN4BEEV4KindERKNS0_7ASTNodeES4_RKSt6vectorIS2_SaIS2_EE make: *** [default] Error 1 [/CODE] I know that the plugin works fine for other Ubuntu users, so …

Software Development c++ ubuntu
Member Avatar for fidan
0
628
Member Avatar for datk0m

Hi to everyone here! I'm a newbie! I just wanna ask help from you especially from the administrator regarding my machine problem..... I am asked by my proffesor to create a slot machine program. This is how it goes... The simulation starts by presenting the player with a menu of …

Software Development c
Member Avatar for whgeiger
0
1K
Member Avatar for COKEDUDE

Can you please give me a list of all of the % letters that go with int, floats, and doubles in printf and scanf.

Software Development c
Member Avatar for COKEDUDE
0
83
Member Avatar for traced

i need help about the String codes.... its about how to delete a string.. like for example it displays like "The Dogs and Cats" the program wants the user to choose what to delete like i want to delete the Dogs.... and the result is now "The and Cats" cause …

Software Development c
Member Avatar for WaltP
0
106
Member Avatar for kgkamaraj

String[] temp=null; String st3=new String(temp); I use this code but error message is shown. I need how to recover this error.

Software Development java
Member Avatar for musthafa.aj
0
132
Member Avatar for laelzio.mosca

Hi, I just started my java class a few weeks ago, I have a question if you guys can help me. I`m learning about passing arguments, so I have this small code, it works perfect, the output is " 42 84 ", but I didn`t get it. what does it …

Software Development java
Member Avatar for musthafa.aj
0
111
Member Avatar for tennis

Struct Day { explicit Day(int d) : val(d) {} int val; }; what does the colon in the 3rd line means? Thanks

Software Development c++
Member Avatar for jonsca
0
105
Member Avatar for neosonic

hi all, I'm using wmf file for my picturebox. I want to make 30 * 30 pixel picture1.Picture = LoadPicture(App.Path & "\17.wmf", 0, 0, 30, 30) In picture 1, I have put scalemode in pixel and autosize to true But I cannot resize the image. picture1.Picture = LoadPicture(App.Path & "\17.wmf", …

Software Development visual-basic
Member Avatar for neosonic
0
102
Member Avatar for suzi_ausi

Please explain me in detail : [CODE]const char *str1 = "pointer to constant"; char *const str2 = "constant pointer"; const char *const str3 = "constant pointer to constant"; str1[0] = 'P'; // illegal! str1 = "ptr to const"; // ok str2 = "const ptr"; // illegal! str2[0] = 'P'; // …

Software Development c++
Member Avatar for Dave Sinkula
0
289
Member Avatar for DJPlayer

I'm trying to convert a double w/ a string of characters w/o using sprintf and padding w/ 0's.. omg... driving me nutz.. what I have thus far.. [CODE]#include <iostream> #include <cstdlib> #include <cmath> #include <deque> using namespace std; void d2s(double,char[], unsigned int); int main() { while (true) { double num; …

Software Development c
Member Avatar for Dave Sinkula
0
226
Member Avatar for Audux

Hi all, I'm new to C++ after having worked with c# and java for a number of years. I'm having trouble getting my head around destructors and their proper use. take for example this problem i'm working on at the moment. you have a double linked list centered around a …

Software Development c++ linked-list
Member Avatar for mrnutty
0
81
Member Avatar for RSBColt

^^^ Typing fail, should be possibly ^^^ What is the best cross-platform library for high-performance graphics. I have tried SDL and GLUT, but I want to know if there are better ones out there. Also, is there a simple way to access OpenGL without a front-end library?

Software Development c++ opengl
Member Avatar for RSBColt
0
151
Member Avatar for MatthewSedam

This is a basic calculator I made in C++. I am learning C++ on my own. [CODE] #include <iostream> using namespace std; float Add (float &a,float &b) { float c; c=a+b; return (c); } float Subtract (float &a,float &b) { float c; c=a-b; return (c); } float Divide (float &a,float …

Software Development c c# c++
Member Avatar for WaltP
0
179
Member Avatar for ceyesuma

Hello. I have 3 classes ; main.java calls gui.java [code] Gui g =new Gui(); g.createAndShowGUI(); [/code] Then I have my menu.java with the actionPerformed() I am trying to call methods of the GUI.java How can I call methods on the GUI.java to and use the methods on that instance of …

Software Development gui java oop
Member Avatar for ceyesuma
0
95
Member Avatar for tejubjp

Reading ProjectList text file(contains name of the projects) n display those lines into combobox my above code ....it is reading only first line of text file help......[code]Private Sub Form_Load() Open "c:\ProjectList.txt" For Random As #1 Len = Len(ReadData(1)) For intLoopIndex = 1 To LOF(1) / Len(ReadData(1)) Get #1, , ReadData(intLoopIndex) …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
184
Member Avatar for zangetsuu

i'm doing a payroll system and i have finished it but i need some eror checking reports for name and integer but i'm going to do the integer first which wll input hours of a day from monday to friday what i need is a loop along with error checking …

Software Development c
Member Avatar for zangetsuu
0
127
Member Avatar for nats01282

Hi all im new to c++, But im after a code that can make c++ put text in a window that i can copy and paste, any help. if you need more info please ask. Thank you

Software Development c++
Member Avatar for VilePlecenta
0
1K
Member Avatar for jorgelex008

Hi all, I've got a JFrame in a program, and when I click on a button, I get another JFrame created, and then select from a list. This works fine. But my problem is that when I close the second JFrame the entire program exits (both the main JFrame and …

Software Development java
Member Avatar for jorgelex008
0
171
Member Avatar for Masterace

Hi there need help on how to make the splash screen fade in transparently then afterwards start the progress bar that will lead in opening the 1st form

Software Development visual-basic
Member Avatar for WaltP
0
103
Member Avatar for FotG2

I have a drag-able JLabel that I'm trying to set that object to be above all other JLabel objects when its dragged. The only method I can find that sets the order is setComponentZOrder(Component,int)' But when I Try to use it, I get a large amount of errors printed to …

Software Development java java-swing
Member Avatar for Ezzaral
0
116
Member Avatar for chineerat

Hi! i am having trouble sorting an array using a for loop. the problem occurs when using iterations i and i+1 for example count:=0 for i:=0 to count do begin if a[i] > a[i+1] then begin .... end count+1 end problem is when the for loops reaches the LAST array …

Software Development pascal
Member Avatar for chineerat
0
6K
Member Avatar for BBKisaki

Hi Pros! I've started a project called grina ( code name) which is web browser program fro people to view web pages using C++ with Qt based on the QtWebKit module. The fact is that, i know a little about the web browser system, that it acts like a compliers …

Software Development c++ qt web-browser web-server
Member Avatar for switch3d
0
168
Member Avatar for xorpej

hi evryone. i really dont get it. i want to put keyboard shortcuts on the button i have other than clicking this buttons. but the problem is i dont know how. i tried putting an ampersand (&) sign before the text of the buttons and it work, but the ampersand …

Software Development vb.net
Member Avatar for biglovehaha
0
221
Member Avatar for eternaloptimist

i have a few questions.: 1)if i wanted to write a line of code needed to declare a 1-dimensional array named names that can hold 8 string values would this be correct?: char names[8]; 2)how would i write the code needed to assign strings to each element of the array …

Software Development c c# c++
Member Avatar for eternaloptimist
0
107

The End.