199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for triumphost

SKIP to LINE 117 [CODE] #include <iostream> #include <windows.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> using namespace std; char n , p , m , L , F , E; int v , x , y , O , z , q , R; int main() { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14); cout<<"This …

Member Avatar for WilliamW1979
0
191
Member Avatar for MoZo1

[CODE=JAVA] setFoo(getFoo() + 1); ... private int foo; public synchronized int getFoo() { return foo; } public synchronized void setFoo(int f) { foo = f; } [/CODE] Easy code for a race condition. Easy solution: [CODE=JAVA] synchronize(o){ o.setFoo(o.getFoo() + 1); } ... private int foo; public synchronized int getFoo() { …

Member Avatar for MoZo1
0
200
Member Avatar for koolman123

Well, please excuse my noobiness, and my little skill with C++, but give me a break, I'm young. Not for homework, just for the sake of being able to do it,I was trying to make a code for the Pythagorean theorem, and here is the start of the code (of …

Member Avatar for Fbody
0
223
Member Avatar for Zviri

Hi, I have a following problem. I have a number in string, for example "123456" and I'd like to convert it to int. This would not be a problem if I knew that the input number will always fit into an 32 bit integer. So if it won't I should …

Member Avatar for Nick Evan
0
345
Member Avatar for prasu

I have a table in which i need to sort the column names. NOT sort by column names.....sort the COLUMN NAMES. since it is easy to sort the records.....is there any way by which you can convert column into rows and rows into columns.

Member Avatar for drjohn
0
1K
Member Avatar for jackocurly0074

Hi guys, Have been doing some wxPython programming and haven't had any major issues until I wanted to display images! Basically I take readings from an external device (simple input device) and set the image in a panel based on this reading. However it seems that the picture does not …

Member Avatar for cghtkh
0
136
Member Avatar for NewOrder

i want to make my java project with Jmonkey, is it easier than using eclipse alone?

Member Avatar for NewOrder
0
94
Member Avatar for phfilly

Hey just wondering if someone could help me please with the following: board.h [CODE]public: Piece* Player1Pieces; Piece* Player2Pieces;[/CODE] (a section showing the initialization of the arrays) board.C: [CODE]Player1Pieces = new Piece[18]; Player2Pieces = new Piece[18]; char arrX[9] = {'a','b','c','d','e','f','g','h','i'}; for (int FootCount = 0; FootCount < 9; ++FootCount) { --->> …

Member Avatar for Fbody
0
276
Member Avatar for meazza

hello fellow programmers. I am having an anoying problem with a Contact book i am making. As the title of this thread suggests i am getting that error but only when i call for a specific function in the program called void search(). All the other functions in the class …

Member Avatar for meazza
0
292
Member Avatar for philmetz

I have the following code that should add a new item to the database table but it doesnt seem to be adding? [CODE] <html> <head> <title>Using Default Checkbox Values</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"> </script> <script type="text/javascript" > $(function() { $(".submit").click(function() { var name = $("#name").val(); var username = $("#username").val(); var password …

Member Avatar for hielo
0
134
Member Avatar for frogboy77

Hi, new to this so go easy. I'm trying to store a function i wrote in a file and call it with a header file rather than copy and paste as ive been doing but i keep getting error messages from the compiler. Can anyone point out what i'm doing …

Member Avatar for frogboy77
0
140
Member Avatar for stonest123

When trying to return all results from my table using odbc_result_all i find that it will print all the results except the last one. I'm not sure why its doing this or if an Access database takes a while for the results to be updated when queried? Can anyone help?

Member Avatar for stonest123
0
129
Member Avatar for Pushpasheela

I want to create payslip in java [CODE]public Vector createData() { Vector result = new Vector(); Vector rec = new Vector(); Object[] value = new Object[] {"Employee Name",ename.getSelectedItem().toString()}; rec.add(value); value = new Object[] {"Mary-Kate Olsen", "Ashley Olsen"}; rec.add(value); result.add(rec); rec = new Vector(); value = new Object[] {"Charlie Read", "Craig …

Member Avatar for Taywin
0
132
Member Avatar for Jsplinter

If I'm creating a new char[] to read in a text file: [code]char* pbuffer; pbuffer = new char[length]; [/code] what is the maximum size length can be? Would a std::string be better? pbuffer will only be allocated one time in scope no matter what, and length is not known until …

Member Avatar for Jsplinter
0
157
Member Avatar for christos312

Hello to all, I have a question, I want to make something like puzzle pieces connecting together in a sequence and when all are in the right place the game will end. [img]http://img94.imageshack.us/img94/1557/36927129.png[/img] I want to use this image. The problem is that the space that the next piece must …

Member Avatar for christos312
0
146
Member Avatar for chathuD

Need to retrieve a data row that having minimum sum of 4 [B][COLOR="Red"]red [/COLOR][/B]squared values. i Have done a SP ,but seems to be it was wrong. [CODE]select * select * from SMST as p where p.Source=@Source AND p.Destination=@Destination OR p.Destination2=@Destination AND [Count]=(Select MIN(sourceRoadCount+middleroadcount+destinationroadcount+x1destinationroad2count as [Count]) from SMST ) [/CODE] …

Member Avatar for Momerath
0
121
Member Avatar for aishittero

[B][COLOR="Red"]guys help me if these code is correct [/COLOR][/B] [CODE=java]import javax.swing.*; import java.awt.event.*; public class SampleCalc extends JFrame implements ActionListener{ JTextField txtNum1 = new JTextField(); JTextField txtNum2 = new JTextField(); JButton btnAdd = new JButton("+"); JButton btnSub = new JButton("-"); JButton btnMul = new JButton("*"); JButton btnDiv = new JButton("/"); …

Member Avatar for Taywin
0
84
Member Avatar for roseannes

hey everybody! I want to create a program that counts the number of each word in a sentence given by the user. but I dont know how it is. pls help me...

Member Avatar for roseannes
0
78
Member Avatar for groberts1980

I have a DataGridView control that is bound to a DataTable, and I am using the DataTable to add rows to the DataGridView. I am not using a database in any way, but need to add data to the DataTable/DataGridView using code alone. I need to replace certain columns with …

Member Avatar for groberts1980
0
212
Member Avatar for xterradaniel

Just a heads up, I posted this same question on Dream in code over 2 hours ago and nobody has answered. The link is [URL="http://www.dreamincode.net/forums/topic/197275-checking-for-multiple-keys-pressed/page__p__1153044__fromsearch__1&#entry1153044"]http://www.dreamincode.net/forums/topic/197275-checking-for-multiple-keys-pressed/page__p__1153044__fromsearch__1&#entry1153044[/URL] I have been trying to figure out how to increment or decrement a value if two keys are pressed at the same time (ctrl+, ctrl-). …

Member Avatar for Taywin
0
161
Member Avatar for daniel-brown

Hi there, I'm new to this whole site and I was hoping to get some help from anyone with this question please. The question was given to us on a worksheet (and no it is not for an exam) however I have been unable to get into contact with my …

Member Avatar for jbisono
0
91
Member Avatar for florisvd

Hello, I'm trying to work with I2C and I have the following code: [code] #include <stdio.h> #include <avr/io.h> #include <util/delay.h> #include <compat/twi.h> #define I2C_START #define MAX_TRIES #define I2C_DATA #define I2C_STOP #define i2c_writebyte unsigned char i2c_transmit(unsigned char type) { while (!(TWCR & (1 << TWINT))); return (TWSR & 0xF8); } { …

Member Avatar for florisvd
0
2K
Member Avatar for LianaN

Hello! I would like to be able to change the sequence of rows in the JTable by clicking on arrows, which will be placed on the right side of the JTable. Please, see an attached file to understand the idea. Well, could someone please give me some advices on how …

Member Avatar for LianaN
0
112
Member Avatar for AlistairH

First time visit here and looking forward to picking up a few pointers with regard to database integration within a web environment. I have one particular issue at the moment and being new to MySQL is causing me problems so I'll just jump straight in there if I may. I …

Member Avatar for smantscheff
0
134
Member Avatar for samacoba

Please Help, I am creating a Simple Crystal report that views outstanding logs for our call centre,I have a stored procedure that retrieves all the Info I need.Here is where it gets interesting.The Report retrives all the relevant data and shows me page One.When i try to view the second …

Member Avatar for samacoba
0
442
Member Avatar for Oblivious21

Hi guys first off i want to say i really enjoy this forum i just signed up but i have referenced it before. so i have a question i need help with. here is the task at hand [QUOTE]A file called [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/tables.txt"]tables.txt[/URL] contains ranges that describe multiplication tables. Each line …

Member Avatar for Oblivious21
0
631
Member Avatar for jmcorpse

Hello, I have this probelm posted below. I pretty much have it figured out and it is still in rough draft form. I know it could be optimized better but, I'm not quite sure how to get it to look better. Although, the main reason I am looking for help …

Member Avatar for Fbody
0
103
Member Avatar for nwright

Hi everyone, I'm new to the site and a newbie to js. I have been struggling to find the right solution to validating a username in a form to make sure it is unique. I don't want to use Dreamweaver's validate username because I want the error to appear on …

Member Avatar for Taywin
0
199
Member Avatar for The Hisel

I have a machine that waits for short/long periods of time, and some data that I am writing to the server is being ignored during the transfer. If the machine waits for more than 10 minutes, roughly, I noticed 2 global variables aren't getting reported. The delimiters before and after …

Member Avatar for The Hisel
0
101
Member Avatar for gptArun

Hi there, I used code to fetch email address record from table abc on server but shows " Access denied for user 'mysqluser'@'serverip' (using password: YES) " [code] /********code ********/ <?php include "connection.php"; $tableName = 'abc'; $todayDate=date("m-d-Y H:i"); $backupFile = '../backup/abc_'.$todayDate.'.csv'; $query = "SELECT email_address INTO OUTFILE ".$backupFile." FIELDS TERMINATED …

Member Avatar for gptArun
0
408
Member Avatar for ShArKsss

Okay, so I have 2 tables, mos_users & mos_tempban . mos_tempban contains 2 columns: ID & lastvisitdate (last one is not so relevant) mos_users contains 13 columns, only 2 importent: ID & block What I am trying to do is: I want to set Block = '1' in mos_users where …

Member Avatar for ShArKsss
0
151
Member Avatar for nikhilrkn

hey U guys.. I need a jsp code which uses AJAX with dropdowns.. Something like COUNTRY NAME in one dropdown and STATE NAME in the other... You may select any STATE at first.. Later when we CHANGE the COUNTRY NAME, states of that particular COUNTRY WILL GET REFRESHED IN THE …

Member Avatar for nikhilrkn
0
101
Member Avatar for QWaz

Hi, I'm a real javascript newbie, good with php. I am trying to utilize onmouseover, and onmouseout with div's and text. the goal is: when you hover over some text in a <div> it displays other text and then if you hover off it, it keeps the text there. It's …

Member Avatar for Airshow
0
263
Member Avatar for sundip

Hi All Can anyone tell me about some good tool to auto indent the code c++/objective-c/c with some customization features.

Member Avatar for sundip
0
71
Member Avatar for procomp65

Hi I am battling for days now to send and receive the correct characters to hardware from my code. It works fine in tera term. I have to send ASCII 4 " alt 004" in tera Term to poll the datalogger to return the data stream saved in memory. The …

Member Avatar for kvprajapati
0
4K
Member Avatar for Roy Murphy

Hi everyone, Are there any IE9 quirks workarounds yet? If there are a few clever (and small) workarounds for this could someone please post me a link? As a quick fix I was going to add an 'if' statement to detect IE9 and work in 'mozilla' mode, but my brain …

Member Avatar for Roy Murphy
0
149
Member Avatar for Javagirl2010

Hello, I a student and Java is very new to me. I am trying to multiply 2 numbers together to be displayed in a dialog box but I keep getting the error of "cannot find sysmbol" and I do not know what I am missing in my file to clear …

Member Avatar for javaAddict
0
250
Member Avatar for Naresh Vaidya

hi i have a problem, in crystal report in VB.net how can i set the paper size A8? plz, guide me.

Member Avatar for Naresh Vaidya
0
92
Member Avatar for krusnik08

codes pls. the format should be like this. DATE: TEXTBOX1 = month/date/year TIME: TEXTBOX2 = time DAY: TEXTBOX3 = day today pls help me. needed ASAP.

Member Avatar for Naresh Vaidya
0
117
Member Avatar for Ulukay

Ive got a big problem. I need to read data from the serial port Ive used serialport from the toolbox , but dont know how to use it. I used to do it on a Amiga like this open serial("serial.device".0.2400.0) rem(open port) repeat GW.w=readserial(0) if gw>29 and gw<128 gewicht$=gewicht$+chr$(gw) rem(at …

Member Avatar for albay
0
276
Member Avatar for johnt68

Greetings;) I have a conversion program with a combo box miles to kilometres kilometres to miles .... type of thing. I have two labels and two text boxes From: Says what converting from typed in To: Outputs the conversion What I want to happen is the label From to match …

0
66
Member Avatar for ecloney

I am new to vb.net and am using visual studio 2008. I am sending data back and forth using the serialport module. I am wondering if there is a way to send a hex byte, rather than having the module ALWAYS convert everything to ASCII. This is extremely obnoxious, and …

Member Avatar for albay
0
144
Member Avatar for AirGear

I heard that in order to sell a software created using VB, we must buy a license from Microsoft. Is there anyone know where I can buy it? Or maybe someone can tell me how much it costs? Thanks in advance.

Member Avatar for AirGear
0
179
Member Avatar for rebellion346

Hey guys, so my assignment is making a program that takes 2 measure objects and multiplies them together and displays them in square feet. What I'm trying to do is convert the feet into inches for both of the measure objects, then multiply the added inches together. Then I'm trying …

Member Avatar for Nick Evan
0
147
Member Avatar for Mattisc

Hi, I have managed to create a connection via SQL Compact server to a local SDF database. I am able to query the data and retrieve the information. The only problem is trying to delete a record. When I run the code no error's are produced but the record is …

Member Avatar for kvprajapati
0
820
Member Avatar for onus

Hi, I am reading and understanding code from a book. I am copy pasting the exact code which I have. Following program is for client.c [code=c] #include<sys/types.h> #include<sys/socket.h> #include <stdio.h> #include <sys/un.h> #include <unistd.h>> #include <stdlib.h> int main() { int sockfd; int len; struct sockaddr_un address; int result; char ch …

Member Avatar for onus
0
153
Member Avatar for snehalj

i have gridview in my project and database records are displayed in that but if i want to edit the row then wht code should i write?? pls help me for this.

Member Avatar for sujimon
0
154
Member Avatar for chesnutsy

Hi, I know that when you set a column in ms sql to auto-generate IDs you won't be able to change the values. i'm having a problem with that restriction, because i have a table called Requisition, and for each entry, the requisition has a revision number. I've set the …

Member Avatar for max_krauzer
0
114
Member Avatar for Ramon78

Hi all, In my C# application I have a SQL database with a table called Customers. In this table I have several columns like Name, Street, ZipCode and City. I already managed to get data in and out the database with the use of datasets, tableadaptors and bindingsources and get …

Member Avatar for jas@yahoo.co.in
0
1K
Member Avatar for ranu jain

I am making a site in which user will be registered and after the payment (or subscribed) he will b served some facility like he can visit some pages of site only after payment . i m working in vb.net visual sudio 2008 . what is the easiest way to …

Member Avatar for ranu jain
0
74

The End.