132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lightshift

Hey guys, I am trying to update the Quantity field in my database on button click. I have a checkout system, and on the final checkout page it displays my basket items in a listview bulleted list. Now say there is 1 item, and the quantity is 5, upon the …

Software Development listview sql
Member Avatar for lightshift
0
215
Member Avatar for Falcon25

Hey everyone. This is my code at the moment: [CODE]namespace Experimenting { class Program { const int maximum = 5; static int[] myArray = new int[maximum]; static void Main(string[] args) { RandomNumbers(); ScreenOutput(); } static void RandomNumbers() { int x = 0; for (int i = 0; i < maximum; …

Software Development
Member Avatar for Falcon25
0
881
Member Avatar for ashley11

In my arrayList, i have number which are shown below: 1 2 1 2 [COLOR="Red"]2 1[/COLOR] 2 1 [COLOR="Red"]2 3[/COLOR] 2 3 1 2 3 1 2 3 [COLOR="Red"]3 1[/COLOR] 3 1 1 3 2 1 3 2 [COLOR="Red"]2 3 1[/COLOR] 2 3 1 now i want to sort some …

Software Development
Member Avatar for ashley11
0
73
Member Avatar for SIFA

Can someone show me a sample code in c which can read in a user inputted sentence/line and then split that line down by white spaces into separate words please? I shall worship you as my new God if someone out there can just show me a sample solution.

Software Development c
Member Avatar for L7Sqr
0
131
Member Avatar for andimiami

I need to write a program for class that calculates student averages and quiz averagages. It has to read a 2-dim array from a file that looks like this: 10 10 10 2 0 1 8 6 9 8 4 10 The four students are the rows and the three …

Software Development c++
Member Avatar for andimiami
0
163
Member Avatar for sergent

I am trying to allow user to input something while there is time so I took a function sleep() that I found somewhere and changed it for input. Well, it doesn't work. [CODE] char sleep(clock_t wait) { char c; clock_t goal; goal = wait + clock(); while(goal > clock()) { …

Software Development c++
Member Avatar for sergent
0
2K
Member Avatar for Christoph928

I'm relatively new to this and need help counting the number of times a user provided word appears in a user provided file this is what I got:[CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream infile; string str, filename; int count, num; count = 0; …

Software Development c++ file-system
Member Avatar for bharathmakawana
0
176
Member Avatar for amna masood

This is my code:[CODE]#include<stdio.h> #include<iostream> #include<string> #include<conio.h> #include<fstream> using namespace std; class TESTnonteaching { private: string oname[3]; string osir_name[3]; int oid[3]; public: int count3; void TESTadd(); void TESTsearching(); //void editing(); //void TESTdisplay3(); void TESTsetcount3() { count3=0 ; } }; //ADDING STAFF// void TESTnonteaching::TESTadd() { if(count3>=3) {cout<<"NO SPACE LEFT"; return; } …

Software Development c++
Member Avatar for redmaiev04
0
176
Member Avatar for venomxxl

I'm writing a pure C game engine. I assert every pointer returned by malloc() in my code. Now I'm writing a function that will "slice" a loaded texture into new textures (parts of the parent texture). The parent texture is loaded correctly (other textures loaded by the same loader were …

Software Development c
Member Avatar for venomxxl
0
325
Member Avatar for smidhunraj

i havae got a ubuntu machine .I typed in ftp in the command and it comes as ftp> then it ask for connection .I googled it and found that i have to give an address for it. Under one forum i found that the address lies in the /etc/hosts file …

Software Development shell-scripting ubuntu
Member Avatar for smidhunraj
0
142
Member Avatar for Phil++

Hello, I have a few checkboxes thatwhen you check them, they set a varible to bool. For example, if someone selected that they want to see a square it would then change the bool "square = true" however, when someone unchecks the checkbox, I want the boolen to go back …

Software Development
Member Avatar for Momerath
0
92
Member Avatar for avinash_545

Dear All, I am working on an assignment. I am using graphics.py to draw polygons and so on. My problem is that I have to get the pixel color under getMouse() or just get that pixel color. Can you all please help me with it.

Software Development python
Member Avatar for TrustyTony
0
104
Member Avatar for magravis

Hi, I'm trying to write this program where there is: (1) a greeting (2) make columns (3) have a stored text file input into the program automatically The file is like so: NOT 11010011 AND 10010010 etc. (4) read the first word and then output it (5) read the first …

Software Development c++
Member Avatar for magravis
0
116
Member Avatar for hercx

hey everyone need to set focus onto a text box when the tab key is pressed because at the moment the focus jumps all over the place lol any help greatly appreciated

Software Development vb.net
Member Avatar for hercx
0
101
Member Avatar for stereomatching

my compilers::tdm gcc4.5.2 my os::windows xp sp3(32bits) boost 1.45 Sorry, I have another problem again [code] template<typename accStrategy = float> int const adaptSR(int const MAX_AL, float const CONFIDENT_LV, int const OFFSET, accStrategy PLAN) { return 1; } template<typename accStrategy = float> int const adaptSR(int const MAX_AL, float const CONFIDENT_LV, int …

Software Development c++
Member Avatar for stereomatching
0
364
Member Avatar for gerard4143

How do you initialize a dynamic structure that has a const data member? I can provide an ugly hack but I'm at a loss as how to do it correctly. Actually, can you do this in a platform independent way? [code] #include <stdio.h> #include <stdlib.h> struct mys { const int …

Software Development c data-structure
Member Avatar for Narue
0
164
Member Avatar for stereomatching

As I know, perfect forwarding is design for reducing the need of many overloaded functions when you pass the reference to the function and pass those reference to another functions Besides, to fullfill the objective of perfect forwarding && should be able to swallow the lvalue and rvalue That means …

Software Development c++
Member Avatar for stereomatching
0
109
Member Avatar for wonder_laptop

hello there, this is really urgent, do you know how to convert from a string to AgletProxy ?? i have two classes : Parent.java and Child.java, The Parent.java class, creates a child , passes it its agletproxy while creating it and dispatches it to another machine : [CODE] package examples.help; …

Software Development api java
0
241
Member Avatar for michaelzip

Hi, I'm quite new with Data Adapter on VB.NET. I'm having a problem with retrieving data on different tables. Example database: [QUOTE][B]BookInfo[/B][INDENT]BookID: HSD993Z Title: Introduction to SQL[/INDENT] [INDENT]BookID: LDJA293 Title: Advance Computer Programming[/INDENT] [INDENT]BookID: KSKL194 Title: Object Oriented Programming[/INDENT] [B]StudentInfo[/B] [INDENT]StudentID: 2938485 FullName: Michael Zip[/INDENT] [INDENT]StudentID: 2949284 FullName: Ray Williams[/INDENT] …

Software Development dataset sql vb.net
Member Avatar for michaelzip
0
1K
Member Avatar for Danny1994

Hello guys, im using this function : [CODE] //All Includes of my project #include <windows.h> #include <iostream> #include <fstream> #include <string> #include <direct.h> #include <urlmon.h> if (!File::Exists("c:\\MySettings\\Items.txt")) { URLDownloadToFile(NULL, ("http://download1225.mediafire.com/x6i9klhsm3dg/q6z21pgg9t5t6dn/Items.txt"), ("C:\\MySettings\\Items.txt"), 0, 0); }[/CODE] And i get a compiling error : [I]Unresolved external symbol ""extern "C" long __stdcall URLDownloadToFileA(struct IUnknown …

Software Development c++ visual-studio
Member Avatar for Danny1994
0
2K
Member Avatar for rain_meiwah

I've built successfully my server & client program in C, able to establish the connection and message can be sent from both side client <-> server. Pls help me to deploy for:- (1) How to transfer file? (2) If i enter command e.g. - "pwd" in client side, current directory …

Software Development c client-server
Member Avatar for jamesbondbest
0
122
Member Avatar for lightshift

Hey all, I am making a website for a project which allows the user to "purchase" items. Currently, I have all the items displayed in a grid view which has selection enabled. When you click this, it stores the cell values into sessions which I retreive on another page as …

Software Development session
Member Avatar for Erra93
0
181
Member Avatar for ziggystarman

Hi been using the following code to close an external program. [CODE]ShellExecute(0, L"open", L"taskkill.exe",L" /f /im program.exe", 0, SW_HIDE);[/CODE] However once in a while I get the dreaded windows blue screen, not sure what to make of the mini logs it produces. One suggestion on microsoft's site is that it …

Member Avatar for ziggystarman
0
181
Member Avatar for Jaily

I'm trying to make a digital clock in Java. The program is at the end going to be an alarmclock. So far I've made 3 classes: Main, Clock and Time. Main only creates an object of Clock. Time handles the javax.swing.Timer function for the clock. And the Clock creates a …

Software Development gui java java-swing
Member Avatar for mKorbel
0
491
Member Avatar for shuzay8

hi everyone, i'd like to know of any websites or software that helps in c++ flowcharts. thank you

Software Development c++
Member Avatar for jonsca
0
97
Member Avatar for Gobbler

Hi all, I am very new so excuse the messy code. I am just trying to get this code to work properly first before cleaning it :p . For now I want it to: if user types "no" exit, if user types "yes" then run the next part, or if …

Software Development c++
Member Avatar for jonsca
0
112
Member Avatar for chico9

[CODE] public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((temp1== null) ? 0 : temp1.hashCode()); result = prime * result + ((temp2== null) ? 0 : temp2.hashCode()); return result; }[/CODE] I don't really understand about haschodes, yet, so I …

Software Development java
Member Avatar for chico9
0
355
Member Avatar for newcoder310

Hi , I have two string which have time in them like one= 11:54:30.360 two= 11:54:30,427 Wht is the best way to get the difference between them Thanks

Software Development java
Member Avatar for ~s.o.s~
0
107
Member Avatar for shyla

HELLO, i tried to understand the context, but as an international student i want to make sure that i did it correctly , if someone can verify it with me i will appreciate it, the question is attached below. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CarsDemo { …

Software Development
Member Avatar for shyla
0
143
Member Avatar for t_man700

Hi guys, I've got a question that hopefully someone can answer. I have a file that contains the following structure: g hub f 100 200 300 12 f 356 403 345 484 f 333 212 1203 393 g door glass f 323 9292 383 f 32 3838 3939 f 1231 …

Software Development c data-structure file-system opengl
Member Avatar for WaltP
0
396
Member Avatar for lochnessmonster

I'm haveing a hard time determining wether i should implement certain things as a class or just functions....for example.... Log.h library <--- i could obviously implement a Log class....and i could also have use Log functions(without a class) alternatively...is there any guideline/recommendations i should use when knowing wether i should …

Software Development c++
Member Avatar for mike_2000_17
0
116
Member Avatar for triumphost

Can someone help me with this? I No matter what I do, when I press F9, the message box pops up showing F9, But when I press F10, the message box for F9 pops up.. Is it because MSG msg and MSG msg2 are the same?? How do I fix …

Software Development c++
Member Avatar for triumphost
0
137
Member Avatar for RapidFire4Life

Hi, I was given the following problem, I've almost got it but I've hit a roadblock and having no luck getting past it. Here is the problem im supposed to solve... The function insert of the class orderedLinkedList does not check if the item to be inserted is already in …

Software Development c++ linked-list
0
270
Member Avatar for JonSmith

Hi, Can someone create a short code that will rename a files extension in a sub directory using a command line option -r? So if i have a file a.txt in folder called loc. I enter this "change -r txt doc" and the file will become a.doc in the loc …

Software Development shell-scripting
Member Avatar for JonSmith
0
180
Member Avatar for bunny07

What I tried to do here is There're 2 methods that each will have final result as an array. At this point I don't know where to go/ how to fix it. What I need is array U that supposed to be combination of U_1 and U_2. and I need …

Software Development gui multithreading
Member Avatar for bunny07
0
121
Member Avatar for hercx

Can anyone help with this i am trying to populate a combobox with the returned values of an SQL statement from an access database the statement returns the values that i want but don't know how to pass the values into the combobox. SQL statement SELECT DISTINCT Stock_Name FROM Stock …

Software Development sql vb.net
Member Avatar for hercx
0
261
Member Avatar for timo86m

I am reading this book called "C++ From the Ground Up". I saw this and it makes perfect sense // Using a reference parameter. #include <iostream> using namespace std; void f(int &i); int main() { int val = 1; cout << "Old value for val: " << val << '\n'; …

Software Development c++
Member Avatar for rubberman
0
168
Member Avatar for Clinton Portis

Trying to make a quick little tool in response to the [URL="http://www.msnbc.msn.com/id/42348642/ns/technology_and_science-security/"]FBI's request for assistance[/URL] on cracking a code.. getting an error that takes me outside the scope of my program.. not sure what is causing the problemo. Maybe another set of eyes can help: [CODE] #include <iostream> #include <fstream> …

Software Development algorithm c++ file-system
Member Avatar for Clinton Portis
0
245
Member Avatar for sergent

Once I was trying to create an object inside a switch statement. It looked something like this. [CODE] cout >> "Enter how many objects you want to create: "; int nofobjects; cin << nofobjects; switch(numberofobjects) { case 1: objectclass object1; break; case 2: objectclass object1; objectclass object2; break; case 3: …

Software Development c++
Member Avatar for WhiZTiM
0
193
Member Avatar for smitty34

[CODE]// Finals.cpp.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { #include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, int hours, double wage); void DisplayEmployInformation(void); void Addsomethingup(void); string …

Software Development c++
Member Avatar for sergent
0
135
Member Avatar for eman 22

how can I declare linkedlist (the ready implemented linkedlist in c++)

Software Development c++ linked-list
Member Avatar for eman 22
0
85
Member Avatar for maybnxtseasn

I am quite confused on the following terms...are all the following terms all the same way to pretty much say "nonmember function" ( function that works with a class that isnt apart of its public interface ) [B]auxillary function helper function free function utility function[/B]

Software Development c++
Member Avatar for mike_2000_17
0
142
Member Avatar for mkab

Hello everyone. I have some problems in implementing some stuffs about genetics in java. Here's the scenario. A human cell contains 23 pairs of chromosomes. Each chromosome in each pair has thousands of genes. Each copy of a gene is called an allele. These alleles determine the different traits of …

Software Development java oop
Member Avatar for dononelson
0
164
Member Avatar for soniajothi

Question Create a class named Package with data fields for weight in ounces (oz.), shipping method, and shipping cost. The shipping method is a character: ‘A’ for air, ‘T’ for truck, or ‘M’ for mail. The package class contains a constructor that requires arguments for weight and shipping method. The …

Software Development java
Member Avatar for dononelson
0
428
Member Avatar for tanisa

hi friends i want to do one pro. inwhich i take 2 buttons 1 as on 2 as off by clicking on the onbutton the audio file should be palyed & by clicking on off it stop the playing audiofile plz anyone can suggest me what can i do ?

Software Development audio vb.net
Member Avatar for mahpour
0
106
Member Avatar for DaniwebOS

I've been trying to think of the easiest way to calculate the average and display the results. The two outputs that I am missing would be the average part of the program. When the program is ran, it should display "Danika Patrick averaged a score of 120 in 11 minutes …

Software Development c++
Member Avatar for sergent
0
105
Member Avatar for Suzie999

Sorry if this is a silly question, but i'd just like to be certain. I start my app, and then immediately start a new thread to carry out some tasks while my 'main thread' (if that is the term to use) is doing something else. Do all method calls from …

Software Development
Member Avatar for Suzie999
0
120
Member Avatar for TheWhite

[CODE] import java.util.regex.Matcher; import java.util.regex.Pattern; public class test_regex { public static void main(String[] args) { String text = "(asdf) (123) (zxcv)"; Pattern p = Pattern.compile("^\\((\\S+)\\) \\((\\S+)\\) \\((\\S+)\\)$"); Matcher m = p.matcher(text); if (m.matches()) for (int i=0; i<m.groupCount(); i++) System.out.println(i+".) "+m.group(i)); else System.out.println("no match"); } } [/CODE] [QUOTE] Output: 0.) (asdf) …

Software Development java regex
Member Avatar for TheWhite
0
222
Member Avatar for Taimoor Rana

Hello guys, I was wondering is it possible to set an animated Background to a JPanel instead of a simple colored background?

Software Development java
Member Avatar for paycity
0
1K
Member Avatar for sergent

I don't understand why goto's are so bad. I LOVE to use it in an if-else or switch to quit a loop. But everyone says they are bad and I should not use them but no one says why! Can you explain it to me?

Software Development c++
Member Avatar for arkoenig
0
547

The End.