199,114 Archived Topics
Remove Filter ![]() | |
Im having trouble seeing this recursion function through. Say I have an 8 by 8 array how would I get the search function to "see" into the middle of the 8 by 8 array. Positions (4,4), (4,5),(5,4),(5,5). [CODE] #include <iostream> using namespace std; struct matrix { int size; int row; … | |
Hello, I am trying to get the stock count to print for each of the toys: ps3, elmo, and wii. I don't have any clue on how to do it. To print the stockcount, i created the function getStock to try to do the job. Can someone help me get … | |
I am needing to have this program choose between two options randomly. The program all works except that when I use this line of code: int x= rand() % 2; it seems that it's not random but rather follows the same pattern every time. I have searched and found things … | |
i designed this tic tac code in c bt there is sum prblm wid the part where program has to decide the winner it dosent seem 2 workin im posting the code any help is greatly supported #include<stdio.h> #include<conio.h> void main () { int go=0; int i =0; int player; … | |
i need to open a msword file using vb6, read the data and insert a new data. could someone please help me with this. thanks in advance | |
Hi all I have a few page of PHP just for internal use. Its function only obtain the data from the users enter and write it to an .csv file. Everything works fine til this morning I do a check again and I found out that It didn't write to … | |
[code=cplusplus] #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; } void swaparrays(int* , int* ); { //How I can impement swap arrays Function???// } [/code] | |
Please help I am stuck on how to click checkbox and put area code in textfield <?php $array1 = array("(516)","(631)","(718)"); ?> <?php $AreaCode = $array1; ?> <td><input name="Phone" type="text" value="<?php echo $array1[0] ?>" size="15" /> <input name="RadioGroup1" type="radio" id="RadioGroup1_0" value="<?php echo $array[0]; ?>" checked="checked" /> <label>(516)</label> <input type="radio" name="RadioGroup1" id="RadioGroup1_1" … | |
People what do i do wrong, i'm new to the forum, but for some reason i'm not gettig any ansfers to my questions, please tell me what do i do wrong???? Thank you. | |
//I have done Until.. But it seems to have many problem with compiler// #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; void swaparrays(int* a, int* … | |
You are to implement a very simple distributed text editor. For this purpose, each user must be provided with a simple workspace where she can either read or write plain text. You must implement the system in such a way that, at any given point of time, only one user … | |
How could it be possible to synchronize the computertime to ex: GMT or any timeserver on the internet ? | |
I have one *.cpp file but I cant it compile with MS VC++ ! How to compile signle .cpp file in VC++? Please help me! | |
I need help. How do you encrypt multiple lines of a text file? /********************* *Made by Jase Inc * *Made in 10/22/2008 * *Boolean Cryptography* *Using ^ operator * *********************/ #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("text.txt"); char key[65]="jaf#$%skl%#ajlf^%dlkfhasjlk@#dsgsfsfrtw"; … | |
Hi I'm tackling down an extra credit assignment which I'm so confused on. We are to design a basic JS Grade Calc where we input our scores and it gives us our grade. For extra credit we have to snazz it up a bit. So far this is what I … | |
I have a homework assignment for a c class I am in currently, the assignment is to write a simple spell checker. I am having a bit of trouble understanding how to write a trie in c. A trie would be composed of nodes, which contain the following I believe: … | |
I get this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pixogeni/public_html/arcade/admin/commandcenter.php on line 46 Well this is line 46, I can't seem to figure out a fix for it... if (isset($_GET['p']) && $_GET['p'] == "login") { Any suggestions? :S Thanks in advance :) | |
Hello everybody, I have various components that I want regroup in the same category. I found numerous screenshots on the internet using some sort of frame surrounding items. For instance : [url]http://www.vieartificielle.com/images_robot/e70d6615e7b9c9ecfacdc7e977425d6d/cache_500_wifi_robot_photo_gui.jpg[/url] (the frame surrounding "Joystick information" section) and [url]http://bp3.blogger.com/_45gEBj4xUTA/RwefQvOgIjI/AAAAAAAAACQ/pKezYz2qQCQ/s320/RobotUI.jpg[/url] (the frame surrounding "Current data" section). I dont know how … | |
Hello everyone. I am a student working on network protocols. Now I have a rough idea to use mathematical tools, e.g. formal methods, to examine or even build the model of protocols. As I have no in-depth concept of these tools, I would like now ask some naive questions: 1. … | |
Hi all, I have been pulling my hair out in this one. I am using logisim to build this for lab. I have combined a half adder (a,b inputs and s, c outputs) with the carry coming out to represent z that goes into the full adder(xyz inputs and s2, … | |
Hello Everyone! This is my first post, so please excuse me for any breaches of netiquette. I am building my own from validation script, which uses separate functions for each input box like so. [CODE=html]<input type="text" name="username" onchange="CheckUsername(this.value);">[/CODE] A bit of javascript sends this along to a php file using … | |
Hi everyone! I'd like to ask a simple question to which I can't really find a definitive answer. If I condense my code a lot, will this mean an increase in loading times which is significant enough? I like having my code spaced out, readable, but I would also like … | |
There is a website that makes highly optimized VB code available. Something like VBSpeed or something like that. Does anyone have a link to it? | |
can anyone tell me how to upload a file iis server I use the following code now but it doesn't work in iis server. [code] $fileName = basename( $_FILES['fileName']['name']);//filename from post $currentdir=getcwd();//get current directory $target_path = $currentdir."\\snaps\\" . $fileName ; if([COLOR="Red"]move_uploaded_file($_FILES['fileName']['tmp_name'], $target_path)[/COLOR]) { echo "Success"; } [/code] can I get … | |
Hi! I expect the next program wait 1 sec. and exit but doesn't work. Could anybody help me? Private Sub Command1_Click() Timer1.Interval = 1000 Timer1.Enabled = True aaa = 0 lo: If aaa < 1 Then GoTo lo Else End End If End Sub Private Sub Timer1_Timer() aaa = 10 … | |
I was reading a tutorial about 2D arrays and I decided to construct something. I managed to construct something but when I compile I get "null" as my output. I cant seem to figure out the problem. Here is the sample code. I have also higlighted in red a line … | |
Hi, I made a small Access DB that has a Date field in it (DUEDATE). The DB is used for demonstration purposes to show current orders. I need a function that would randomly update the orders due date in the table (orders). I would like to input a starting date … | |
hi there guys!!!! Could u plz help me with this program. I hav done quite a lot but there still are some problems. here is a brief overview of ma project The aim of this project is to design and develop a useful utility program, named duplicates, to locate and … | |
Ok, so I need to enhance the functionality of my existing Loan class to be able to calculate any of the 4 missing elements in a Loan, whether it is the Principal, APR, Term, or Payment. I already have the necessary calculations to get the monthly Payment, but I need … | |
Hello all I have been learning C for about 3 - 4 weeks now and I'm in need of some help. I am trying to write a function that will give you the sum of selected integers in an array with a value of 20. I can make it give … | |
Hello can anybody recommend a book for a lazy reader like me, I've try "Thinking in C++, Volume 1, 2nd Edition Bruce Eckel, President, MindView, Inc" but i find it difficut to understand the basic there. So can anybody recommend any simple book for lazy lad | |
Iam not able to pass a value from servlet to jsp using setAttribute and getAttribute. My test code : Test1.jsp ======= [code] <%@ page language="java" contentType="text/html" %> <html> <head><title>Login Example</title></head> <body> Enter Your Text <hr><p> <form name = login action="../servlet/TestServlet1" method=POST> Your Text : <input type=text name=yourText><br> <input type=submit value=LogIn> … | |
My company has been using an Access 2003 database for a couple years now and the person who previously worked on it just left, the problem is he never gave me the password to unlock the Visual Basic editor window, and I can't seem to contact him. Does anybody know … | |
hi all, i am devleloping a web form..I want to use a date time picker in ASP.Net as in C#.How can i put date time picker in ASP.Net. Can anybody help me regarding this. thanks in advance... | |
I have a .mdb database that contains various records. One of the fields is date, ie '19/10/2008 00:00'. How do I sort the database by date? I an a beginner and currently learning with the 'Visual Basic in easy steps' by Tim Anderson. On page 104 he has an example … | |
I have studied sql. I know what is relational database. I wanna konw how we store the data in a relational database and how to query the data when we emplement a "select" statement Is there a open source relational data base? I wanna konw the data structure of the … | |
I have a query I am currently working on a program with a lottery theme I will post the parameters as well as my code thus far. A lottery requires that you select six different numbers from the integers 1 to 49. Write a Java program that will do this … | |
I'm doing a homework assignment... I have two files. Payroll (the class) and myPayroll. I run myPayroll and it does everything except return the employee's name and ID number. I'm supposed to pass those values to the constructor... but i'm at a loss as to how to do that. First … | |
Hi, I have a question regarding what type of degree to pursue. At the moment I am studying at a College want to pursue a career in programming (Computer Science), I will be graduating in Spring 09 and want to continue studying and get a degree in Computer Science. My … | |
Hi, I keep getting an error in Visual Studio C++. I am trying to create a copy constructor but keep getting this error. "Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, and indicates a bug in test.exe or any of the … | |
The section, of my program, that has to do with the error extracts a description from an html file or site. We are to find it based on three criteria. I have two down and this third one is giving me problems. I tried to create a DescripChars object in … | |
How do I get [B]ONLY[/B] data type and name of all the columns available in given table_name ![]() | |
I will give a simple example inspired from my problem : void change(int *x, int *y){x=y;} int main(){ int *xx,*yy; yy = (int*)malloc(sizeof(int)); change(xx,yy); if(xx == NULL)printf("is null\n"); else printf("---- %d ----\n",*xx); .................................................. ......... xx doesn't point to the value of yy (*yy) , the program prints "is null" . … | |
Can it be done? cout<<"ENter name"<<endl; cin>>name; cout<<"Enter DOB"<<endl; cin>>dob; cout<<"Enter City of Birth"<<endl; cin>>city; when i try to enter "John Doe" as name the program skips and doesn't let me enter anything for dob and asks me the city input. Any help would be greatly appreciated. Thanks! | |
Hi Everyone, This is my first post and I hope I followed all the guidelines correctly. This is an assignment for a class. I am supposed to read integers from a file, enqueue or dequeue them and then write them out to another file. The main method calls this Work … | |
Hi guys, this 2D arrays is not making sense to me. Some how I am just too confused. What am trying to do is average the rows in 2D array and average the columns in the 2D array seperately. Here is the code snippet that I have trouble implementing. The … | |
Hi, I'm having trouble building the correct syntax select statement for a system to handle support tickets. The table "tickets" has the following columns: id (int) inserted (smalldatetime) ticket_id (nvarchar) owner (nvarchar) subject( nvarchar) category (nvarchar) message( nvarchar) status (nvarchar) The id is unique for each record but the ticket_id … ![]() | |
![]() | [I]In this example I'm using the AdventureWorks database in MS SQL Server 2005[/I] I was wondering what other people thought about Schemas vs. Roles when it comes to security access. If you have an employee who just started working for Human Resources and needed access to all the database objects … ![]() |
What is the way to change size in a cell in dataGridView to 8.25 This does not seem to work. [code] dataGridView1->Rows[b]->Cells[10]->Style->Font->Size = Font->Size(8.25F); [/code] | |
hi. how about pop-up windows using AJAX. |
The End.