43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Arthas

Hi. I am using boost.threads with SDL. Am using vc++2010. I have wrapped the SDL input functions in a class SDL_Input. eg. [CODE]class SDL_Input { public: bool* GetKeyState(); void ProcessEvents(){ static SDL_Event event; while(SDL_PollEvent(&event)) { switch(event.type) { case SDL_KEYDOWN: keystate[event.key.keysym.sym] = true; break; //and all cases as mousebuttonup....so on } …

Software Development c++
Member Avatar for Arthas
0
139
Member Avatar for becky007

hi, im working with the queue class but not allowed 2 use the collections namespace, ok thats fine. paitent is the name for objects i want to queue. heres my paitent class [CODE] public class paitent { private string name; private string NHSW; private paitent next; } public string name …

Software Development queue
Member Avatar for becky007
0
106
Member Avatar for emilyhedgecock

Basically, its all to do with the inventory system, all the other reams of code work fine, thank God! with the inventory, the idea is that each character can hold 5 items, so an array, but the array needs to hold the itemID and the itemName therefore an array wont …

Software Development c++ oop
Member Avatar for Stefano Mtangoo
0
155
Member Avatar for ramlisarip

hello...how to open folder using vb??using shell function?

Software Development visual-basic
Member Avatar for mhine.jhuniane
0
455
Member Avatar for ibdatx

Hi all, I am attempting data binding in WPF. I have a class Recipe and another called RecipeService. There seems a problem with the RecipeService class in terms of compatibility with the Recipe class as when I add its type to the ObjectDataProvider in the XAML file, I get an …

Software Development asp.net c c# c++ visual-studio
Member Avatar for Antenka
0
491
Member Avatar for tyson.crouch

G'day guys, My boss has just asked me to develop a small CRM system. Now, writing a simple SQL Insert is not something im a stranger to, however for some reason i cannot seem to get this working. I've included all necessary libraries, and tested the actual sql statement in …

Software Development java sql
Member Avatar for masijade
0
609
Member Avatar for Sunshineserene

Hi, I want to know to rows and columns of numbers from a text file. I do not want to read it as a string, but one number (including numbers with decimal) by itself. I tried using FileInputStream and DataInputStream, but I'm not really good at it. I don't know …

Software Development java
Member Avatar for tong1
0
2K
Member Avatar for Mr.BunyRabit

Hey guys. I am seriously not as smart as you all. I am working on this program and need read info from an access database to a DataGridView. Now that part i can do. the part i cannot do, and the code i dont know what it is, is to …

Software Development vb.net
Member Avatar for JJCollins
0
120
Member Avatar for Ptap03

Hello, I'm new to this thread but have referenced to it before many times. I have finally joined thanks to all the great responses I have read in the past. Okay, I recieved an assignment which is as follow... "Declare a dynamic array of Person to store the information of …

Software Development algorithm c++ user-interface
Member Avatar for VernonDozier
0
461
Member Avatar for arjen

hello guys i need help in datagridview i know how to display all the data in database using the datagrid but the problem how can i display one data from one customer only in the databse if she input his name so far this is my code [CODE] Dim dt …

Software Development vb.net
Member Avatar for prvnkmr194
0
129
Member Avatar for pwp14

#include <iostream> using namespace std; int ScrabbleScore(string word) { int x=0; for(int index =0; index < (int)word.length() -1; index ++) { char ltr = toupper(word[index]); if(ltr == 'A' || ltr == 'E' || ltr == 'I' || ltr == 'L' || ltr == 'N' || ltr == 'O' || ltr …

Software Development c++
Member Avatar for gerard4143
0
1K
Member Avatar for ana_1234

So I've been working on this program for a while, I'm finally finish but I have two error that I can not understand why. My first error is when I am declaring the header f [CODE] //------------------- Mixed.cpp -------------- #include <iostream> #include "mixed.h" using namespace std;[/CODE]ile> it keep sending me …

Software Development c++ oop
Member Avatar for ana_1234
0
305
Member Avatar for Voldemort2

I have just started programming in java. I am planning to do a project on barcode reader. Can you suggest from where shall i start? I want to learn about manipulating pixels. How can i convert the set of pixels into the array of pixels? I am in desperate need …

Software Development image java
Member Avatar for Voldemort2
0
152
Member Avatar for Slowly

Hi, This code snippet works. Except for one line, which I cannot find the solution to. public void read(Scanner in) { Pattern p = in.delimiter(); in.useDelimiter("\n"); while(in.hasNext()) { in.next(); lineCount++; } //rewind pointer - how!! ?? in.useDelimiter(p); while(in.hasNext()) { wordCount += 1; charCount += in.next().length(); } } ...it appears, much …

Software Development java
Member Avatar for Slowly
0
5K
Member Avatar for codingNewB

Hello Everybody I cannot get my file to open in my eof program. Outlined below is what the program needs to do: 1) Program needs to read from a file (ex. "Data.txt") 2) Program needs to read even & odd numbers down file. (ex. 2 3 12 5) 3) Program …

Software Development c++ file-stream
Member Avatar for codingNewB
0
769
Member Avatar for angel_eyez

Hi all I write a code which read all application and system logs but i'm stuck at one place. How do i read the security logs i've tried alot but it didn't work.I logged in as administrator but still got the exception [COLOR="Red"]{"The source was not found, but some or …

Software Development
0
59
Member Avatar for myk45

Hello, im trying to write a recursive algorithm to generate the following binary sequence. ie basically: for 3: 000 001 010 011 100 101 110 111 i tried the iterative method, it works fine. this is what i did: [CODE]for (i = 0 to pow(2, n) ) { //generate the …

Software Development algorithm c++
Member Avatar for mrnutty
0
1K
Member Avatar for Archenemie

Basically after every guess i want the loop to run until the user guesses right. This is just a simple number guessing game. I ask the user for more input after every wrong guess but the program ends after the second guess is given. Can anyone help? [CODE]#import <iostream> #include …

Software Development c++
Member Avatar for Archenemie
0
209
Member Avatar for --Fire--

Hi As a part of my semester project, I am supposed to do a Python based OS. The key idea is, simplest OS that lets you boot successfully and run some simple command line scripts, like how DOS works, but in Python and runs Python. I am completely baffled as …

Software Development python
Member Avatar for Archenemie
0
749
Member Avatar for kominosmash

I'm having trouble trying to figure out how to code an output for the customer when they order a certain item for example: customer orders a number 1 which is a double burger or a number 2 a heap of fried chicken, then they are prompted if they want fries …

Software Development c++ visual-studio
0
225
Member Avatar for Jalwes

We were assigned a game of hangman for our Perl class. In this Perl script, we must use an html page to get the user's name. I feel like I'm getting awfully close, but I can't quite seem to get the userName value to print after each time the user …

Software Development html-css perl
Member Avatar for Jalwes
0
225
Member Avatar for swebb

Hi all, I've just started to learn XSLT, so apologies if this question is very basic! I want to create a new html document, one of my elements in the XML file uses mixed elements. I want to do more complicated formatting using linked documents etc. but for the moment …

Software Development xml
Member Avatar for iceandrews
0
282
Member Avatar for starpointer123

I'm currently working on a recursive descent interpreter using C++. Though there is already a code on the project, I'm asked to rewrite the Recursive Descent Interpreter implementing it using a list class without using templates and facilites from the standard template library. I already worked through part of the …

Software Development algorithm c++
Member Avatar for starpointer123
0
188
Member Avatar for pythonlearning

just write this function for a recursion trace back, but it become a infinite loop and won't get into the next level of recursion. I cannot find the problem, many thanks! p_value gotten from a matrix outside, tested that and it is OK. status, i, j pass form main and …

Software Development python
Member Avatar for Gribouillis
0
77
Member Avatar for BAEdwards

Please can someone tell me why when the listbox, PSFQueryResults, is populated it always draws it's data from the active worksheet and not Sheet2 (Sheet2 is the 'Code Name' for the sheet. The 'Tab Name' is Query)? I suspect I am missing something obvious. Many thanks in advance, Ben. [CODE] …

Software Development visual-basic
Member Avatar for AndreRet
0
396
Member Avatar for swathys

hi, How do i do if there is no record in listview i should disable the payment button. TQ [CODE] If ListView1.Text = "" Then paymentBtn.Enabled = False MsgBox("No Transaction") End If [/CODE]

Software Development listview vb.net
Member Avatar for Oxiegen
0
145
Member Avatar for buster2209

When I set my code going, the whole GUI freezes and I can't select anything or even move the window until the code has finished. Is there a way to interact with the GUI [I]whilst[/I] a piece of code is running?

Software Development gui
Member Avatar for nick.crane
0
98
Member Avatar for glenak

I want to begin writing C++ codes in Eclipse. When I try to create a new C++ project I am given the option of choosing an executable project type, a shared library project type or a static library projec type. What's the difference between all these project types and which …

Software Development c++
Member Avatar for glenak
0
216
Member Avatar for udev

Hi! I want to read from a set of documents and put the information into a matrix[x][y] , where x is the document and y is a boolean field denoting whether a particular word appears in the document x or not. So each row would have y fields/dimensions where i …

Software Development python
Member Avatar for udev
0
117
Member Avatar for crodriguez08

Hey there, I'm having trouble creating a multiplication function for the program as I have two classes to keep in mind (Monomial and Polynomial). And if possible, a little advice on how to make my for statements in the arithmetic operators more flexible to user input such as i<PolynomialSize, which …

Software Development c++ legal mathematics
Member Avatar for crodriguez08
0
2K
Member Avatar for AntonyLini

I am trying some Uiculture change functionality. In that I need the name and text of controls in a form to change the culture. I got some Demo project and it is in C#. I tried to make the same functionality with the C#.net and Also using VB.net. But the …

Software Development perl vb.net
Member Avatar for AntonyLini
0
100
Member Avatar for AntonyLini

I am trying some Uiculture change functionality. In that I need the name and text of controls in a form to change the culture. I got some Demo project and it is in C#. I tried to make the same functionality with the C#.net and Also using VB.net. But the …

Software Development perl vb.net
Member Avatar for AntonyLini
0
106
Member Avatar for doctorjo5

My project is as follows: 2. Modify the class NumberTest.java so that: a) The user is prompted to enter an integer and a double and the following information is displayed: a. adding the two number, b. subtracting the double from the int, c. dividing the int by the double, d. …

Software Development java
Member Avatar for doctorjo5
0
161
Member Avatar for craffel

Hi all, long time lurker and first time poster. I'm writing a Python program which does analysis on mp3 files, so I'd like to read in the mp3 data as a numpy array. I'm using pymad, which seems stable and works well. When you read in a frame of data …

Software Development python
Member Avatar for craffel
0
200
Member Avatar for networkZombie

Ok so i have to write a program called hailstone numbers. Its basically asking the user to enter a number and if its even divide it by 2, if its odd multiply it by 3 and add 1 and then output the number of iterations. I made my program but …

Software Development c++
Member Avatar for networkZombie
0
235
Member Avatar for jmcorpse

Hello, I'm a little lost as to how to get the day part of my function to come up properly without a garbage number as it wants to do at the moment. I have everything else working well until it doesn't return the day on line . [CODE] #include<iostream> #include<cmath> …

Software Development c++
Member Avatar for kes166
0
125
Member Avatar for Gribouillis

I thought users of the python forum could be interested in a seminar conference by Guido van Rossum about the design and implementation of the python language, so here is the link [url]http://irbseminars.intel-research.net/GuidoVanRossum.wmv[/url] (it may be easier to download the file first instead of reading it directly from your browser)

Software Development python
1
115
Member Avatar for Aldius

Hello everyone! I just had a quick question about XSLT. I have a large xml file with many <DIMENSION_Id> nodes nested inside each other. In each <DIMENSION_Id> node there are two SYN tags: <SYN>String</SYN><SYN>Integer</SYN> What I am trying to do is take the furthest child node of each DIMENSION_Id and …

Software Development xml
Member Avatar for Aldius
0
425
Member Avatar for New2Java2010

I am working on a homework assignment. The assigntment info is as follows: Write a grading program that helps to determine your letter grade based on your exam score. For example, when you put in exam score of 80, the program will determine you get a B. Please note the …

Software Development java
Member Avatar for NormR1
0
287
Member Avatar for kdott

hi all, i have a programming assignment where i read a text file through command line arguments. i then use that information to get a list of photos (just strings, not actual images) and a list of keywords that correspond to each of those photos. i am stuck on how …

Software Development java linked-list programming-construct
Member Avatar for JamesCherrill
0
160
Member Avatar for PerplexedB

I need functionality to retrieve the new pk, like I could in DAO. I would like my "nLog" function (see code below) to return the new pk. I have found [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;815629&Product=adonet"]this[/URL], and I was able to make it work fine in my environment, so I'm pretty sure the problem I …

Software Development dataset ide microsoft-access vb.net
Member Avatar for PerplexedB
0
161
Member Avatar for mi.mac.rules

I go to Rutgers, NB, and I'm taking a class that requires the use of C without teaching us much of C, so sorry if I'm a bit uneducated. My first question is, when using fgets(), how do I get the [B]next[/B] line? I have [CODE]while((fgets(line,MAX,file)) != NULL){[/CODE] to get …

Software Development c
Member Avatar for mi.mac.rules
0
2K
Member Avatar for hoganmadman

the basic idea of what im trying to do is write a program that reads an arbitrary number of integers less than 20. then it prints out the position of the integer in the order the user inputed it then it finds the sum when it scans a non integer …

Software Development c mathematics
Member Avatar for hoganmadman
1
145
Member Avatar for chuckjessup

I have written two programs that need to use an exe.manifest file, when I attempt to run the either of the applications it says that it cannot start because the application configuration is incorrect. I will post below and hopefully someone knows what to do with it. [CODE] <?xml version="1.0" …

Member Avatar for chuckjessup
0
301
Member Avatar for Fbody

I'm doing some self-study concerning statistics right now and while doing so I want to get some practice with templated classes. As a result, I'm working on a collection of templated classes designed for statistical analysis. What I would like to know is how I would handle creating typedefs for …

Software Development c++ data-structure
Member Avatar for nbaztec
0
1K
Member Avatar for titan5

I have to use a software package written in c with many different files. It has an executable file with a variable - cc=/usr/bin/gcc cc is later used in that file to compile other files present in the software. wenever i try to run this file I get an error …

Software Development c file-system ubuntu
Member Avatar for titan5
0
208
Member Avatar for cortez716

1st off, just want to say if you're reading this, thank you for taking your time to help me out, I really need it. Ok now on to my question: Using C++ I'm attempting to use a "for"loop to ask user to input two integers, then the loop should add …

Software Development c c# c++
Member Avatar for dalymiddleboro
0
392
Member Avatar for RobBobSmith

Hello all, I have a text file called: concentrations.dat The file contains a lot of different data. Here's the data that I'm interested in: # ET: list of elements <ET> 'Cu' 'C' 'Sr' 'He' 'Mg' 'O' 'Cr' What I want to do is read the elements into a vector called …

Software Development c++ file-system
Member Avatar for RobBobSmith
0
253
Member Avatar for fire_

Hello. How can i make count-down timer on MFC program? Thank you

Software Development c++
Member Avatar for lukename
0
333
Member Avatar for Stefano Mtangoo

There are many decent sites for C++. However, some of Dev, including me, works most of the time offline. So I need to have one for reference. If anyone knows a decent one then please post a link Thanks

Software Development c c# c++
Member Avatar for onoffon
0
150

The End.