199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for demigodz24

can you help me to fix my program? how can i non-repeat the numbers i don't know the code..and how can i generate a numbers for bingo?...i need to generate until i win.. [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int ROWS = 5; const int COLUMNS …

Member Avatar for daviddoria
0
109
Member Avatar for ohgee

I am currently coding a file browser in C# and I've never used C# before. I'm trying to make a list of files that will become active (ie: change skin) when I click on one. The problem is that I have no idea how to do so. Current implementation: Added …

Member Avatar for darkagn
0
117
Member Avatar for spacechase0

I've been trying to make something where I can just plug-in a new implementation (for things like opening a window, displaying graphics, etc.) and it work just like before. I've added a couple of other things like a resource manager, but now I'm getting linker errors. This didn't happen until …

Member Avatar for spacechase0
0
140
Member Avatar for BoarderX

I have been following this tutorial ([URL=http://msdn2.microsoft.com/en-us/library/ms233763(vs.80).aspx]http://msdn2.microsoft.com/en-us/library/ms233763(vs.80).aspx[/URL] ) and so far everything has gone well. I am running Visual Studio 2005 and SQL Server 2005. I can run queries just fine. However, when I try to update (insert a new row), my Customers table in my SampleDatabaseDataSet will not commit …

Member Avatar for ericklan
0
823
Member Avatar for garu525

Hey guys, I'm wondering if you can help me out on my problem. I wrote this code to print out consecutive numbers till it reach the maximum number entered. The code works but I want to control the output. Here's my code so far... [CODE] cout << "Enter max number: …

Member Avatar for garu525
0
109
Member Avatar for VBPRGM

Hi, I am using visual basic express 2008 . and i am adding few rows to the database using some stored procedure. it is working fine. after adding the row i am displaying in a grid using dataset . fine.but when i close the program and reopen the program i …

Member Avatar for lolafuertes
0
106
Member Avatar for ljjfb

Hello, all professionals, I have a question about using python to pass argv to another script. And here's the problem: I have installed a Virtual Machine(Windows XP) in my Host system. Right now, I propose to create a script located in my Host system to pass a argument to the …

Member Avatar for ljjfb
0
139
Member Avatar for jozz3

Hi I am trying to write a query that will return the gold, silver, and bronze medalists for each individual-based event. The relational schemas are: EVENT(Event_id, Event_title, Event_team, Event_gender, Sport_id) GAME(Game_id, Gtype_id, Game_year, game_website, game_cancel, Country_id) GAMETYPE(Gtype_id, Gtype_title) SPORT(Sport_id, Sport_title, Gtype, id) CONTESTANT(Cont_id, Rep_id, Comp_id, Team_id) MEDAL(Medal_id, Medal_color, Cont_id) REPRESENTATIVE(Rep_id, …

Member Avatar for jozz3
0
129
Member Avatar for MKIII

Hello all, I am new to php and thus far i'm love the potential this language has as I learn more about it. I have been trying to write a script to no avail. What I am trying to accomplish is to setup a sms site from web to mobile. …

Member Avatar for GreaseJunkie
0
505
Member Avatar for dorothy.v

[COLOR="Green"]*help me with this code i cant withdraw. *the balance inquiry didnt appear in the form4 *in my database, do i need to put the withdraw field? [/COLOR] <form 6> [CODE] Imports System.Data.OleDb Public Class Form6 Dim conn As OleDbConnection Dim cmd As OleDbCommand Dim strSQL As String Dim dr …

Member Avatar for lolafuertes
0
290
Member Avatar for Archenemie

I basically want to map out folders and subfolders in a dictionary and i have this code ive written, but instead of adding each filename to the dictionary it overwrites it each time. Any suggestions? [CODE]for fname in os.listdir(os.getcwd()): print fname x += 1 maincat = {fname} print "x = …

Member Avatar for Archenemie
0
109
Member Avatar for iwanttolearnc

im quite new to python so forgive my stupidity. ive downloaded numpy and here are a few things i understand regarding images and numpy 1.images are made up of pixels that have coordinates, a 2d array i believe 2.numpy has the ability to handle arrays and split them what i …

Member Avatar for iwanttolearnc
0
210
Member Avatar for Cavemankrug

Hello, I'm kind of new to this but have successfully launched a database UI before but this time I am using the Datagridview to display by data. I do this by OLEDB and establish my connection (see code below) and bind too two different datagrids: [CODE][/CODE] Public Sub FindTroubleshootingTable() Dim …

Member Avatar for lolafuertes
0
107
Member Avatar for TheDocterd

Hi all If I am at the wrong place please excuse as I am new at this IT Discussion Community. My problem is that I want to convert an application that is written in VB6 to VB.NET using Microsoft Visual Studio 2008. The conversion completes but there are compile and …

Member Avatar for lolafuertes
0
253
Member Avatar for dschuett

I am creating a form that our company uses to send denial emails to customers that we reject. The problem is, I need to know how to store form checkboxes as a variable, so i can use them in my mail_body. the email has the following format: you have been …

Member Avatar for Kieran Y5
0
101
Member Avatar for shyam miyatra

I want to compare two float values in shell script, i.e. a = 0.1 b = 0.4 if ( $a < $b )then expression1.. expression2.. expression3.. fi if ( $a > 0.0 ) then expression4.. expression5.. fi could you please suggest me how to implement in shell script ?

Member Avatar for shyam miyatra
0
171
Member Avatar for Ana_Developer

I cannot figure out what I'm doing wrong in the following code: [CODE]char* charArray[3]; strcpy(charArray[0],"wn"); strcpy(charArray[1],"chair"); strcpy(charArray[2],"-over");[/CODE] Thanks a lot for the help!

Member Avatar for VernonDozier
0
99
Member Avatar for DaveTran

Let's say I have 5 boolean values: [CODE] bool a; bool b; bool c; bool d; bool e; [/CODE] If they evaluate as true 'a', 'b', 'c' and 'd' should have their associated code run. If 'e' evaluates as true then only its associated code is run and the values …

Member Avatar for DaveTran
0
161
Member Avatar for bonett09

Hey guys, I'm working on an assignment which requires me to have one of my constructors to have parameters though I get an error in "Car c2 = new Car();" that it cannot find symbol. Also I am required to enter the necessary get and set methods to be able …

Member Avatar for kramerd
0
149
Member Avatar for incubus9x9

Ok so this code works great with an if else statement but i dont why when i change the showMenu to a switch statement you cannot see my print out statement as a menu!? Iv tried different ways of writing the print outs and they havent worked at all. Also …

Member Avatar for incubus9x9
0
143
Member Avatar for testie

Hey guys, is there any alternative methods to string slicing? An example output would be: input: dani output: d da dan dani I did this with string slicing, but am wondering if it is possible to do the same thing without slicing. Anyone help out? Testie,

Member Avatar for TrustyTony
0
573
Member Avatar for WASDted

I was wondering about the new [URL="http://software.intel.com/en-us/intel-parallel-studio-home/"]Intel parallel studio[/URL], can anyone share their personal experience with it? Likes, dislikes, cool projects, etc? Our own [URL="http://www.daniweb.com/reviews/review313227.html"]Jeff Cogswell reviewed it here[/URL], but i want to here from a few others...

0
138
Member Avatar for jogesh_p

hello, i m beginner in php, and i want to download a file, here is my code [code=php] ob_start(); // location with filename $filename = "downloads/code.zip"; if(file_exists($filename)) { header("Content-Disposition : attachment; filename=" . urlencode($filename)); header("Content-Type : application/force-download"); header("Content-Type : application/octet-stream"); header("Content-Type : application/download"); //header("Content-Type : application/zip"); header("Content-Description : File Transfer"); …

Member Avatar for quasipickle
0
171
Member Avatar for TonyDeWittePony

Hello everyone! I have a problem, I need to draw a number of squares along a path. The drawing of the squares I should be okay with, but I was wondering if it's possible to draw them on an invisible path. That way I could calculate how "far" those squares …

Member Avatar for pritaeas
0
107
Member Avatar for nnlink
Member Avatar for moye88

I'm trying to get the maximum temperature and the day it occur from the value I put in. But the Max is always the last value i put in and the day is always 8 :( Can anyone see what is wrong with the code? Thanks in advance. #include<stdio.h> int …

Member Avatar for moye88
0
154
Member Avatar for kesh1000

hi can any one suggest why this code doesnt work [ICODE] if(mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '".$username."'")) == 1) { echo "<h1>Error</h1>"; echo "<p>Sorry, that username is taken. Please go back and try again.</p>"; } else { $registerquery = mysql_query("INSERT INTO users (fname,lname,age,email,phone,address,username,password, amount,plan,benefit,prem1,prem2) VALUES ('".$fname."', '".$lname."', '".$age."', …

Member Avatar for fobos
0
88
Member Avatar for speedy94519

I was given a set of binary number to assemble it into gray code sequence: 111 000 110 011 001 100. Is their a specific way I have to do this? From What I read in the internet I think the following solution would be this: Gray Code 000 001 …

Member Avatar for gusano79
0
170
Member Avatar for blknmld69

Good Morning, Having a problem with my program not calculating. I have wrote a program CashRegisterA Class that should be used with the RetailItem Class. The CashRegisterA Class should stimulate the sale of the retail item. It should have a constructor that accepts a RetailItem object as an argument. The …

Member Avatar for blknmld69
0
1K
Member Avatar for FallenPaladin

Hi there, I am having some syntax and logical implementation problems with a really very simple requirment and I am hopeing someone can help point me in the right direction. The problem I am having concrens trignometric functions in 3d space and what I am trying to do is find …

Member Avatar for FallenPaladin
0
192
Member Avatar for moonL!ght

pleas will any one help me i feel im going to explode more than 8 hours in this question and i have to submit it after 3hours.. my prog is not finished yet but an error saying unresolved external sympol... actually i have aprog that define the mistake(MSDN library for …

Member Avatar for muze
0
89
Member Avatar for gahhon

hello everybody.. here is my Assignment Code.. [CODE]#include <stdio.h> #include <windows.h> int Attendance[50][50] = {0}; int studPresence[] = {0}, weekPresence[] = {0}; int i, x; int week, student; char SubCode[30]; void InputFunction(); void WeekAttendance(); void StudentAttendance(); void main() { int answer; while(answer != 4 || answer > 4 || answer …

Member Avatar for gahhon
0
191
Member Avatar for sahil1991

hi friends, i have done programming in c++ and now thinking to start some new language........ i considered java initially but now i am also thinking about python but,the problem is i dont kno anything about python(especially features,powers).. so plz guide me about it and also i wud like to …

Member Avatar for sahil1991
0
111
Member Avatar for pareshverma91

my apologies for putting up this thread here, but couldn't find an apt section. I am beginner in java and would like to use netbeans as ide. I hava a few doubts regarding the ide. ---is it possible to write a single file of code, i mean, normally a whole …

Member Avatar for PatrixCR
0
116
Member Avatar for ejr74

[code] <script type="text/javascript" src="prototype.js"></script> <script language="javascript"> function hover() { new Ajax.Updater('dataLayer', 'ajax_hover1.html', { method: 'get', evalScripts: true, onComplete: function(){ document.getElementById('dataLayer').style.display='inline'; } }); } </script> <a href="#" onclick="hover()">show</a> <div id="dataLayer" style="display:none; position:absolute;"></div> [/code] ajax_hover1.html contains [code] <script language="javascript" type="text/javascript"> document.write("testing"); </script> [/code] When i execute, new window is opening. Please help …

Member Avatar for guillem_bcn
0
142
Member Avatar for LianaN

Hi! I have a problem with the array of JTextField components. So, the code is shown below and it can be successfully compiled: [CODE] txtAdminTextFields = new JTextField[nrOfCols]; ... tableAttributes.getColumnModel().addColumnModelListener(new TableColumnModelListener() { public void columnMarginChanged(ChangeEvent e) { for (int i=0; i < nrOfColsFin; i++) { txtAdminTextFields[i] = new JTextField(); txtAdminTextFields[i].setPreferredSize(new …

Member Avatar for JamesCherrill
0
329
Member Avatar for SolidSolutions

I am having a hard time understanding subqueries. I am pretty sure that is what I need to accomplish my task, but not sure how to put it together. I have a unique ID field that auto-increments, so that a new entry always gets a higher number assigned to that …

Member Avatar for d5e5
0
336
Member Avatar for neural_jam

What the title says. Basically, I have some code with 12 nested loops based on the code below, and may have to bump it up to 24. This works fine, but seems a little cumbersome, and can't help but think that there's a better way of doing it? All help …

Member Avatar for neural_jam
0
2K
Member Avatar for ivan3510

Hi! Sorry for my bad english! How to make a button (source code) that when someone clicks on it, it shows the source code of that what is written. (On some buttons I put the image (<input type="image" src="image.bmp" onclick="urediFont('justifyleft');">) (alignment:left, center, right). But when I click on them everthing …

Member Avatar for ivan3510
0
183
Member Avatar for ivan3510

Hi! Sorry for my bad english. I have this code: [CODE] <html> <style type="text/css"> #traka{ border:1px solid black; position:relative; width:300px; } #boja{ position:absolute; top:0; left:0; height:100%; background-color:yellow; } #tekst{ text-align:center; position:relative; } </style> <script type="text/javascript"> wid=0; function kreni(){ setTimeout("izvod()",700); } function izvod(){ wid+=10; pos=(wid*100/300); pos=Math.round(pos); pos+="%"; document.getElementById('tekst').innerHTML=pos; document.getElementById('boja').style.width=wid; if(pos!="100%"){ kreni(); …

Member Avatar for ivan3510
0
187
Member Avatar for Jsplinter

My program passes a parameter that looks like this: [CODE]std::vector<myDataType> vec; void function(&vec);[/CODE] Then the function accepts the argument like this: [code]void function(std::vector<myDataType>* myVec){ ...does something }[/code] Yet somehow I am getting the following error: error C2664: 'CMyClass::WriteVectorSTL_CSV' : cannot convert parameter 1 from 'std::vector<_Ty> *__w64 ' to 'std::vector<_Ty> *' …

Member Avatar for Intrade
0
228
Member Avatar for praneil2050

hello, this is my 1st post.. i have created free sms service using html for my website. And now i want to make its java app for mobile phones. Following r the screens when app is started 1st screen: when app is launched, it should compulsory send message to certain …

Member Avatar for cale.macdonald
0
219
Member Avatar for sirlink99

[code] // The "ChoseYourOwnStory" class. import java.awt.*; import hsa.Console; public class ChoseYourOwnStory { static Console c; // The output console public static void main (String[] args) { c = new Console (); String start = ("yes"); // assignment 1 while (start.equals ("yes")) { c.println ("A high ranking thug comes walking …

Member Avatar for kramerd
0
111
Member Avatar for lilsmurf

When I try to run my program, it lets me enter in the beginning balance, interest rate, and number of months. However, when it hits the for loop, it completely skips over everything inside of it and prints out the amount that was entered for the starting balance. Can someone …

Member Avatar for cale.macdonald
0
90
Member Avatar for zero_sequence

Hi to all.... i signed up in google analytics and i copied paste the javascript code in a onendrequest.cfm file. The issue is that in pages that i use cfgrid, the content of the cfgrig is not showning up at all. I have the header bar the footer bar but …

Member Avatar for arrgh
0
110
Member Avatar for grahf23

Hi guys, need some help in writing a progrom to test my code. Currently, what i have written for the header file is this [CODE] #ifndef _VENDMACHINE_H_ #define _VENDMACHINE_H_ #include <string> class VendMachine { private: string item; int numberOfItems; int cost; public: VendMachine(string s, int = 50, int = 50); …

Member Avatar for Intrade
0
223
Member Avatar for AaronLLF

I get an error in the Eclipse console when trying to run a first person camera using LWJGL & Java. "Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path" I did include the jar's for libraries and I did add the VM argument -Djava.library.path=C:\lwjgl-2.5\native\windows\ Please help.

Member Avatar for FallenPaladin
0
332
Member Avatar for gchurch

hey i have multiple sessions with aray values from DB within, now i'd like to run through a loop and have all those values which displayed... here's my code: [CODE] echo "<div id='RoomBorderPayment'>"; echo "<table border='0' width='70%' cellpadding='3' style='border-width:thin'>"; echo "<tr><th colspan='2'><p>You are booking:</p></th><th>Amount</th></tr>"; $res = mysql_query("Select * from room"); …

Member Avatar for gchurch
0
119
Member Avatar for glenak

I saw this code in a textbook and I tried to put in my eclipse IDE, but it didn't work: [CODE] #include "GradeBook.h" #include <iostream> using namespace std; // GradeBook class definition class GradeBook { public: // function that displays a welcome message to the GradeBook user void displayMessage() { …

Member Avatar for glenak
0
157
Member Avatar for joshianurag18

hi all i need urgent help.Thanks in advance. i have java code on windows and some files in unix server. I just want to read that file from unix server and apply my business logic. I have approch for that like first using FTP i will take a copy of …

Member Avatar for kramerd
0
136

The End.