43,549 Solved Topics
Remove Filter ![]() | |
Hi I'm wondering how I would go about creating a program that will input data from about 1,000 files containing data such as this: [code] 2.825 1.00697992588 2.875 0.952989176901 2.925 0.91428970229 2.975 0.890110513425 3.025 0.879731596138 3.075 0.959217137445 3.125 1.07391392796 3.175 1.04874407027 3.225 0.857693793906 [/code] I'm wanting to generate an average … Software Development file-system python | |
I'm trying to compile C and C++ files into a single executable using gcc. I've gotten my code to compile and run properly using borland and Visual Studio but I can't figure out how to get it to compile with gcc. This is what I've been trying: gcc -c dtio.h … Software Development c++ visual-studio | |
hi everybody , this is my first post here and my only hope !!! i have to build a website for my vb.net/sql server classes final project , it s a real estate website that has a sql server 2005 database and i have to connect throuhg it with vb.net … Software Development sql vb.net web-server | |
Does anyone know of a simple command that could get the date and make a folder (mkdir) as its name? say todays date 20090304 as the folder name. I guess the first thing would be grep the date? Then run a mkdir command? Any help is appreciated! Thanks Software Development shell-scripting | |
Consider this situation: [code=c++] class Sample { std::string str; public: Sample(string &s) { // line 1 // line 2 str = s; // line 4 throw exception; } ~Sample() { } } [/code] So I have a string member variable, and I have assigned it to the parameter passed to … Software Development c++ | |
does anybody know how to get the current user's path for xp /vista sample: "C:\Documents and Settings\Owner" or if you know how to get the installed program path "C:\Program Files\FileZilla FTP Client\filezilla.exe" Software Development vb.net | |
Hi, I'm reading the header from bitmaps. When I add up everything in a struct I've made, it comes out to 54 bytes. When I do a sizeof(BHeader), it says it's 56 bytes. It adds two null bytes after the B and the M when I save a header to … Software Development c++ | |
[ICODE] #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; char your_string[256]; char new_string[256]; void ReverseString(); int main() { cin.getline(your_string, 256); ReverseString(); cout << new_string << "\n"; return 0; } void ReverseString() { int x = strlen(your_string)-1; for(int y = x; y >= 0; y--) { new_string[x-y] = … Software Development c++ | |
[ICODE] #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; // prototype declarations void concatString(char szTarget[], char szSource[]); int main (int nArg, char* pszArgs[]) { //read the first string char szString1[256]; cout << "Enter string #1: "; cin.getline(szString1, 128); //now get the second string char szString2[128]; cout << … Software Development c++ | |
Is it possible to get the return value of a function started with the CreateThread function or is the only way I can get a value from it to use global variables? I searched but i found nothing. Thanks. Software Development c++ | |
I ve just installed ubuntu intrepid ibex (8.10.) on my laptop i have been using it for a while already but i just wanted to clear the system completely so i installed it, put some updates, some programs, but i also installed CodeBlocks using synaptic manager. Everything finished smoothly. Now, … | |
I have a hero sprite which I have implemented in in my game. He walks around in a grass field. Unfortunately, he is surrounded by a white border that is also in the btmap(or JPG in this case). Any idea on how I can get my program to differentiate the … Software Development visual-studio | |
Hi there. I am writing a program for work and for one of the parts I need to open up an outlook email account and parse through the new message bodies for specific information. After I get the information I need, I need to put it in a datbase. I … Software Development email visual-basic | |
I am trying to update a jlabel, but the label is not updating. Thanks for any help. Daniel [CODE]package converter; import java.io.*; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import javax.swing.filechooser.FileFilter; public class modelConverter extends JFrame implements ActionListener, ItemListener { // Data panel … Software Development java java-swing | |
hi every one . does any one know how to insert checkbox in datagrid so user can select row and how to know which rows selected Software Development vb.net | |
well, after hours apon hours of serching for this, i've come up with nothing but a few sources for some plugins[from thecodeproject.com], which don't cover what I need: Basically writing to the currently active (source) file(at the position of the cursor/caret), like so(highly simplified) [code=cplusplus] fprintf(pOpenDocument,"/*\n\tTime: %s\n\tDate: %s\n\tAuther: %s\n\tReason & … Software Development c++ | |
hi , i am pretty new to perl and I have a quick question. below the code won't work unless fileName is under the same directory. would any one please give a quick reference in how to specify the full address of the file? such as /home/myName/fileName [code] #!/usr/bin/perl cat … Software Development perl | |
In Linux the output is printed correctly, with 'lines2' having the same value as 'lines' minus 1, but in windows the value of 'lines2' and is always printed as -2. The source code is solely for testing purposes, hence the messy code with no for loops, bad variable names etc. … Software Development c++ open-source | |
Hi guys :) I have small question of course I don't want to ask for solving my homework, no i'll work on it on my own. I just need some tips :) please. I want to make a program that calculate these function: F1 = 1; F2 = 2*lgn + … Software Development c++ | |
Hi to all... I've just join and found this amazing website/forum today which is very helpful. So here's the problem.. I need to find the factorial of an input number, I have a slight problem with my script, when i enter a value which is 11 upwards it doesn't print … Software Development java | |
Ok, so I have a project that I've written in Python(Actually it's not done yet), its the card game "Cheat" that you play in the command prompt with (until I learn wxPython -- GUI for Python) with computer players (or other people with you). I want to distribute it later, … Software Development api c gui python windows-api | |
Does anybody know of a way to rename the contents of a zip file when they're extracted? I have a program which grabs zipped files from an outlook account, gives them a unique name, saves them to a network repository, then extracts the contents to a sub folder in that … Software Development visual-basic | |
Im am trying to write a Java program with a system class called:PayScale. 1. It needs to prompt user for "Hours worked" and "Pay rate" 2. Determine if there is overtime 3. Calculate overtime at "time and 1/2" 4. Calculate regular pay It must then print out: 1. Total hours … Software Development java | |
Below is the code which is supposed to round to two decimal places, i.e. 1.2874 is suppose to round to 1.29, but rather gives me 128.0000. What am I doing wrong need help fast! #include <iomanip> #include <iostream> #include <cmath> using namespace std; double roundIt(double x, double n) { x … Software Development c++ | |
HI I'm not an expierenced python programmer (yet) I want to display an image on a screen. I already installed PIL 1.1.6, and i am using the Tkinter GUI. I don't know what is missing (or were I went wrong installing the PIL), but this message <see below> is popping … | |
Hi Guys, I have a file which contains the following info (it realtes to CPU usage): [code] 1 0 2 2 0 10 1 11 [/code] It is stored in a text file. I need to read each line in turn into an array and then import it into a … Software Development | |
I currently have a pretty basic data application that I intend on adding a good deal of functionality. The application is a windows form app using a an access database connected through the oledb method. Everything works fine, until the iterations are extended to very large numbers. For example, it … Software Development algorithm | |
I have written one python script for each test case. Now I want to have another script that runs all the test cases one by one, and output the result of each test case to a file. How should I start? Software Development python | |
hi i have to group the data. i completed coding. the output is [ output] C:\Program Files\Java\jdk1.6.0_03\bin>java check Please Enter the Number of Clusters 3 Enter the file to be read with csv extension hi.csv [(345,2) belongs to 0, (300,2) belongs to 0, (390,2) belongs to 0, (400,3) belongs to … Software Development java | |
Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want … Software Development java multithreading | |
hi, i am trying to write a script to add 100 users and with certain things created. however, all the book and tutorials online recommend and only show the way to use passwd user after creating a user by useradd username. i know there is a -p option for the … Software Development shell-scripting | |
Hi, i just need to know is there any method in MFC / C++ which will do the validation for the entered date. ie if the date 12/11/2008 is given as input it should return saying the date is valid.i hope there exsists some standard function. it should also check … | |
How to test a string if it is separated with space or not? Software Development visual-basic | |
hello! I am trying to learn how to do paralell processing. I am baseing this on an example that I saw here: [url]http://www.codeproject.com/KB/recipes/sseintro.aspx[/url] the one titled "SSETest Demo Project" I tried to make my own, and don't understand why it isn't working. Here is the code: [code="cplusplus"] // testconsole.cpp : … Software Development c++ | |
Hi, all. I have one question: I am writing my-string class now according to the assignment. And like other String class assignment, we have to overload the operator, do the difference type constructor, etc. Well, i almost finish my assignment. But there have one problem with my code. I am … Software Development c++ | |
Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. … Software Development c++ file-system | |
Hi everyone, As a personal project I've decided to write a small script which will take a raw_input film title, then look up the IMDB rating and return the result. As an extra challenge I decided to employ re. Now, this is how far I have got (yes, I am … | |
At the moment i am using the shell command simply because i need to the my program as if it was a batch file, the program that im using needs the shell command to run properly otherwise it would need to be done in a batch file, now i know … Software Development vb.net | |
I am sort of new to Win32 API programming with C++ and I am having an issue trying to save what is in the textboxes to a file when you hit the close button. I am using the WriteFile() and CreateFile() functions. Everytime I try to do it I get … Software Development api c++ windows-api | |
Greetings All, I have one class I'll call main class and it creates and initializes all of the classes so that they are not re-created again. What I simply want to do is to have in the creation of my other classes pointers to the classes they need to operate. … Software Development c++ | |
While searching the internet I always come across several posts where they're saying that Bloodshed Dev-C++ isn't for advanced use (rather for newbies), why are they saying that? Is MinGW not an advanced compiler? Or is it just because they aren't developping Dev-C++ anymore... I know there's Code::Blocks, but I … | |
In GCC/MinGW when I map a function to a specific section can I expect the sections [icode]Characteristics[/icode] bits 5, 9 and 30(IMAGE_SCN_CNT_CODE | IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ) to be set or always set? What about for an all variable mapped section? I just wanted to know if I could confirm a … Software Development c++ | |
[QUOTE]this code is from another form before i get to the formload below xNum = 2 adminlec.show unload me [/QUOTE] [CODE]Private Sub Form_Load() lblLECNUM.Caption = xNUM '<----this is a public dim that i wrote on a module as integer Set cnn = New ADODB.connection Set rs = New ADODB.Recordset cnn.ConnectionString … Software Development open-source visual-basic | |
Hi guys ,i came across coding in a book where they given the below program and named it as singleton class.but here we are able to create 2nd object and also call constructor for second object (only here do we check the status of count and exit from the program … Software Development c++ | |
how do i use update command in vb?? I need to make changes in the database from vb form,the changes made in the text box should be made in the database as well,this is the code i am using Con.BeginTrans Con.Execute "update Details set PS_No=" & Trim(txtPSNo.Text) & " and … Software Development visual-basic | |
Alright, I had to design an N-ary tree so later I could use it to produce a word ladder. I got the tree to insert and print perfectly. Now what I need to do is add pointers so that everything points to the correct item. Here's the example: Connect cat … Software Development c++ | |
Hallo to all, can anyone help me with my thesis? I need to filter space between character. Ex. If I input: "Jump and Go" a message box will appear saying "Space between character is not allowed." if I input: JumpAngGo or Jumpandgo is are accepted as long as there is … Software Development visual-basic | |
I was writing up my NTree class that I need for a program that I'm working on. My function order() takes in a vector and a string and sorts the vector according to that string so the words closest to the string (one letter off) are at the beginning of … Software Development c++ | |
Sir, I am currently writing a VB.Net application that uses Random Access File storage to store all the records. I have been able to write/find and delete records from the random file however i also wish to update records once i have searched for them. When the update takes place … | |
I am having problems with the . operator I thought i had it right but it keeps giving me problems on the line myBike.Bicycle(24,17); it won't compile. [CODE]// This program is designed to imput data and // output the data for bike gear and sockets. #include <iostream> using namespace std; … Software Development c++ |
The End.