43,549 Solved Topics
Remove Filter ![]() | |
I am trying to create a class for doing number factorization on a random number, so I need to create a pointer to store the factors of the number. But when I compiled it, I got an error. My question is 1)What did I do wrong? I have a feeling … Software Development c++ | |
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 … | |
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 … Software Development gui java java-swing | |
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 … | |
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): … Software Development python | |
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 … Software Development api c++ windows-api | |
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 … Software Development assembly | |
Hi, I want a code for opening a particular folder or directory on button click. Thanks. Software Development java | |
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 … Software Development java | |
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 … | |
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 … | |
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 … | |
![]() | 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) … Software Development c ![]() |
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! Software Development c# | |
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 … Software Development c | |
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 … Software Development java | |
Hi Guys, First post on here :) I've been here before and i've usually been able to find what I needed but now I'm in a bit of a bind. I'm doing a piece of coursework for my university course and i've just hit a huge brick wall. Basically what … Software Development c++ linked-list visual-studio | |
hi again.. Could sure use some help in another code I am currently working on. Would really appreciate the help. Today i am trying to convert a date i put in a textbox(txtJulian) to a normal date like 02/05/2011(or any other conversion depending what is imputed in the textbox). I … Software Development vb.net | |
Hello, Does anyone know if there is a way to keep a desktop icon after a new version of software is installed? I'm using VS .net 2008 and after publishing a new version of software, the program updates the first time it is opened. However, after the install of the … Software Development publishing vb.net | |
i am trying to write a SP that will return a value in vb.net here is my SP CREATE PROCEDURE ClaimTotal @Ctotal BIGINT output AS select SUM(total) from claim where @ctotal = total I want to SUM my total coloum from my table claim, and store this in a varible … | |
hi, is there any code that calculates the cdf of lognormal distribution? i came across one in codecogs.com but it requires commercial license:/ any help would mean a lot. thanks from advance Software Development c | |
Hello, This is part of code I posted in another thread. Seems like the process works, I can load my arrays. But when I make a choice from a menu list. it just jumps out of the while loop. It does not enter the switch. I am sure I am … Software Development | |
Hey, it's me again. Again with a topic that has been covered here but reading through the old threads didnt help me to solve my problem. And I am pretty clueless at the moment. Consider the class passenger_queue with 2 functions, namely: [CODE]int passenger_queue::get_passengers_waiting() const { // Insert your code … Software Development c++ programming-construct | |
Hi Experts, I am working on the project that is going to be complate in some days. I want to limit trial usage of program for 1 month. I am succeded to do it. If trial period expired the program doesnt work and prints warning messages. I want to add … Software Development python | |
Hi! im trying to make a procedure wich saves what is on screen in a variable defined on the data segment (antes dw 2000 dup (?)). It compiles well but it freezes the program when it is called by it(program). BTW: this program is in textmode 80x25 16-bit and i … Software Development assembly | |
hi, this is my connection string to connect to mdb file but i'm getting error as remark in red... i create the password using open exclusive method and i generate the p/w. i guess its the way i connect using username and p/w but I have no idea what i … Software Development open-source vb.net | |
hi, i wants to ask some string problems, as below: string []first 1 2 3 4 5 1 4 5 1 3 4 5 string second="2 3"; [code] double sum=0; foreach(string a in first) { if( ) // what should i write here? { sum++; } } [/code] In program … Software Development | |
![]() | Hello, Hi i have been just looking at C++ games programming and i have bought a book and learned the basics of C++ aswell as some indepth games programming. I have been thinking of developing a small game with physics and stuff but for physics i'd like to use the … |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
hi everyone, i'd like to know of any websites or software that helps in c++ flowcharts. thank you Software Development c++ | |
[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 | |
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++ | |
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 … | |
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 | |
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++ | |
how can I declare linkedlist (the ready implemented linkedlist in c++) Software Development c++ linked-list | |
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 ? | |
[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) … | |
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++ | |
My original plan was to pipe "ls -l", get the permission string that represented the file in question. Translate the string of 'r's 'w's 'x's '-'s into 0s and 1s then convert it from binary to octal. This seems really cumbersome and annoying and I gotta figure there is some … Software Development c file-system | |
I don't fully understand what is wrong with my code, it will read the first lines of any text file but then overloads and keeps displaying "0.00" and then crashes the program. I'm trying to get it to read student's last names and read their GPA scores, and the sentinel … Software Development c++ | |
Okay here's what I have so far... The error I receieve is below... The HCP Header File [CODE] #ifndef HEALTHCAREPROVIDER_H #define HEALTHCAREPROVIDER_H #include "stdafx.h" #include <string> #include <iostream> using namespace std; class HealthCareProvider { protected: string fullName; string profession; int yearsExperience; string companyType; string apptAvail; double bill; double fee; public: … Software Development c c# c++ visual-studio | |
Hi I could sure use some help. In a form of a push in the right direction. I am tryig to remove all multiple tcode (stock name) and add (if tcode is "B" add the shares and if tcode is "S" subtract the shares) them together in just one line … Software Development vb.net |
The End.