132,726 Archived Topics
Remove Filter ![]() | |
[CODE]#include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <windows.h> #include <ctime> #include <conio.h> #include <ctype.h> #include <iomanip> using namespace std; void gotoy(int y); void timechange(time_t start1); void timeevent(); int boost=0; int Eboost=0; int power=40; int HP=100; int EHP=100; int Epower=10; int dtime=0; time_t start, end,start1; int main() { start=time(NULL); … Software Development c++ | |
I want to accumulate time into a variable (Time1) and have it count hours, minutes and seconds. It should not carry over to date when it passes 24:00:00 but should go to 25:00:00. For example, if I have 22:00:00 hours on a project and spend another 10:00:00 hours the total … Software Development visual-basic | |
![]() | Hi, I have this sample program where the compiler gives me error for the break statement. The error is " misplaced break in afunction" Could anyone help me understanding why the break statement gives an error? i understand that u can use break in a for , while loop etc., … Software Development c++ |
:'( hi guys hope you can help i have written a small project used to simulate a cash reg however i have 3 froms on it ,main,checkout and about my problem is that if i move my main form to say left had of screen when i click on checkout … Software Development visual-basic | |
So assembly language interrupts are signals to the OS asking it to perform an action based on what is in the register. I was thinking, what would happen if there is no OS on the device you are programming. If you can't use interrupts from the OS would you have … Software Development assembly | |
I'm trying to develop a program that takes input from the user (an odd number between 3 and 25) and then uses that to display the magic square for that number. This is what I have so far: [CODE]#include "stdafx.h" #include <cstdlib> #include <iostream> using namespace std; const int MAXBOARD … Software Development c++ | |
Is it necessary to have the "All files" option in the dialogBox. I tried removing it but it won't compile. gives some sort of error this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|" + "All files (*.*)|*.*"; Tried removing the [+ "All file ] onwards string. this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|"; … Software Development | |
Hi..by the way i'm mark...a newbie in visual basic and my question is this... How or what is the codes used to connect from visual basic to "SQLyog"...just like visual basic to ms access?... Software Development visual-basic | |
right I'm trying to clear some things from this example code: [QUOTE] DOSSEG .MODEL SMALL .STACK 200h .DATA OurString DB "This is a string of characters. " DB "Do you lack imagination? Put something interesting here!$" .CODE START: MOV AX, SEG OurString ; Move the segment where OurString is located … Software Development assembly | |
hi i have just begun C++. I already put some time in learning this so i now a few basics like creating a class and pointers and such. but ive only been able to get a simple dos-window. I know there is a window.h class that creates normal windows but … | |
I'm trying to write a conversion function. I want to be able do something like this: [code=cpp] //ConversionType_1 Convert<ConversionType_1>("Abc123"); //ConversionType_2 Convert<ConversionType_2>("Abc123"); [/code] I want to be able to switch between different data sets. The solution I've come up with so far seems less than optimal to me: [code=cpp] enum ConversionType … Software Development c++ | |
[CODE]public class table extends JPanel implements ActionListener{ JButton addInfo; public table(String dataFilePath) { JTable table; model model; Font f; f = new Font("SanSerif",Font.PLAIN,24); setFont(f); setLayout(new BorderLayout()); model = new model(dataFilePath); table = new JTable(); table.setModel(model); table.createDefaultColumnsFromModel(); GridLayout layout = new GridLayout(80,30); addInfo = new JButton("Add Data"); addInfo.setSize(80, 30); addInfo.addActionListener(this); //action … Software Development java java-swing | |
I was looking over some code for an open source project and I saw some strange whitespace stuff that I didn't even think would run. The thing is, it runs just fine. I was wondering if someone could explain what I'm missing. I don't want to copy the exact code, … Software Development open-source python | |
gentlemen... I don't want you to solve it for me all what I want is to give me some hints how to solve this question... for example what kind of function you recommend me to use and what kind of loops you recommend me to use also ..... Write a … Software Development c++ | |
Hi, Something new from me: I have an application which can act as server and client (launch them on separate PCs). I need the server stdout because it displays some data for evaluating their communication. I start the server through a [B]subprocess.Popen[/B] giving its stdout to [B]PIPE[/B] [CODE=Python] from subprocess … Software Development client-server python | |
I have to write log entries through my app (ASP.NET -VB-) In my understanding that's what I do: created a DLL Message library, then I've created certain registry entries, and insert the log entry using System.Diagnostics.EventLog.WriteEntry method on my app, then, it insert the entry but seems to be wrong … | |
I am a begginer and i know almost nothing in java. our prof has asked me to write a program that computes 50 employees salary (normal,overtime and bonuses) ,print the result and keep a back up. can somebody please help me write the code. Software Development java | |
I want to connect to sybase from java using jdbc:odbc bridge.. Which driver should I use like I have used "ODBC for Oracle" Plz help.. | |
Dear Friends I have working knowledge of java. but when it comes to make a java reportsi don't know how to proceed. will any one help by guiding me or by providing me some tutorials to make reports in java. i am unable to visualize a solution. i don't understand … Software Development java | |
I am creating a script that allows me to calculate the future value of an investment at the end of x years, but I am having a little trouble writing the summation syntax in my script. I am not familar with the sum syntax so I do not know how … Software Development python | |
I am using VC++ 2008, and i am trying to create a little software to search for a folder and explore it in a new window.(like I open/explore c: drive) I don't need to browse for the folder and open it from there. I tried using 'ShellExecute' but didn't work.when … Software Development c++ | |
Help .. I'm supposed to make a java program that will create an output of increament whre the last number is 10 and the series is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 .. it's like counting to 10.. we're supposed to use a do-while loop or … | |
Hi when i use the following code i get a warning 'Public Shared Function GetHostByName(hostName As String) As System.Net.IPHostEntry' is obsolete: 'GetHostByName is obsoleted for this type, please use GetHostEntry instead. [CODE]Dim host As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName) 'gets the machines current IP [/CODE] now the code works and shows me … | |
I want to show some information to the user in a nonmodal form. Basically just like a message box (doesn't even need buttons) except nonmodal (and doesn't beep). I could probably create a form from scratch, but I would think this type of form already exists somewhere in .net?? Software Development vb.net | |
I am using VC++ 2008, and i am programing a little software to search for a folder and open it. My problem is i have no idea how to open a folder. Please help Software Development c++ | |
Hi, I have a label on my form but when you type in the text it all stays on one line. So i set its max size to force it to tab the text but it only shows two lines. How do i set it to allow me to enter … Software Development vb.net | |
I'm a computer science major with a background in C++, not Java. My professor told the class that the Scanner class has a nextInt(), nextDouble(), nextFloat(), etc for every primative type. But whenever I try to use nextChar(), the compiler gives me an "undefined symbol" error. That means that there … Software Development java | |
I am making a recursive treeview that lists the directories on my server [or trying atleast]... So far so good , it seems to work, cept it does not load all the files / directories, please consider my code : [code=C#] void recurese(string root) { // New instance of the … Software Development file-stream | |
Hello everyone, I am querying an MS Access database to find duplicate records and list the results in descending order. I am using a 'while' loop to read through the records but I'm finding it difficult to store the results in separate variables, i.e. the query finds three results where … Software Development sql | |
Hello, Thanks in advance for any help. I am running a fairly good-sized MPI-C++ code, and I am getting a frustratingly unreproducible segfault. I am also having trouble with gdb (I think because of my MPI implementation), but I think the problem may have something to do with the fact … Software Development c++ | |
hello.. i really need help.. I don't know why i keep on getting an empty stack if i pop a token from stack even if user has already push a token into it.. [code=java] public class MStack implements Stack{ public Node top; public Node[] stack; public static int T[]; public … Software Development algorithm java user-interface | |
i want to make one website in jsp.. ... can any one help me....about coding....plz.... Software Development java | |
hi, i have 2 txtboxes n 1 label, a division if performed wid txtbox1 and txtbox2, then the result displayed in a label. How can i format the label to display it to 2 dp. my current code is as follows: [code] Public Class Form1 [INDENT][/INDENT]Private Sub btnExit_Click(ByVal sender As … Software Development vb.net | |
I had code: [code] Program.cs ---------- using System; class Exercise { static void Main(string[] args) { People.Person man = new People.Person("Hermine Sandt", "Male"); 1 HighSchool.Teacher staff = new HighSchool.Teacher("Vice Principal"); Console.WriteLine(); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } Persons.cs ---------- using System; namespace People { public class Person { … Software Development | |
actualy i need help i m making a software in java swing i hv a problem in retriving values from database in JTable, i m inserting values in database ms access it works, following is my code one is for database another one for table ..................................................................................................................................... [code] import java.sql.*; public … Software Development java java-swing | |
Can anybody give me a hint about how to put these two techniques together? I can use the "this" reference to control access to the private fields of an individual object: using System; namespace MyNamespace { class Program { static void Main () { Citizen citizen = new Citizen (); … Software Development | |
the problem is as follows i ahve to build a software in c++ which would be able to perform biomatrix operations. it means that: it scans your face.. stores it into its file or database.. for the next scan.. it should compare with all the previous stored file and should … Software Development c++ | |
hello guyz,,i just want to ask if you know a site that have a free ebook that would explain best the data structures..we have a problem to code..and it is about queues,,and sorting,,and i hope to find a best ebook that will explain best about the sorting and the queues,,,thanks … Software Development java | |
i am curious about this palindrome....is there somebody give me some code so that i have a background knowledge to this topic, Software Development | |
Hi all, Good day to all. I trying to do a program using VC++ window form that involved loading the data from .csv file and displayed it into the window form with labels. Vice versa, when the user key in data, four of the below show column values will changed, … Software Development c++ | |
In a database program we configure the Access file through ODBC option provide in the control panel. Then we obtain the dns name of the database with wich we connect it to or application. This all is done explictly. I would like to know if this task can be done … | |
im currently a college student and im studying c++ at the moment. i need to create a multi array for name and password (but it will be from user input) not to mention i cant write to this array until i confirm it doesn't already exist in this array. Im … Software Development c++ | |
/*Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amount = $200,000, the term = 30 years, and … Software Development java user-interface | |
Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char … Software Development c++ | |
what would I use pointers for? I used to have a vague understanding of a pointer... like, *ptr is the value pointed to by the pointer, ptr is the address the pointer is pointing to, and &ptr is the address of the pointer itself? or something? the one example I … Software Development c++ | |
So I'm working on a C++ program and part of it involves converting decimal numbers to hexadecimal. I have been using printf("%02X",number) to do this, but I'd like to print to a text file. Just wondering if anyone knew of a way to send formatted text to file rather than … Software Development c++ |
The End.