132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for n.aggel

hi, to get the current time you use this statement: [inlinecode] time_t now = time(0); [/inlinecode] i was wondering how can i check the time stored in this variable if it falls in a specific time interval, i.e. between 5 and 6 am. I am thinking one way to do …

Software Development c++
Member Avatar for Ancient Dragon
0
153
Member Avatar for Mirasol

I am just starting Visual Basics and I was fine until I had to learn variables and calculations. I just received an F on my last project and was wondering how in the world I can go about learning variables and constants and declaration. How do they relate? On the …

Software Development vb.net
Member Avatar for Dukane
0
88
Member Avatar for himanjim

Unsigned char is 1 byte long.. it's range is from -128 to 127 Most significant bit is sign bit to indicate whether the char has positive or negative value and the rest 7 bits are meant for storing the actual value of char... so the max +ve value of char …

Software Development c++
Member Avatar for Ancient Dragon
0
251
Member Avatar for Duki

Hey all, here is the part of my code I need help with: #include <iostream> #include <iomanip> using namespace std; int main() { int acctNo, dayMin, nightMin, tmin; double amtDue; char serviceCode; cout << "Account Number: " << flush; cin >> acctNo; What I'm wanting to do is, if someone …

Software Development c++
Member Avatar for WaltP
0
304
Member Avatar for rhythm

Hi everybody, this is my first post to the community and I need your help. I have a final project that I am working on for my C++ programming class. The functional particulars are: [LIST] [*]Program must be command-line based and interactive, allowing the user to control its operation by …

Software Development c++ first-post
Member Avatar for John A
0
708
Member Avatar for saintlysav

I have a complicated problem at hand, and im open to any suggestions for solving it. Im working with a program called Psi which is written in C and has the GUI in Tcl/tk. A guy working on this earlier added 2 functions to get and set some properties of …

Software Development c gui python
Member Avatar for saintlysav
0
116
Member Avatar for turquoise

Hi...I have posted here once with a question but it was way back and i figured it out by myself :) the thing is, i dont catch onto qbasic well at all. it involves math and a lot of memorization which i am really bad at :rolleyes: right now, i …

Software Development visual-basic
Member Avatar for mjwest10
0
620
Member Avatar for nagramana

It is possible to drag and drop an mailitem from Outlook to Explorer or MSWord or desktop. In the same way Is It possible to drag to C# Windows Application? Ramana

Software Development c#
Member Avatar for shyamkishore
0
359
Member Avatar for CurtisBridges

I have written a program that work as supposed to, except the output needs to be in 2 cols. instead of 1 col. in console. Could someone help me to format this? Below is the program and the output I need to change. 14.14.cpp : Defines the entry point for …

Software Development c++
Member Avatar for Infarction
0
148
Member Avatar for bukaj

HI, can somebody help with this? This is my source code but i was trying to overwrite it, from C to C++. but no way, I'm not good at this. Language doesn't matter. it's slovak. I just need help with syntax. Thanks. [code=c] #include <stdio.h> #include <stdlib.h> #include <stdio.h> #define …

Software Development c++ ide
Member Avatar for bukaj
0
171
Member Avatar for Lazaro Claiborn

Hello, I've recently, inadvertently, found incentive to write my own Tic-Tac-Toe game. I've been working on it for more-or-less 15 minutes and would like some help or a point in the right direction. It is almost finished but there is a function, namely the "_scan4Winner" function, that I must write …

Software Development algorithm c++
Member Avatar for Lazaro Claiborn
0
469
Member Avatar for blondie2007

Hi everyone, I am new to C# and also new to programming and I'm having a blonde moment. I have been working on this project for a week but have not figured out how to work this one out. I would appreciate any help you can provide. 1. Output total …

Software Development c#
Member Avatar for blondie2007
0
147
Member Avatar for jitender_jitu

hi I m gettting this error java.lang.NoSuchMethod , i hv tried but not able to get the answer, I m using one method that is in diffrent class and that class has public static void main(String[] args) { } Plz provide me wih solution. Jitender

Software Development java
Member Avatar for peter_budo
0
135
Member Avatar for goofa

hey guys this is my program ,every thing works great but i want to to make aloop which makes the program play again,idon't know how to do that for multi methods program can some one help me. i know i have to create string and use that to loop the …

Software Development java
Member Avatar for peter_budo
0
113
Member Avatar for carmen

Hello to all. They are new of the forum. I am trying disperatamente a activex that me it concurs to record laudio using the modem or the audio card. I tried something of professional. I hope that someone to help me in this deprived of hope search. Thanks :sad: :?:

Software Development audio visual-basic
Member Avatar for gopinathar
0
195
Member Avatar for Matt Tacular

I have an image being displayed in a Tkinter window. I need a way to add letters to the image in certain spots depending on what is done by the user. Example: if button 1 is pressed, the peoples names appear over their heads, but I can't just switch the …

Software Development python tkinter
Member Avatar for mawe
0
3K
Member Avatar for lotsofsloths

ok, i am going to *attempt* to make a tic-tac-toe kinda game... he is what i got so far.. PLEASE help it out!(i will update the code sometimes).. [CODE] #include <iostream> using namespace std; int main () { int line1; int line2; int line3; int line4; int line5; int line6; …

Software Development c++
Member Avatar for Lazaro Claiborn
0
321
Member Avatar for torbecire

I am trying to replace all characters in text with char [*]. It only displays the first four. If i type anything after 6 digits it displays 5 [*]. Could anyone help me?. Look at the function twoplayer(w). Thats the one i am concerned with now [CODE=c] #include <iostream> #include …

Software Development c++ flash
Member Avatar for John A
0
105
Member Avatar for ryy705

Hi, I have been trying to learn how to create web services for last few weeks. In the process I learned about xml, mySQL, JDBC, servelets, and javabeans. At this point, if you give a specific task such as 'get price for a certain item from the database and display …

Software Development java xml
Member Avatar for ryy705
0
92
Member Avatar for Duki

Hey everyone, I have a question on one of my homework problems. I'm in basic structured programming; C++. The question states the following: The root of the quadratic equation ax^2 + bx + c = 0, a ≠ 0 are given by the following formula: [U]-b +/- √b^2 – 4ac[/U] …

Software Development c++ first-post
Member Avatar for Duki
0
2K
Member Avatar for SHWOO

I cannot figure out why I am getting these two errors error C2504: 'arrayListType' : base class undefined error C2143: syntax error : missing ',' before '<' [code] // Jon Wayman // class that is derived from arrayListType template <class elemType> class unorderedArrayListType: public arrayListType<elemType> { public: void insertAt(int location, …

Software Development c++
Member Avatar for Narue
0
150
Member Avatar for talablink

Hello I need help. I need to write a program that changes all upper case letters to lower case letters and all lower case letters to upper case then the vowels with an *... it would look like this normal= UppER loweR caSe output should be this.. *PP*r L*W*r C*s*.. …

Software Development java
Member Avatar for jwenting
0
319
Member Avatar for GreenDay2001

I just wanted to ask what is [INLINECODE]bioskey()[/INLINECODE], what does it do, and how to use it?

Software Development c
Member Avatar for Narue
0
143
Member Avatar for goofa

[COLOR=#0000ff]1 [/COLOR][COLOR=#941edf]import[/COLOR][COLOR=#000000] java.util.*;[/COLOR] [COLOR=#0000ff]2 [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#941edf]class[/COLOR][COLOR=#000000] CALC[/COLOR] [COLOR=#0000ff]3 [/COLOR][COLOR=#000000]{[/COLOR] [COLOR=#0000ff]4 [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#941edf]static[/COLOR][COLOR=#941edf]void[/COLOR][COLOR=#000000] main (String[] args)[/COLOR] [COLOR=#0000ff]5 [/COLOR][COLOR=#000000]{ [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] much;[/COLOR] [COLOR=#0000ff]6 [/COLOR][COLOR=#000000]System.out.print([/COLOR][COLOR=#00cb00]"\nEnter the number of numbers "[/COLOR][COLOR=#000000]); [/COLOR] [COLOR=#0000ff]7 [/COLOR][COLOR=#000000]Scanner input=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#000000] Scanner(System.in);[/COLOR] [COLOR=#0000ff]8 [/COLOR][COLOR=#000000]much=input.nextInt(); [/COLOR] [COLOR=#0000ff]9 [/COLOR] [COLOR=#0000ff]10 [/COLOR] [COLOR=#0000ff]11 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][]num=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][much];[/COLOR] [COLOR=#0000ff]12 [/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000][]perc=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000][num.length];[/COLOR] [COLOR=#0000ff]13 [/COLOR] [COLOR=#0000ff]14 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][]den=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][num.length];[/COLOR] [COLOR=#0000ff]15 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] total=0;[/COLOR] [COLOR=#0000ff]16 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] total1=0;[/COLOR] …

Software Development java
Member Avatar for goofa
0
140
Member Avatar for ReDeViL

Hi guys need a little help for my homework, any help is greatly appreciated. :cheesy: Qn 1. pointers i have a problem with passing pointers to functions code is as follows: [code] //function declaration void computeProduct(product *pProduct,int *pBest); //function call computeProduct(product *pProduct,int *pBest); //function definition void computeProduct(product *pProduct,int *pBest) { …

Software Development c++
Member Avatar for ~s.o.s~
0
228
Member Avatar for tinie

I have read that iterators are used to traverse through the elements of container classes. If I wanted to use iterators to move through elements of a 2d vector, how am I going to declare it and use it? Maybe what I said was not too clear, let me rephrase …

Software Development c++
Member Avatar for Narue
0
4K
Member Avatar for Duki

Hi all I am new to C++ and have a few questions if that is ok. I would like to get into good habbits early (i.e., using switch instead of 12 if else statments) and was wondering if anyone knew right off how to get a timer to time the …

Software Development c c# c++
Member Avatar for Narue
0
141
Member Avatar for Metsfan147

Hi, I'm just starting to learn about x86 assembly and was surprised at the seemingly small amount of registers. The 8 general purpose registers you always read about /use eac, ebx etc. . are they the only GP registers on a processor or are there others that depend on the …

Software Development assembly
Member Avatar for mathematician
0
225
Member Avatar for Acolyte

Hello, I have a simple script with 2 buttons positioned vertically within a sizer on a panel. A button-click event attached to the top button changes the height of the top button. However, even though the height of the top button changes, the height of the bottom button does not …

Software Development python
Member Avatar for Acolyte
0
89
Member Avatar for vinod_javas

Hey buddies.., I m developing some project using java swing... in that I got a problem like......if i use timer thread in label means i couldnt perform any other action in that panel like button click event and all.... it becomes too slow in action....

Software Development java java-swing
Member Avatar for vinod_javas
0
150
Member Avatar for soveijn

i dont have any code yet because im not sure of the best way to go about doing this. 1. i have multiple dlls that i want to statically link to my program 2. when my program starts i want all the dlls to do their own intialization 3. i …

Software Development c c# c++
Member Avatar for soveijn
0
78
Member Avatar for Harshita_garg

Hi! can somebody please tell me how to avoid floating point overflow error? Mine is a very big program that uses double data type. Is there any way in which I can roundoff double numbers to upto certain digit?

Software Development c
Member Avatar for Lazaro Claiborn
0
425
Member Avatar for Bomber686

Hi all, I have this code [CODE]Option Explicit Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal …

Software Development visual-basic
Member Avatar for Bomber686
0
885
Member Avatar for trunks1212

Ok, I'm writing code for Tic-tac-toe game and I'm almost done I just can't get it to stop when Player 2 wins. It works fine when Player 1 wins or if there is a tie. I know it's short notice, but can anyone help me before tomorrow morning. I would …

Software Development c c# c++
Member Avatar for John A
0
163
Member Avatar for nadith_cs

this is a program which will help you to find the roots of any given function.... and please note that i have made comments on the lines which compiler gives an error. actually it compiles really well. i think it is something wrong in the values which are assigned to …

Software Development c++ email
Member Avatar for iamthwee
0
112
Member Avatar for kobi

Hello , When im trying to compile this code it goes well,but when i run the prog i just get a flash of the cmd ,please can you tell me what i doing wrong?-im using the compailer of dev c++ [code] #include <stdio.h> #include <stdlib.h> #define _WIN32_WINNT 0x0501 #include <windows.h> …

Software Development c++ flash
Member Avatar for Ancient Dragon
0
394
Member Avatar for chris99

I am trying to follow the tutorial on making the whack-a-monkey game, but it keeps giving me this error message: [QUOTE] Traceback (most recent call last): File "C:/Documents and Settings/Christopher/My Documents/pygame/examples/examples/monkeystuff.py", line 128, in -toplevel- chimp = Chimp() File "C:/Documents and Settings/Christopher/My Documents/pygame/examples/examples/monkeystuff.py", line 66, in __init__ screen = pygame.display.get_suface() …

Software Development python
Member Avatar for bumsfeld
0
284
Member Avatar for LSPUWILLC

I decided to evaluate a Java game and I chose the famous snake game (actually "snake pit") , since I am just a begginer at these things I need some help :sad: ! What are the typical Java characteristics in this game?? ([COLOR=red]How can I recognise that this is a …

Software Development java
Member Avatar for jwenting
0
163
Member Avatar for Rickenbacker360

Hey again, I was hoping someone here could look at my code and tell me why I'm not receiving the correct output. Here's what I'm supposed to do:Write a program that asks a user to enter an integer, say n,then list all the numbers that are less than or equal …

Software Development c++
Member Avatar for psycotic_furby
0
123
Member Avatar for sandy2005

Hi I have found the following code for Redirecting the user to loginpage on Session timeout : /////////// Protected WithEvents body As System.Web.UI.HtmlControls.HtmlGenericControl Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load body.Attributes.Add("onLoad", "window.setTimeout(""window.location.href='login.aspx'""," & (Session.Timeout * 60 * 1000) + 5000 & ");") Response.Write("Wait for session …

Software Development session
Member Avatar for mvalid
0
1K
Member Avatar for aruna_ajikumar

how to connect a table in oracle to VB.net. kindly give me the sample code.

Software Development oracle vb.net
Member Avatar for kapil.goyal
0
67
Member Avatar for thecabeza

Hey guys, I need help... I need to write a program that converts uppercase to lowercase letters in java, in netbeans 5.0, and i have no idea how to do it. Thank you, i would apreciate your help.

Software Development java java-netbeans
Member Avatar for masijade
0
204
Member Avatar for katharnakh

Hello, I have a script to read remote file. The script goes as follows, [code=Perl] #!C:\Perl\bin\perl.exe $remote= '\\\remotehost\remotedir\remotefile.jml'; open(fp, $remote) or die ("could not open the file"); print while(<fp>); close(fp);[/code] This script runs fine on my windows machine. But the same script when I run in UNIX, after changing the …

Software Development file-system perl unix
Member Avatar for masijade
0
113
Member Avatar for tinie

I am currently programming in Linux using the g++ compiler. I was trying to make an open function that would open a file and store its contents in a 2d vector. I was successful at doing the said function. I thought I was done with it, but I realized that …

Software Development c++
Member Avatar for Lazaro Claiborn
0
135
Member Avatar for LSPUWILLC

I decided to evaluate a Java game and I chose the famous snake game (actually "snake pit") , since I am just a begginer at these things I need some help :sad: ! What are the typical Java characteristics in this game?? ([COLOR=red]How can I recognise that this is a …

Software Development java
Member Avatar for vinod_javas
0
190
Member Avatar for Tauren

Alrighty, ur in the game you click a NPC, you click to buy an item. It then sends a packet to the server seeing if you have enough money an so on if you do it sends a packet back? Would that be correct? If not can someone help me?

Software Development c++
Member Avatar for WolfPack
0
127
Member Avatar for purplestar86

Please help me how will i solve my problem with login. The requirement is to terminate/lock the system, if after 3 attempts, the user failed to entered a right password. I used a some codes (indicated below). When i enter a correct username & password, it shows the next form. …

Software Development visual-basic
Member Avatar for waynewilson1
0
135
Member Avatar for aj_daria

How can i add, delete, update using datagrid?currently, im using Sql Server as the database.

Software Development vb.net
Member Avatar for kapil.goyal
0
123
Member Avatar for royaloba

hello Guys, can somebody help me reading a .dat file then output the file in a textfile sample .dat file 1 2007-02-12 18:13:13 1 1 2007-02-12 18:13:20 1 1 2007-02-12 18:13:23 1 1 2007-02-12 18:14:04 1 12345 2007-02-12 18:15:15 1 1 2007-02-12 18:15:17 1 12345 2007-02-12 18:15:19 1 sample Output …

Software Development file-system visual-basic
Member Avatar for royaloba
0
844
Member Avatar for amt_muk

Hello friends, I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not. Can you pls give me some idea to solve it? Thanks in advance. Amit

Software Development c
Member Avatar for amt_muk
0
124

The End.