132,726 Archived Topics
Remove Filter ![]() | |
[CODE]#include <iostream> using namespace std; class BigNum { private : int biggest; void determineBiggest ( int num) { if (num > biggest) biggest = num ; } public : BigNum () { biggest = 0 ; bool examineNum(int); int getBiggest() { return biggest; } }; bool BigNum::examineNum(int n) { bool … Software Development c++ visual-studio | |
I know that an array matrix would have been better but Im taking a freshman course so coulnt use it. 1- Tic tac toe grid is defined from locations 1 to 9 2- For loop executes 9 times for 9 turns 3- A functions takes all 9 locations as argument … Software Development c++ | |
Iv always had trouble with templates and I always get the same error message "Error: Templates can only declare classes or functions." program is a template linked list class and I'm using the sun studio 12 C++ compiler linkedList.h file: [CODE]#include "nodeType.h" using namespace std; template <class Storeable> class LinkedList … Software Development c++ linked-list | |
hi am developing a Outlook form using csharp, if am click Get contact button contact in the outlook are displayed in the 'datagrid view' . Its working well. at the time am getting a error message as "A program is trying to access e-mail addresses you have stored in Outlook. … Software Development email | |
Hi, I know that this topic was discussed previously but those previous threads didn't answer to my question which is: How to change color of this text: [code=c++] cout << "Some text" << endl; [/code] when I'm outside of main, i.e. in file with my class and in one of … Software Development c++ | |
I have a program where i have to use partial array intialization to read data from a file and place it into an array...there is no example of this in my class book and i'm confused! Software Development c++ | |
Hi, I have written a simple chat server and a client that can connect to it. To make it more secure, I would like to add SSL to the connection process. How would I go about doing this? Thanks in advance. Software Development client-server python | |
Hello, I'm learning Assembly and i want to know the tools that the other persons use to develop, things like: Nasm, emu8086, WinHex... All the things that you use that are related with Assembly and what the do. Only for improve my tools and my learning. Thanks, Nathan Paulino Campos Software Development assembly | |
how to make something like this work? if (KeysPressed="K"); Software Development c++ | |
hie if the user, after working with the form wishes to reset it, how can it be done. will me.refresh() help. wht is it used for? Software Development vb.net | |
can someone show me how to display the system time ? | |
Hello, I'm developing an simple OS, as you can see in my previous posts, but now i have a file that is too big for the boot sector(510 bytes), then i want to split it in two files, one that will be in the boot sector of the floppy and … Software Development assembly | |
Hello, I'm trying to write my OS to an floppy disk, but when i try to boot up, Bochs says that i don't have any OS on that floppy, here is the command that i'm using to write: #1 Try: [code]C:\Assembly> DEBUG os.asm -w 100 0 0 1 -q[/code] #2 … Software Development assembly | |
whats wrong with my code? .model small .stack .data buffer db 10,?, 10 dup(' ') .code main proc mov dx, offset buffer mov ah, 0ah int 21h xor bx,bx mov bl, buffer[1] mov buffer[bx+2], '$' mov dx, offset buffer + 2 mov ah,09 int 21h ret mov ah,4ch int 21h … Software Development assembly | |
[code] /*Output Section */ printf ("\nThat height is equivalent to " "%1f" " feet and " "%2f" " inch(es).\n"); scanf ("%f", &FEET); scanf ("%f", &INCHES); [/code] Software Development c | |
I have some textbox to send one word to sql database. i want to fine this word in a coulmn that holding few words. i cant figure it out what the correct queary iv'e try the LIKE statement in many ways but still nothing. The word can be at the … Software Development | |
Hi friends what's a role of index in RMS? when we use index in RMS? plz I need your help. Software Development java | |
Hi Friends, I am facing a very bad problem.I have added an SQL Database using VS 2005>>Add New Item>>Sql Database.The problem I am facing is not able to execute an INSERT or UPDATE.But the thing is that just after inserting and viewing the contents of the same table in the … Software Development sql | |
Hello friends I have a datagridview in my project that will show the resault of one storedprocedure.when I execute storedprocedure,It works correctly but when I call it through the program datagridview doesn't show anything.I used break point to find the problem but every thing was ok. So what's the problem? … Software Development | |
Anyone got any pointers on the interpretation of REG_BINARY data such as the ascii strings that are stored as binary values in HKEY_CURRENT_USER "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RecentDocs\\folder"; I have long mastered most of the Win32 Registry functions but never really had the need to delve into the murky depths of binary. I guess … Software Development c++ microsoft-windows | |
Can someone explain what am I doing wrong? I get "vector subscript out of range" error. Here is the sample ... [CODE=cplusplus] #include <vector> using std::vector; struct CUBE { int number; bool changed; }; int _tmain(int argc, _TCHAR* argv[]) { vector<CUBE *> cube; for (int i = 0; i < … Software Development c++ | |
The program cannot display the value which had assign to properly.The output is some weird texts.Why? [CODE] import java.util.ArrayList; class Employeee { private String name,department,position; private int idNumber; public Employeee() { name = null; position = null; department = null; idNumber = 0; } public Employeee(String n,String p,String d,int i) … Software Development java | |
Hii.. I am an IT student of final year.. I Have to make a major project with my team.. We have to make project with latest technology.. I have a very much commnd over C#.. so,i wanna make a application based project.. but I have no good project topic.. plz,give … Software Development | |
I need help with this assignment for my computer programming class..... I honestly have no idea what Im doing!!!! Convert a person's height from meters into feet and inches (rounded to the nearest whole numbers) and display the result on the screen. The height must be entered by the user … Software Development c | |
[B]#Off topic[/B] When I was logging in, I have noticed 600,00x members registered on this forum. Congrats on the 600k! ;) Hello. My console game is going pretty well, even though I don’t have much spare time to expand it. I have some ideas I would like to add, but … Software Development c++ | |
Hi there. I was wondering how I would add another form to my Form1 in a WFA project. And then when I click on a button on Form1, Form2 pops up. I have no idea on how to do this and I was wondering if anyone knew =] Thanks for … Software Development | |
Thank you in advance for any help here. This is my first post and I will try to phrase what I am thinking. I am trying to validate the entry of a field based on entry in a second field. If field "A" has value 1, 2, or 3 then … Software Development | |
I m doing Program for sudoku. The blank grid displayed but how to pass random integer values to that grid. here is my code: [code=java]import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import javax.swing.JFormattedTextField; import javax.swing.text.DefaultFormatterFactory; import javax.swing.text.NumberFormatter; @SuppressWarnings("empty-statement") public class Board { private static final Dimension FIELD_SIZE … Software Development java java-swing | |
I'm trying to pull in a file name from another class... I have a three classes... My main class, a class called Transaction, and a class called Account. I have two sequential files. "CHECKING.TXT" or "SAVINGS.TXT" that I have loaded into arrays in my main class. I need to pass … Software Development file-system vb.net | |
Hello I am making a function that takes in a date (dd/mm/yy) & returns what week number of the year the date occurs on. For eg; If I enter: 01/01/09 then the week number of that year will be 1 If I enter: 04/09/09 then the week number of that … Software Development c++ | |
Hello, im tryin to build some simple application using C#. im using the datagridview + the binding navigation. when im runing the app im available to delete and editing rows. after i click the save button its look like the app is saved the updates as long as the app … Software Development | |
Hi everyone, I'm working on an app that needs to log all of the events of every control and place them into a checkedlistbox. For example, if you click a button on the form, it should show the information in the checkedlistbox like 'button1 Clicked: x amount of times,' and … Software Development | |
Hey everyone, I'm just now learning c++ and was wondering if there was a way to loop this program so that I don't have to copy and paste it. I got it to work, but I was just curious if there was another way to do it. it just does … Software Development c++ | |
ok...i'm having trouble changing a value in a array into a character [CODE] void gameon(int **game,int &size,int &x,int &y,int &score1,int &score2) { int i,j,num1,num2; cout<<"Please enter a number from the selected row/column -->"; cin>>num1; for(j=0;j<size;j++) { if(num1==game[x][j]) { cout<<"Number found"<<endl; game[x][j]=='X'; score1=score1+num1; y=j; } } display(game,size,score1,score2); } [/CODE] i can't … Software Development c++ | |
Hi All I am trying to resize the button which is placed in a cell of GridBagLayout but FAILED...:( Like I want same size of every button (Please see the attached file for what I am getting as Output of my Program which is as follow - [CODE] import java.awt.GridBagConstraints; … Software Development java | |
Dear all, Could anyone help me on finding all magic numbers using JAVA with 1000 iterations or less? Magic numbers are 6 digit numbers that have the property that they are equal to the square of the sum of two 3-digit numbers when it's high-order and low-order digits are separated. … Software Development java | |
Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling … Software Development c | |
![]() | Can anyone help me. I am trying to create a audio frequency analyzer, that will look for specific frequencies in a wav file. TIA ![]() |
Hi friends... How can i put index on my records in RMS to increase the rate of RMS?? Software Development java | |
i just can't figure out what's wrong with this. 1. suppose i enter 9-3-1991 as the birthdate, this should return 18. but it returns 17. //wrong 2. suppose i enter 2-9-1991 as the birthdate, this returns 18. //correct what's wrong with my code? [CODE=java] private static int ageCalc(int mm, int … Software Development java | |
Hello all, i am trying to put table column to array using Visual Basic 2008 form. As i do not need to update back values to database i have used DataReader. [CODE] Private Sub Button1_click (,,,,,,,,,,) Handles Button1.Click Dim cn As String cn="Data Source='C:\Temp\DB\DBaze.sdf' " Dim qry As String = … Software Development open-source visual-basic | |
Okay... So I've actually made it to the final project in my Intermediate Visual Basic class. Yet, I'm still feeling stupid - like I've never attempted any project at all. I think my main confusion in this project is that we're using two seperate sequential files. I CAN and HAVE … Software Development oop vb.net visual-basic | |
[code]void inputGrid(string inputI, unsigned __int64 &i,int t) { do { t=1; getline(cin,inputI); i=atol(inputI.c_str()); if(i<=1) { cout<<"Please key in only the number that suitable for the grid."<<endl; t=0; } } while(!t); } [/code] //this is the function i used to solve the problem when i key in char //to an integer...but … Software Development c++ | |
I'm very new to python, as you will discover with my newb question, I am trying to create a project that prints out Ascii Banners EG _________ _________ _______ _______ _______ |\ /|\__ __/ \__ __/|\ /|( ____ \( ____ )( ____ \ | ) ( | ) ( ) … Software Development python | |
I want to copy a file to the clipboard. So if the user of my program goes into a directory or want to send the file attached in an email, they can just paste the file into the directory or email. I understand how to copy the file to another … Software Development file-system python | |
Hi there all I would like some help with my client and server program that uses gui to chat with each other. The program works fine the first time but somehow when i try to send a second message nothing gets displayed and the person object is empty. I dont … Software Development client-server gui java | |
Hi folks, i need some help on how to get this code to work properly: I have not had the time to fully commit to its intrinsics but i am sure there is someone in the community who can get me some quick help. Thanx.[code]package javaapplication1; import java.io.ByteArrayOutputStream; import javax.crypto.Cipher; … Software Development encryption java | |
How do I pass an instance of a class to the __init__ method of another class so that I can access it's variables? eg: [CODE] class my_class: variable=0 variabletwo=9 a=myclass()[/CODE] How do I access the "variable" field of "a" from another class? I could write something like a.variable but that … Software Development python | |
I understand that python provides a value for self when methods are called on the instance of a class. However, I don't understand how self works when assigning value to a variable of instance. [CODE] class snake: def __init__(self,name): self.name=name#this is the bit I don't understand. How is self.name #interpreted … Software Development python |
The End.