132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Se7Olutionyg

[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
Member Avatar for vmanes
0
145
Member Avatar for Der_sed

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++
Member Avatar for DdoubleD
0
145
Member Avatar for kyosuke0

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
Member Avatar for DdoubleD
0
268
Member Avatar for khemalatha

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
Member Avatar for jatin24
0
181
Member Avatar for atch

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++
Member Avatar for atch
0
280
Member Avatar for rena0514

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++
Member Avatar for DdoubleD
0
114
Member Avatar for SoulMazer

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
Member Avatar for SoulMazer
0
156
Member Avatar for Nathan Campos

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
Member Avatar for NotNull
0
111
Member Avatar for Miganders

how to make something like this work? if (KeysPressed="K");

Software Development c++
Member Avatar for Miganders
0
260
Member Avatar for babbu

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
Member Avatar for sknake
0
2K
Member Avatar for xellos
Member Avatar for NotNull
0
2K
Member Avatar for Nathan Campos

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
Member Avatar for NotNull
0
134
Member Avatar for Nathan Campos

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
Member Avatar for NotNull
0
851
Member Avatar for xellos

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
Member Avatar for NotNull
0
538
Member Avatar for azn_sweet

[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
Member Avatar for Aia
0
72
Member Avatar for elidotnet

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
Member Avatar for elidotnet
0
144
Member Avatar for Dajer

Hi friends what's a role of index in RMS? when we use index in RMS? plz I need your help.

Software Development java
Member Avatar for javaAddict
0
68
Member Avatar for joshymraj

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
Member Avatar for DdoubleD
0
103
Member Avatar for Dajer

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
Member Avatar for kvprajapati
0
179
Member Avatar for robtech

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
Member Avatar for robtech
0
255
Member Avatar for prodigyaj

I am trying to find the sum of integers ( (int)(a*i)/b ) where i is from 0 to 10^10. The problem is a/b >=1 and can be a fraction also and a and b are constant If it wasnt a fraction then it was really easy i*(i+1)/2 * a/b Any …

Software Development c++
Member Avatar for Sky Diploma
0
115
Member Avatar for bunnyboy

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++
Member Avatar for bunnyboy
0
4K
Member Avatar for low1988

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
Member Avatar for javaAddict
0
154
Member Avatar for parthmishra

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
Member Avatar for ddanbe
0
143
Member Avatar for azn_sweet

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
Member Avatar for Salem
0
146
Member Avatar for Belthemet

[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++
Member Avatar for Belthemet
0
261
Member Avatar for pilipino93

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
Member Avatar for pilipino93
0
102
Member Avatar for Cory_Brown

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
Member Avatar for Cory_Brown
0
122
Member Avatar for harshadap

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
Member Avatar for harshadap
0
126
Member Avatar for staticvoyager

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
Member Avatar for staticvoyager
0
139
Member Avatar for gretty

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++
Member Avatar for gretty
0
2K
Member Avatar for elidotnet

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
Member Avatar for kvprajapati
0
213
Member Avatar for papanyquiL

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
Member Avatar for papanyquiL
0
136
Member Avatar for Epi23

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++
Member Avatar for Epi23
0
103
Member Avatar for gopi17

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++
Member Avatar for vmanes
0
117
Member Avatar for vishalonne

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
Member Avatar for quuba
0
294
Member Avatar for valleymorning

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
Member Avatar for valleymorning
0
473
Member Avatar for katwalatapan

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
Member Avatar for Salem
0
139
Member Avatar for computerfreak97

Can anyone help me. I am trying to create a audio frequency analyzer, that will look for specific frequencies in a wav file. TIA

Software Development audio python
Member Avatar for computerfreak97
0
51
Member Avatar for Dajer

Hi friends... How can i put index on my records in RMS to increase the rate of RMS??

Software Development java
Member Avatar for Dajer
0
75
Member Avatar for scias23

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
Member Avatar for scias23
0
151
Member Avatar for C.O.D

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
Member Avatar for C.O.D
0
120
Member Avatar for staticvoyager

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
Member Avatar for sknake
0
205
Member Avatar for ObanaJunichiro

[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++
Member Avatar for VernonDozier
0
91
Member Avatar for freeze131

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
Member Avatar for woooee
0
122
Member Avatar for jcmeyer

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
Member Avatar for jcmeyer
0
3K
Member Avatar for root59

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
0
150
Member Avatar for kawalya

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
0
106
Member Avatar for mahela007

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
Member Avatar for mahela007
0
141
Member Avatar for mahela007

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
Member Avatar for mahela007
0
130

The End.