199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kadence

I'm having issues because I am using the Boost library, but another library I am using for this project is #define'ing the term 'thread' as well. And addressing the boost thread as boost::thread in my code doesn't help. Here is what the other library's definitino is: [CODE]#if defined(_MSC_VER) # define …

Member Avatar for Kadence
0
287
Member Avatar for mjavaid

Hi all. How would I modify my current program to make it perform the conversion with the main method calling other methods instead of performing the conversion in the main method itself? I have attached a .pdf file that has a list of all the methods that must be used …

Member Avatar for mjavaid
0
113
Member Avatar for MWE_QUE

This JFrame opens and puts in the empty questions and answers when it starts as it should, but it doesn't print the questionList.size() at line 191. The next button also won't go to the next question which should be retrieved from the text file. I'm not sure if the questionList …

Member Avatar for MWE_QUE
0
239
Member Avatar for aravinda reddy

I have to find the maximum total price for the list of items so that weight should not exceed 14285 and volume should not exceed 17.. I need the best algorithm to find this.. The structure look like this wmax= 14285 vmax= 17 item weight volume price ============================== 1 1190 …

Member Avatar for Momerath
0
134
Member Avatar for zero44

Could someone please explain what this does in the code above? [code] for (; num; num /= base) { // Note: abs() is done on each digit instead of the whole num // to preserve the full range of int result.insert(result.begin(), digits[abs(num % base)]); } [/code]

Member Avatar for daviddoria
0
102
Member Avatar for gladtoplay5

For an exercise we are supposed to: Write a C++ program that uses three user-defined functions (counting main () as one) and produces the following output: Three blind mice Three blind mice See how they run See how they run One function, called two times, should produce the first two …

Member Avatar for gladtoplay5
0
281
Member Avatar for nickcolb

So far my professor has given us code and we basically "fill in the blanks" of the methods below the main code. I've done all the other methods, but am now stuck on the Taylor series portion. The code below is to calculate angles, and one of the methods called …

Member Avatar for Slimmy
0
1K
Member Avatar for Emred_Skye

Hello, I have a python script that deletes a line of a text file when the number in the second column is greater than or equal to 5. So my input file is three columns: [CODE]1 3 aaa 2 3 aaa 3 6 aaaaaa 4 2 aaa[/CODE] [CODE]def filter(in_file, output): …

Member Avatar for Emred_Skye
0
190
Member Avatar for Tenjou

Hello everyone, I'm trying to solve a problem in C++ using visual studio. The problem asks to write a program that asks the user for a positive integer no greater than 15, and that the program should then display a square on the screen using the character "X", and that …

Member Avatar for sergent
0
2K
Member Avatar for sikelesS

Hi there, first post! First off, I apologise for asking such a basic question, but I am new to Java (done VB before..) and was wondering if you could please help me out with a little problem I'm having! I have a method that reads data from a text file, …

Member Avatar for Slimmy
0
192
Member Avatar for computerdude87

Hi, I am trying to calculate how many rooms a hotel has, how many are occupied, and the percentage of rooms that are occupied. It is suppose to do this after a loop iterates once for each floor while skipping the 13th floor. I am new to this, any suggestions? …

Member Avatar for jonsca
0
109
Member Avatar for jfunchio

I keep getting the "ERROR 1005 (HY000): Can't create table 'jfunchio.rental' (errno: 150)" error where i run this code. I was wondering if anyone could help with what is wrong. I would really appreciate it. My code is below. [CODE=sql] create table rental ( item_rental_id varchar(8), customer_id varchar(8), movie_id varchar(8), …

Member Avatar for griswolf
0
224
Member Avatar for xxreenaxx1

I am compairing two tables and on mysql it shows the once that are not matched as NULL. How would I go onto printing this on a php. so the once that are matched should just print the value. and the once that are not matched should print the original …

Member Avatar for Insensus
0
128
Member Avatar for dietdew12z

I tried searching for an answer, but I'm not sure how to word the question so that it fits into a search box. I found out a month or so ago that if you are accessing variable data like $_POST['user'] or after a mysql_fetch you can use $row['id'] but it …

Member Avatar for dietdew12z
0
149
Member Avatar for ashley11

i have 1 2 : 3 , now i have to remove the ":" , after that need split it . after split, my expected output is shown below: 1 2 3 1 2 3 may i know how to remove the ":" and split it? hope anyone can help …

Member Avatar for CsharpChico
0
576
Member Avatar for Joshua Kidd

Hello all, Is there any way that I can count the number of lines in one column in a table? Such as I want to count all the names in this column on First name: [url]http://www.globalvirtualairlines.com.../web%20app.php[/url] How would I do so? Thanks in advance!

Member Avatar for evanism
0
146
Member Avatar for Slyvr

This is my first time trying to use KeyListener and I just need it to move an image over 20 px every time I press the right arrow key. After 400px, it should move down to the next line vertically 'playery.' For Some reason it prints out the console output …

Member Avatar for Slyvr
0
137
Member Avatar for madgokuss4

Hi everybody, got a small ( possible large as it's driving me bonkers lol ) problem. I'm making a stock level checking script using php/mysql. I need to make it so that the script checks each item of stock in the database and if the level of an item is …

Member Avatar for madgokuss4
0
97
Member Avatar for chaliworm

please help need a code tht calculates number of hits and misses in the cache from a adddress file with addresses stored as hexadecimals stored on th hard drive.these hexadecimals should first be changed into binary.. ive read some psuedo codes buh i seriosly dont know were to begin the …

Member Avatar for Ezzaral
0
257
Member Avatar for Labdabeta

I am having trouble with a program that I am writing. I cannot seem to be able to destroy a window. I know the DestroyWindow function but it only works on windows that my application owns. Is there any way to destroy a window that is not owned by my …

Member Avatar for Labdabeta
0
126
Member Avatar for TechSupportGeek

Hello guys, I just started learning C# (having studied VB.NET for the last 2 years) and I was wondering if you could help me out on this problem I have encountered. All I want is start an application using the [ICODE]Process.Start[/ICODE] method. In VB.NET, this was pretty easy and straightforward …

Member Avatar for CsharpChico
0
5K
Member Avatar for Limiter

HI, a pretty frustrating problem arose. I am not going to post any code this time. This should be straight forward question anyways... :) I have a class that contains a constructor with arrays. Also, a methods to add to the array using scanner class. The problem is, I implemented …

Member Avatar for dononelson
0
338
Member Avatar for Kath_Fish

hi..i am using hashset to to my intersection.But still cannot intersect the two hashset successfully.I need some help from you guys.. Now, my first hashset include the number in string 2 1 3 4 5 my second hashset include the number in string (in line) 1 2 1 2 3 …

Member Avatar for Kath_Fish
0
363
Member Avatar for chetan_8187

Hi, I want a code for opening a particular folder or directory on button click. Thanks.

Member Avatar for sairakhushi
0
938
Member Avatar for salmap

Hi, I have a grid view(drg).The first column diplays the value of checkbox(true or false). I am counting the number of "True" values and display it in textbox txtc when I click on it. Private Sub txtc_Click(ByVal sender As Object, ByVal args As System.EventArgs) ' ** Place Event Handling Code …

Member Avatar for codeorder
0
226
Member Avatar for triumphost

I have the following code which finds a window by a partial name given.. I've tested it and it doesnt work in Dev c++ but it definitely works in visual studio 2008.. So I decided to make a form with nothing on it and implement this code to see if …

Member Avatar for triumphost
0
328
Member Avatar for cnlengr

Hi, I've been learning java, and I have a question about creating an array. Basically, what I want to do is that I wish to create an array with an unknown array length, then ask the user to input values to be stored in the array. The length of the …

Member Avatar for cnlengr
0
116
Member Avatar for mbarandao

i'm trying to redirect a successful login user to his/her specific directory in the root site. Could I request some guidance in this area?

Member Avatar for mbarandao
0
1K
Member Avatar for SSully

So simple problem. I need to have a division by zero validation in my constructor in this class. It is painfully simple, but I am just starting to learn classes and I just cannot figure out what I have to do. Would it be easier to just put the validation …

Member Avatar for Kanoisa
0
259
Member Avatar for stereomatching

Sorry I don't know how to express it in English, so I use some codes to show what I am trying to say [code] template<typename strategyOne, typename strategyTwo, typename strategyThree> void someCode(strategyOne stOne, strategyTwo stTwo, strategyThree stThree) { //some codes stOne(some args); //some codes stTwo(some args); //some codes stThree(some args); …

Member Avatar for stereomatching
0
121
Member Avatar for ThatGuy2244

I would like to know how to display more than 256 colors in DOS I already know about the color palette which can hold 256 colors and can be changed, but as soon as you change them the colors on the screen change. So how would I display more than …

Member Avatar for ThatGuy2244
0
489
Member Avatar for xanawa

Hi, I am doing a Resturant Reservation System and i am thinking of doing a schedule of the tables that are reserved as shown below. _______|08.00| 08.30| 09.00| 09.30| table1 _______ table2 _______ table3 _______ table4 _______ table5 _______ . . . I tried to use datagrid view but i …

Member Avatar for xanawa
0
116
Member Avatar for techturtle

I’m fairly new to C#, especially with databases. I’ve worked in VBA and Delphi doing databases, so I was hoping to just use this like a RecordSet or a Tcursor, but so far it’s not panning out like that. I have a SQL database added as a dataset in my …

Member Avatar for techturtle
0
197
Member Avatar for HitnBooks

Hello everyone. I'm teaching myself C++ and I've found this lesson online on passing pointers. I've got most of it down, but two of the functions for the program aren't displaying right. Would you wise (experienced) ones have a moment to look at just these functions? Are they looking wrong …

Member Avatar for venomxxl
0
145
Member Avatar for Kanoisa

Hi all, I'm currently thinking about how to make a thread safe queue. Specified as such: [LIST] [*]Single reader [*]Multiple writers [*]Dynamically sized [*]Suitable for both a reader sleeping on a queue or as a polled queue [/LIST] So what I'm looking at so far (pseudo)code wise is the following …

Member Avatar for Kanoisa
0
660
Member Avatar for cayman

Hi Folks Im rusty on my pointer passing I would like to pas an array (or pointer thereof) to a function, for use within that function. I cant remember the correct syntax, if somebody could help me out, that'd be FAB heres where I am at [CODE] int main (void) …

Member Avatar for cayman
0
130
Member Avatar for VasquezPL

Dears, I have a problem with belows code: [CODE]mySearcher.Filter = "(&(objectClass=user) (|(cn=" + objectName + ")(sAMAccountName=" + objectName + ")))";[/CODE] i receive errors: NEWLINE IS CONSTANT. Can you tell me whats wrong with that code? THX in advance!

Member Avatar for VasquezPL
0
112
Member Avatar for SCass2010

Hi everyone, I have an ArrayList containing 40 or so JPanels for a board game developed in Netbeans with java - is it possible to have an event listener or something similar that will "monitor" the ArrayList for any of the JPanels being clicked, rather than having to create an …

Member Avatar for SCass2010
0
1K
Member Avatar for yashsaxena

Hello All Is it possible to check the ip address of a particular web site? If yes what will be the code?

Member Avatar for venomxxl
0
167
Member Avatar for khan43

I am using visual studios 2008 combined with ASP.NET prog language. On my master page I have a div in the center of the page, which is called #nav in the css page. This div is a square box, althou I would like to curve the angels of the div …

Member Avatar for khan43
0
132
Member Avatar for veda&&

[B]i need help i wanna know how can i pass am array of objects to the constructor header & the .cpp implementation ? & prompt the user to enter the values to fill it ? & how to pass it if it's array of int & its multi dimension ?[/B] …

Member Avatar for jonsca
0
223
Member Avatar for Msam85

Hi all, I'm new with asp.net and I'm currently starting a project with MVC 2. As far as I know the models folder is dedicated to store the .cs of our entities and in the controllers folder you receive the petitions from views, create new instances of the entities and …

0
114
Member Avatar for Buffalo101

Hello, I have a function that looks like this: [code=C] CMyMessage(char type, char *name, char namelen, char *text, char textlen){ ... ?! } ... void main() { char name[50]="JOHN"; char text[200]="testing123"; CMyMessage(1, name, strlen(name), text, strlen(text)); } [/code] The ranges are: Type = 0/1; namelen = 0..50; textlen = 0..200 …

Member Avatar for rubberman
0
123
Member Avatar for XxPKMNxX

i have this code. i am trying to set a grid and start at c. it then moves to the next value - 1, so in this case, would move to a 4. However, in my IF statement, i want to put if(position surrounding c == c-1){then change that position …

Member Avatar for XxPKMNxX
0
143
Member Avatar for pinkygirl

Can anyone help me solve this error:- Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

Member Avatar for pinkygirl
0
104
Member Avatar for Giggaman

I've searched & searched and haven't figured it out, any help is great! I need to display certain fields from my table, right now it only displays the first row of the table. I need to display all rows in the table. Code I have right now [CODE]$query = "SELECT …

Member Avatar for reygcalantaol
0
156
Member Avatar for Tazsweet19

I tried to looking for website about ForAll() "Invokes the specified action for each element in the source sequence in paralle from LINQ (PLINQ). There is no example for ForAll(). Let me know thanks.

Member Avatar for Momerath
0
60
Member Avatar for Zaffron

Alright, so I'm trying to make a text rpg for proof of concept purposes, and I've hit a wall. My problem, which may be deeper than I hope, lies within class instance referencing. I have a chest class where it fills the chest with a random amount of items. This …

Member Avatar for woooee
0
465
Member Avatar for prakashghai

Friends, I am zero in PHP, but still i have managed to do something to fulfill my requirement. I am stuck with one thing now..So i need help on.... I am using one html+php form to submit database into mysql. I created a display of that table through php script …

Member Avatar for reygcalantaol
0
3K
Member Avatar for Phil++

Hello,I have a function that draws a rectangle on a form (different widths and heights) [code] public void drawRectangle() { Graphics g = pictureBox1.CreateGraphics(); Rectangle rect = new Rectangle(50, 50, 60, 50); g.DrawRectangle(Pens.Black, 10, 10, 10, 10); } [/code] I have a picturebox called picturebox1 but how would I get …

Member Avatar for ddanbe
0
110

The End.