132,726 Archived Topics
Remove Filter ![]() | |
Hi - Major novice here. I'm trying to write a code that starts with a user defined number (lets say "N"), picks a random number between 1 and N (lets say "R"), pushes R onto an array, subtracts R from N, then picks the next random number from (N-R), pushes … Software Development perl | |
Well, what i'm trying to do is use cin.getline with my char pointer of 255 characters, take a look at the code below: [CODE] #include <cstdlib> #include <iostream> #include <fstream> #include <conio.h> using namespace std; char * pChar[255]; pChar = new char[255]; void newPointer() { delete pChar; pChar = new … Software Development c++ | |
I configure it like this ./configure --with-msw --enable-debug --enable-debug_gdb --disable-shared --enable-unicode --with-opengl and when I build it I get this error. /cygdrive/c/wxwidgets-2.8.10/bk-deps g++ -c -o baselib_appbase.o -D__WXMSW__ -I./src/regex -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LAR GE_FILES -D__WXDEBUG__ -I/cygdrive/c/wxwidgets-2.8.10/lib/wx/include/msw-unicode -debug-static-2.8 -I./include -Wall -Wundef -Wno-ctor-dtor-privacy -ggdb -O0 ./s rc/common/appbase.cpp In file included from ./include/wx/memory.h:16, from … | |
hey everyone, does anyone know the python command that forces the interpreter to go interactive? the situation i'm talking about goes like this: [LIST] [*] run script from command line [*] let all kinds of complicated nonsense execute [*] script runs the "go interactive" command [*] python dumps you in … Software Development python | |
Sairam all I had hard time with this particular problem. I have downloaded from Micrium Website MUCOS a RTOS. I used AVR Studio,and try to build the OS. But unfortunately I encountered this problem: --->" __root" is compiler directive for IAR compiler and this tells the compiler not to optimize … Software Development c | |
Can u suggests me some powerfull but understandable java code for encrypting and decrypting password.The password should be encrypted and stored into the database and can be retrived ,decrypted Software Development encryption java | |
I have written my code in a CLASS LIBRABY file,now i need to call this on click of a button which is there on the windows form... I am using Visual Studio2005 Please help me,i don't have any idea about how to do this:S Software Development c# | |
have two listboxes. first one of these is multiselect. what i want is after i choose one or more item from the first listbox the other listbox should be populated by an sql query. what i mean is i will use the first listbox's items in sql and populate the … Software Development sql | |
Hi I would like to ask if it is possible for me to create buttons inside a button using C#, such that when i click a button few more other buttons is available for clicking. How can i do that?? Thanks Software Development | |
Folks, I have been told that there is one logical problem with this code. Basically, this is an implementation of the library function strcat(). The intended beahviour of this function to concatenate ct to the end of s. Return s. I could not find any logical problems with the code, … Software Development c | |
Hello. I am trying to do a project with linked lists. It seems that everything is coded correct in my code to create new nodes and move my pointers and such. But for some reason my function that is supposed to print all the names stored in my list only … Software Development c linked-list | |
I have a vector I need to delete every third element 123456 12456 1245 125 15 1 [CODE]vector<int>::iterator iter = v.begin(); while( iter != v.end() ) for( int i = 0; i < v.size() +2 ; i++ ) while( iter != v.end() ) { if (v.size() != 1 ) ) … Software Development c++ | |
I have a "Tools" class which contains a lot of functions I commonly use. One is a parallel sort. I pass it a vector of Objects and a vector of indices, and it sorts the Objects and sorts the indices the same way (so the corresponding index is in the … Software Development c++ | |
I have for example a ftp server with the address ftp.mywebsite.com On this ftp server I have a path: FileFolder\\file1.txt What I wonder is how it would be possible to connect to this ftp server and read/write to that file. Is there any good articles of how this is done … Software Development c++ | |
Hi, im lookin for a c function which will take hex values stored in two different integer variables say TH1,TL1 . So say TH1 has FF and TL1 has 00,then i need a program that will convert the effective value FF00 to decimal ,ie 65280 stored in a variable say … Software Development c | |
i need help making a password program. it lets the use input a password and check it if it is following the password rules, which are the following: must have exactly 7 characters, only alphabets and digits are allowed. i don't exactly know how to put that in an if … Software Development c ![]() | |
How can I add image before the label like a warning sign?? and how can I make bold the label?? Thanks! [code] OkCancelDialog::OkCancelDialog():Gtk::Dialog( "Clear all calls", false ){ Gtk::VBox * vbox = get_vbox(); Gtk::Table * table = new Gtk::Table( 2, 1, false ); Gtk::Label * label = new Gtk::Label( "Please … | |
I'm attempting to read in various numbers and chars from a text file using ifstream. I've read through a lot of C++ File IO and can't see why my two int variables, numOfVars and numOfCNFs, aren't getting assigned in the Parser::BuildCQF() method. The code below shows my Parser.h, Parser.cpp, the … Software Development c++ file-system ios open-source | |
Hey All I want to create a simple dice golf game in C# The basic idea is: A player rolls 3 random dice until they roll a double The number of rolls taken until a double is rolled is calculated and displayed on the console This is run 18 times … | |
i have to create a mini search engine given a directory of 50 documents and a set of sample queries. i need to include the documents in a hash table and search through the documents for the keywords in the queries.. i have no idea where to start... can anyone … Software Development c++ | |
Hello guys, I am new to this forum, but I am sure I will be an active one as I am a computer science major. I am still kindof new to c programming and am hitting a major issue. I am writing a echo client server code and I am … Software Development c client-server | |
public string GetRank(string webSiteUrl) { string urlToCall = GetRankUrl(webSiteUrl); string serverResponse = RunUrl(urlToCall); string[] response = serverResponse.Split(':'); if (response.Length <= 1) return null; return response[2]; } private string GetRankUrl(string webSiteUrl) { string url = "info:" + webSiteUrl; int ch = GoogleCH(StrOrdinals(url)); return "http://www.google.com/search?client=navclient-auto&ch=6" + ch.ToString() + "&features=Rank&q=" + url; } … Software Development caching | |
So I'm starting to use XML and I'm trying to use it as a database of sorts. I've managed to save it off and read the whole thing in, but now the problem is that I want to be able to search through, get an item, and make it. My … | |
I have a project , I need to show the Names of Employes in a ListBox . When a name is Selected , I get the Employee ID from the List box and use it to get the Employe data. The ListBox does not have a place where you can … | |
Should would i turn the following code: [CODE] import java.awt.*; import java.io.*; import java.util.StringTokenizer; public class ex74 { public static void main(String[] args) throws IOException { Frame f = new Fram(); String sent; StringTokenizer st; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a sentence: "); sent = br.readLine(); sent = … Software Development java | |
My friend and I play call of duty 4. He pwns me. I'd like to disable his keyboard in the middle of playing. Software Development python | |
Hey, I have a program that has 5 files, 2 header files called: [icode] console.h screen.h [/icode] and 3 source files called: [icode] a2main.cpp screen.cpp console.c //not a typo [/icode] When I copy the [icode]main[/icode] from my a2main.cpp file to my screen.cpp my program compiles without a problem. But when … Software Development c++ | |
A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units … Software Development java | |
Hi, I want to create a web application that will let a user enter name in a text field and the application creates a newtab with datafields for that user to enter, it all must happen on a single page. There has to be one tab for each specific name … Software Development java | |
Hi, Im working on a school project and could use some help. Im having trouble storing data in an array of structs. My program has to read student data from a file and store the information in a struct. Im having trouble passing my array struct into my fuctions, and … Software Development c++ | |
Is using (in the paint method) g.clearRect() the correct way to clear the screen? It's working but I don't know if there is a better way. . google says it is supposed to clear automatically when update is called but that doesn't seem to happen. Software Development java | |
I am working on a project that involves creating a Vehicle class which has 3 data fields, one of which is an instance of a class rather than a fundamental data type ([I]owner[/I] is an instance of the class [I]Person[/I]). This class has multiple constructors for the varying initial values. … Software Development java | |
Hi everybody, I am trying to convert a string to a Date format. So what i actually want to do is, i want to convert any format of date to DD/MM/YYYY format. For example the format can be d/m/yyyy, m/d/yyyy, mm/dd/yyyy, dd/mmm/yyyy, etc...... I tried using CDATE(value), datetime.convert(value), i even … Software Development vb.net | |
i have created 27 cubes using opengl and c++ and assembled for rubicks cube but not able to write rotate function for a slice.how to do???? | |
ok i need a quick help here...... here it's my problem It's approximate value of Ï€ is 3.141592653589793 Below are five di fferent series which can be used to approximate Ï€: you can se the series here:: [URL="http://i44.tinypic.com/2ujtmxw.gif"]http://i44.tinypic.com/2ujtmxw.gif[/URL] ask which series he/she wants to use and the precision (number of … Software Development c++ | |
How do I take randomly generated numbers and print the average of the numbers? And how do should I go about printing how many even and odd numbers that were generated? Thanks Software Development python | |
I havent done much IO at all in haskell, only within the function itself. However I want to get the input from the interface for the function and havent done this before. // Say I have this as my data type and list of films data Film = Film String … Software Development apple user-interface | |
You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=29: 1 2 1 2 r b b r b r r b r b b b r r b … Software Development c++ | |
I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will … | |
I created a little script using the datetime functions in python and am trying to convert this to a .exe using py2exe. When I try running this from someone else's machine I get an error message about calendare module not found This is the python [code]import datetime import calendar no_of_days … Software Development python | |
Hey Im writing a program that needs to send data over http, sometimes 45 minutes between packets, sometimes 10 seconds. I noticed that when i shut the server down it sends a lot of fin packets... so i guess my socket logic is off... i dont have a lot of … Software Development c++ windows-server | |
i finished the program but the input of 0 and one is too much i want to know how to have it read from a file i understand i have to use inFile. open but where do i put it i put my whole program in the thread: #include <iostream> … Software Development c++ | |
Hello. I've got such example statement: [code=Java]for( int i=0; i <= 10000; i++ ) myTextArea.setText( myTextArea.getText()+ i + "\n");[/code] What is the problem? I can't figure it out, why in every iteration of loop the text area isn't refreshing with new String added. When this loop is iterating, app freezes … Software Development java | |
Hi everyone. I need some help with a subprocess. My Python script uses the os.popen2 function to spawn a non-Python subprocess. Now it needs a way to send a Ctrl-C interrupt or something equivalent to the subprocess. Does anyone know how to do this? Thanks in advance! Software Development python | |
hey all, I'm trying to integrate sqlalchemy into my project build rather than install it separate. so in my project i have "<project_dir>/lib/sqlalchemy/*" i put a the __init__.py in "lib" but when i try to do [icode] from lib.sqlalchemy import * [/icode] i get: [quote] --------------------------------------------------------------------------- ImportError Traceback (most recent … Software Development python | |
Hi, I'm doing a project where we make our own string class and I'm having trouble with the substring function. This is what I have so far. [CODE]string string::substr(size_type idx, int length) { // can use the += char somewhere string *someString; char *ch = _data; for(idx = 0; idx … Software Development c++ | |
hello everyone i am a fresh man in this site ... and i'm really pleased joining this lovely 'n useful one well .. i made a program in c++ which is all about natural merge sort on files , since i want to sort my file which contains a randomly … | |
I hope this doesn't come across as confusing. I am doing something wrong, with a "error C2059: syntax error: ';' - line 45; error C2059: syntax error : '/' - line 47. I'm not sure, but maybe it has something to do with the %, and that I didn't use … Software Development c++ | |
hi, [COLOR="Red"]I need the answer as soon as you can[/COLOR] Write a c++ program that prompts the user to enter an integer number greater than Zero (0) and prints a multiplication table up to that number. The program should display an error message an and loop until an accepted value … Software Development c++ | |
Hi How to get cpu utilization of particular process without using top command. I want programmatically C or C++.Top command source is large.I can't analyze where %cpu usage got. Anyone help me........... Software Development c++ |
The End.