132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 ![]() | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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# | |
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++ | |
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 … | |
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 … | |
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# | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 … | |
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 … | |
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 | |
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++ | |
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 | |
![]() | |
[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 | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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 … ![]() | |
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> … | |
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 | |
![]() | 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 |
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++ | |
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 | |
how to connect a table in oracle to VB.net. kindly give me the sample code. | |
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 | |
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 | |
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++ | |
![]() | 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 |
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 | |
How can i add, delete, update using datagrid?currently, im using Sql Server as the database. Software Development vb.net | |
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 | |
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 |
The End.