43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for breatheasier

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
Member Avatar for Gribouillis
0
153
Member Avatar for Crul

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
Member Avatar for Salem
0
1K
Member Avatar for maniac1982

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
Member Avatar for maniac1982
0
253
Member Avatar for egmik3

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
Member Avatar for eggi
0
145
Member Avatar for vkarthik

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++
Member Avatar for vkarthik
0
165
Member Avatar for millanskie

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
Member Avatar for tmani_85
0
163
Member Avatar for TheBeast32

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++
Member Avatar for TheBeast32
0
104
Member Avatar for Mossiah

[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++
Member Avatar for William Hemsworth
0
74
Member Avatar for Mossiah

[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++
Member Avatar for siddhant3s
0
84
Member Avatar for freddan007

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++
Member Avatar for freddan007
0
526
Member Avatar for Alibeg

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, …

Software Development c++ ubuntu
Member Avatar for Alibeg
0
621
Member Avatar for Pikachumanson

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
Member Avatar for Pikachumanson
0
114
Member Avatar for LindseyV

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
0
66
Member Avatar for deerowbear

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
Member Avatar for deerowbear
0
116
Member Avatar for manal

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
Member Avatar for manal
0
170
Member Avatar for Necrolis

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++
Member Avatar for Necrolis
0
166
Member Avatar for k2k

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
Member Avatar for k2k
0
77
Member Avatar for Mazor

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
Member Avatar for Mazor
0
99
Member Avatar for Q8iEnG

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++
Member Avatar for Q8iEnG
0
143
Member Avatar for tazjaime

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
Member Avatar for JamesCherrill
0
202
Member Avatar for MK12

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
Member Avatar for MK12
0
172
Member Avatar for JP Romano

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
Member Avatar for vb5prgrmr
0
163
Member Avatar for countyman

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
Member Avatar for countyman
0
283
Member Avatar for songweaver

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++
Member Avatar for kbshibukumar
0
142
Member Avatar for barbosmaw

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 …

Software Development gui python tkinter
Member Avatar for barbosmaw
0
349
Member Avatar for chris5126

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
Member Avatar for chris5126
0
173
Member Avatar for thacravedawg

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
Member Avatar for thacravedawg
0
167
Member Avatar for pythononmac

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
Member Avatar for lllllIllIlllI
0
117
Member Avatar for thijo

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
Member Avatar for thijo
0
104
Member Avatar for curtissumpter

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
Member Avatar for curtissumpter
0
126
Member Avatar for k2k

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
Member Avatar for eggi
0
144
Member Avatar for koushal.vv

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 …

Software Development c c# c++
Member Avatar for John A
0
510
Member Avatar for nagatron

How to test a string if it is separated with space or not?

Software Development visual-basic
Member Avatar for nagatron
0
188
Member Avatar for VBNick

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++
Member Avatar for VBNick
0
233
Member Avatar for shasha821110

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++
Member Avatar for William Hemsworth
0
256
Member Avatar for colmcy1

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
Member Avatar for 10Pints
0
272
Member Avatar for katamole

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 …

Software Development html-css python regex
Member Avatar for katamole
0
678
Member Avatar for Webbsta

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
Member Avatar for bartj1
0
1K
Member Avatar for BruenorBH

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
Member Avatar for BruenorBH
0
184
Member Avatar for peacerosetx

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++
Member Avatar for peacerosetx
0
108
Member Avatar for tux4life

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 …

Software Development c++ ide
Member Avatar for tux4life
0
170
Member Avatar for MosaicFuneral

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++
Member Avatar for Salem
0
268
Member Avatar for hawisme000

[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
Member Avatar for hkdani
0
388
Member Avatar for karthik.c

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++
Member Avatar for ArkM
0
104
Member Avatar for dev_kc

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
Member Avatar for javmedia
0
77
Member Avatar for DemonGal711

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++
Member Avatar for DemonGal711
0
91
Member Avatar for nagatron

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
Member Avatar for javmedia
0
430
Member Avatar for DemonGal711

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++
Member Avatar for DemonGal711
0
76
Member Avatar for ~AOD~

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 …

Software Development storage vb.net
Member Avatar for Ramy Mahrous
0
737
Member Avatar for Dontais

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++
Member Avatar for Dontais
0
107

The End.