132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rbinc

[B]Here's my problem: [/B] The user needs to enter a char/string for a .dat file with a max of 15 characters. I've tried to use both a char and a string to make sure the user enters 15 or less characters. If I use char, and if the user inputs …

Software Development c++ file-system
Member Avatar for rbinc
0
113
Member Avatar for mikki2

hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my …

Software Development java
Member Avatar for mikki2
0
80
Member Avatar for affiliate7

Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] …

Software Development c file-system
Member Avatar for WaltP
0
119
Member Avatar for mattyd

I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to …

Software Development python
Member Avatar for jrcagle
0
82
Member Avatar for Zeithgeist

Hallo! New in Java, and asking a very stupid question: Can i change the icon "?" in showInputDialog? `cause in JOptionPane.X i can do it, like JOptionPane.ERROR_MESSAGE, or JOptionPane.WARNING_MESSAGE. :mrgreen:

Software Development java
Member Avatar for Zeithgeist
0
145
Member Avatar for nissa2424

Hello everyone This is my problem- I am a C# student and I wrote a program for a address phone book. So when my teacher offered extra credit- I accepted- but the catch is he's not going to help at all. He said we can use any source but him. …

Member Avatar for nissa2424
0
120
Member Avatar for Matt Tacular

I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python?

Software Development first-post python
Member Avatar for Matt Tacular
0
82
Member Avatar for badran

I have this little problem.... I have a dynamic array.... I have to creat a function to give me the max and min values of that array... I can't think of a way to send data to a function without knowing the number variables.... can anyone give me a nudge …

Software Development c++
Member Avatar for badran
0
230
Member Avatar for limergal

Hi I need help in programming with strings....I started a code, but I'm not sure how to do it....Please help [LIST=1] [*]read in one string which consists of two words Ex. "Computer Science" [*]call a function [B]makewords()[/B] which receives three parameters: a string which holds the original phrase and two …

Software Development c++
Member Avatar for limergal
0
112
Member Avatar for MacLeopard

Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah="*" uid="ekdopakek"> So let's just say we've got this 48764546545blah<blah="whatever" uid="ekdopakek">blahblahblah I'm looking for a function that will return the whatever, and just the whatever (nothing else). Thanks![/code]

Software Development c++
Member Avatar for Ancient Dragon
0
900
Member Avatar for Mushy-pea

Hello everyone. I was writing somthing in C++ today and a little "issue" occured to me. How can you avoid the possibility of a buffer overrun when reading from STDIN into a character array? In this simple example [code]#include <iostream> using namespace std; int main () { char *some_text = …

Software Development c++
Member Avatar for Salem
0
100
Member Avatar for jd_1604

Hello. I am currently dabbling with C++ with view to learning openGL. I am using Microsoft Visual C++ and Borland compilers but the problem is neither of these programs want to accept any OpenGL code I put into them. Can someone please help me?

Software Development c++ opengl
Member Avatar for jd_1604
0
116
Member Avatar for reyhan12

hi, i'm trying to figure out how to mirror a given a value. for example: FF0A, i'd like to make it A0FF. i thought of a code like shifting it left 8x but i find it brute forceish. is there a better way? thanks

Software Development assembly
Member Avatar for reyhan12
0
74
Member Avatar for mscerri

hi everyone; i am doing a project for my sis in unversity, and it says that i have to find [B]the first 100 prime numbers and store them in an array.[/B] i managed to find the prime numbers but when i try to store it in an array a bunch …

Software Development pascal
Member Avatar for jwenting
0
136
Member Avatar for harisha

hi. this is harisha, newbie. how to compare two strings in java.:confused: . String id,t; if (id.compareTo(t) > 2) {....} is this correct.while i compile it shows error. reply me soon..

Software Development java
Member Avatar for jwenting
0
126
Member Avatar for nnobakht

hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and …

Software Development algorithm python
Member Avatar for nnobakht
0
114
Member Avatar for cambrian

Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me …

Software Development os-x python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for aznballerlee

My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters …

Software Development c
Member Avatar for Dani
0
677
Member Avatar for speterson

I am having problems trying to create arrays from text files. The text files created from the program I am working on is like this: Name Test1 Test2 Test3 Avg Grade =================================== Student 999 999 999 999 X The first two lines in this are headings that are added into …

Software Development vb.net
Member Avatar for speterson
0
256
Member Avatar for Teachingmyself

Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of …

Software Development java
Member Avatar for Teachingmyself
0
107
Member Avatar for romex21

Hi, I am running a webapp in Tomcat 5.0 with Axis 1.4 My web app loads on startup. When I make a SOAP call to the webapp (which is a servlet) it takes a new instance of the servlet instead of the original servlet that is already running. The wsdd …

Software Development first-post java
Member Avatar for jwenting
0
100
Member Avatar for 14fg

Hi Could someone please help me do this final yer project please, your help is greatfully apperiated. Here it is: The form should be white and in the centre of the screen. There is a vertical black line down the entire form, dividing it into approximately two halves. All the …

Software Development vb.net
Member Avatar for Ancient Dragon
0
109
Member Avatar for Brent.tc

I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application …

Software Development api c++ windows-api
Member Avatar for Ancient Dragon
0
113
Member Avatar for pugg09

It's the newb again. I have a lousy professor who won't even show us how to get started on importing a file (call it 'independent study'). Can anyone help me? I need to import the following data to produce a bar graph. Here's the data. Can anyone help me to …

Software Development c++
Member Avatar for Lerner
0
112
Member Avatar for seth0x2b

Hey guys. Please bare with me since I'm only learning asm for about 48 hours or so.. I've learned enough to open files, read from/write to them... I know how to use the WIN API from within ASM and ..honestly, it's much simpler than C++ (IMHO)... So..I've written this basic …

Software Development api assembly file-system windows-api
Member Avatar for Ancient Dragon
0
2K
Member Avatar for superC

[code]#include<iostream.h> int rek(int i) { double s=0.9; if (i) s+= rek (i/10)+i%10; return int (s+0.5); } int main () { cout << rek (1234); }[/code] We have test. This is one of the question from last year. My question is: From where is solution/result: [B]15[/B]?? I'm beginning, where main () …

Software Development c++
Member Avatar for superC
0
121
Member Avatar for mahe4us

Dear ALL, Iam a PHP programmer and I have one year experience in php programming. Now I would like to study PERL and its features. can any PERL prorammer let me know the good tutorial or URL for studying PERL. Really its helpful for me..... Thanks in advance....

Software Development perl
Member Avatar for Puckdropper
0
163
Member Avatar for sguy

I've did a program using vb6 to connect to oracle9i, i can establish the connection, the problem is when i execute the query in oracle sql*plus, it can execute successfully, but when run in vb application, the records affected return 0, it do nothing for this query, any setting need …

Software Development email open-source oracle sql visual-basic
Member Avatar for sguy
0
159
Member Avatar for snedan

Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and …

Software Development c c# c++
Member Avatar for snedan
0
347
Member Avatar for moussa.eltayeb

Please any one know :- ------------------------ 1- How to change the size font in c++? 2- How to get one char without press "Enter" ?

Software Development c++
Member Avatar for ~s.o.s~
0
115
Member Avatar for Matt Tacular

When coding in Tkinter, you can make a button, then when the button is pressed, it refers to something that you defined, or whatever its called when you use the def statement. What I'm wondering, is if there is a way to do this in non Tkinter programing. I am …

Software Development python tkinter
Member Avatar for Matt Tacular
0
209
Member Avatar for toomuchfreetime

Hey everyone new to the board and in a bit of bother. I've got this assignment thats been plaging me for two weeks but i can't do this one bit as i just don't get it. I've got to write a programme that takes data in from a file and …

Software Development c
Member Avatar for Salem
0
120
Member Avatar for Kediemetse

I am new in VB.NET/ASP.NET, I want a user to logon to the aspx page using access level, If Access level is Administrator or User Or Manager different links or page be display or if Access level is User all the link relevent to admin should be disabled visa vesa. …

Software Development asp asp.net vb.net
Member Avatar for jbennet
0
82
Member Avatar for Corum

For a program I'm making the user needs to enter a string and then it will be checked to see if it is a palindrome. So far I've managed to reverse the ordering of the string entered so that I have the original string and the reverse version of it. …

Software Development assembly
Member Avatar for mathematician
0
171
Member Avatar for ayesha sonia

hye guys Hi plz help me i need to run following java commands but in console [B][COLOR=blue]CLEAR CPU // printall CPU Registers ( GENERAL purpose Registers , Speical Purpose Registers, Program Counter & flag) [/COLOR][/B] [B][COLOR=blue]KILL // Kill process Id [/COLOR][/B] [B][COLOR=blue]Load // Load a process and suspend it untill …

Software Development java operating-system
Member Avatar for jwenting
0
88
Member Avatar for Mr.UNOwen

Does anyone know what is the best function to use if you want to read user input and not have the return key carry over? Everytime I write something that reads in two things, the second read in always ends up being '\n' because the return key carries over to …

Software Development c
Member Avatar for WaltP
0
85
Member Avatar for mattyd

Hello: I am trying to use the Python Sleep Function via [I]import time;[/I] I get results but not the results I am looking for. What I am trying to do is rather simple and only for visual effect in a Python GUI: [B]Display GIF --> Sleep (pause) 5-seconds --> Display …

Software Development gui python
Member Avatar for mattyd
0
426
Member Avatar for kobi

Hello , i have in a director c:\files_t several files t1 t2 t3...t300 i need to analize each on-the analize operation is not importent how can i [B][U]open each file in a loop[/U][/B] and analize them?-in [U][B]C[/B][/U]code thanks ahead

Software Development c
Member Avatar for ~s.o.s~
0
191
Member Avatar for mattyd

Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. …

Software Development file-system open-source python tkinter
Member Avatar for Ene Uran
0
6K
Member Avatar for hvalmighty
Member Avatar for aileenveliz87

I need help in writing a fuction call delete_repeats that has a partially filled array of chararcters as a formal parameter and that delets all repeted letters from the array. It should also have two formal parameters: an array parameter and a formal parameter of type int that gives the …

Software Development c++
Member Avatar for Nick Evan
0
126
Member Avatar for DaveNY

I wrote code for an assignment that will output 4 triangles, 1 next to the other. It uses the While and nested For loops. The problem is the output is ok for the 1st and 4th triangle but the 2nd and 3rd need to be mirror images of what the …

Software Development java
Member Avatar for DaveNY
0
283
Member Avatar for Xelloss

First of I am not engllish speaker so if something its off forgive me please. Now on the topic, I have not touch VB in 4 or years and now changing from VB6 to VB 2005 Now I used to work with dataset on VB6 but the teacher is really.... …

Software Development dataset open-source vb.net
Member Avatar for Anirudha
0
196
Member Avatar for titotoms

Hi, I am new to shell scripting.So someone please do help me out.I have stored two dates in the given format below. cur_time=`date '+ %b%e%T'` time=`ls -lu f1 | cut -d "" -f6` I hope both these will show the dates in this format. for eg. Dec 23 10:10 Now …

Software Development shell-scripting
Member Avatar for jim mcnamara
0
108
Member Avatar for jetyan

when I selected my *.mdb files, it shows"unrecognized database format", I use VB6.0 and ACCESS2003/2007, who can tell me why? thank you !

Software Development visual-basic
Member Avatar for Ancient Dragon
0
64
Member Avatar for matrimforever

How do I read data such as song titles from a file and store them in an array? I have: [code] const int SIZE = 50; int main() { char theFile[SIZE]; cout << "Please enter a file name: " << endl; cin.getline(theFile, SIZE); ifstream theFile(" "); ... [/code]

Software Development c++
Member Avatar for Ancient Dragon
0
136
Member Avatar for jcflore3

Hi, you guys helped me on a program about a month ago and it really helped me get through the program. Therefore I really appreciate what you all do and thank you for the help last time I am having trouble finishing this program on classes the assignment is this: …

Software Development c++
Member Avatar for may4life
0
231
Member Avatar for PaulCC

Is there a method that VB uses to get the drive letter of the directory where the program files reside witout specifying it explicitly? :rolleyes:

Software Development visual-basic
Member Avatar for QVeen72
0
135
Member Avatar for limergal

I have a code, and this is another problem, that's not working; Given: an int variable k , an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and …

Software Development c
Member Avatar for Nick Evan
0
681
Member Avatar for aznballerlee

I've read my book, and there's some topics where I feel weak about: - inline functions - static members - this pointer - copy constructor I've read some tutorials online, but they use some complicated code, and I'm a beginner programmer, so I can't understand their explanations. Just wondering, if …

Software Development c++
Member Avatar for oRg
0
154

The End.