43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gshock2006

Right now, I want to handle data file in the following format: apple 1234 coke 2344 some grape 2345 null .... as some lines consist of 3 element while some other have 2,I want to use the expression as follows to get the first two elements in every line and …

Software Development apple c++ data-structure
Member Avatar for gshock2006
0
112
Member Avatar for danielernesto

Sorry, I'm a newbe here so ... I got to ask, what's the diference between those 2 things?? Can anybody help me!!.

Software Development c#
Member Avatar for danielernesto
0
141
Member Avatar for rapture

Hello, I need help on this project for school. My instructions are "Write a program called OfficeAreaCalculator.java that displays the following prompts using two label components: Enter the length of the office: Enter the width of the office: Have your program accept the user input in two text fields. When …

Software Development java java-swing
Member Avatar for rapture
0
119
Member Avatar for kiddo39

I have a randomly generated list of which contains letters, symbols, and numbers and need to separate it into 2 lists -one of numbers and one of the remaining chars. Then I need to separate the numbers into 2 lists-one of composite numbers (4,6,8,9) and one a list of prime …

Software Development python
Member Avatar for kiddo39
0
127
Member Avatar for tmoney7566

I posted with a program problem yesterday and couldn't get anywhere with all my errors. So I started over with a new program this morning and now have an infinate loop and a couple of questions about what is going on. My program is suppose to ask for total sales …

Software Development java
Member Avatar for Ezzaral
0
176
Member Avatar for mruane

I am hoping to create a pixel based rpg game with the story depth of the elder scrolls series, with graphics similar to PixelMan 3 by pymike, (pygame.org/project/712/). If anyone is interested in helping, let me know! I am a basic level python programmer, so am using this project as …

Software Development gaming python
Member Avatar for mruane
0
89
Member Avatar for asafoatse

I need help to solve this problem . Am new and a starter , but well am tring my hand at it by practising. Am working on making a 3 dimensional array using C#. I have 3 salers in a country (saler 1, 2, and 3.) Operating in 3 regional …

Software Development microsoft-access operating-system
Member Avatar for serkan sendur
0
144
Member Avatar for jake88

Hello, I've parsed, read and edited an xml file. But when I write the output file I get a mashed up xml output. I would like to know if there is anyway to pretty print and output .xml file, like the DOMPrint example does on the cmd prmpt. Thanks

Software Development c++ xml
Member Avatar for jake88
0
217
Member Avatar for CPPRULZ

Hi lately i have been studying the malloc and calloc functions for dynamically allocating memory. I thought the form was: [code=C] (data_type*) malloc(data_size); [/code] But then I stumbled onto this code snippet on a tutorial site: [code=c] #include <cstdlib> void *malloc( size_t size ); [/code] Why is the data type …

Software Development c
Member Avatar for Narue
0
381
Member Avatar for kiddo39

Hi.....I have a long string of letters and symbols and I need to increment their ascii value by 1. How can I do that? Here's an example of the string: s="p@ugdyhtapbcedoamguh?a#vdaxdv$zdoxw?pu$exrbzt evk#n$xjlgpmece??$$@@yyiw##rmn$nmrblruv ?azxdsoh#$@nndkkt?k@ihatywtbazgbq#ykshx" so like # becomes $, etc

Software Development python
Member Avatar for kiddo39
0
73
Member Avatar for Laidler

Im trying to set my new laptop up to do java programming work on. when i try to compile a file i get the javac not recognised as internal external command error. ive tried different help topics including the [url]http://java.sun.com/docs/books/tutorial/getStarted/problems/[/url] link but their solutions dont solve the problem. anyone have …

Software Development java operating-system windows-vista
Member Avatar for Laidler
0
90
Member Avatar for samir_ibrahim

Hi Every one As I am still in the learning curve of vb.net I have 2 Question 1- Before I as start learning vb.net I know vb6 (good) and visual foxpro (Professional). In these 2 languages every thing that cannot be handled with there native command, I use win32 API …

Software Development api vb.net
Member Avatar for samir_ibrahim
0
152
Member Avatar for tones1986

Hey all. I am using visual studio 2008 for the first time because i have heard very good things about it (plus i had numerous problems with devc++). Here is a debug.html file that shows an error i am getting while trying to compile my project in visual studio. i …

Software Development c++ visual-studio
Member Avatar for tones1986
0
203
Member Avatar for gshock2006

Hi,guys, I am new to C++,and recently I practice to read a file with visual studio 9.0,but it turns out that it cannot find the very file! [code] #include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> #include<vector> using namespace std; //using namespace stdext; int main() { ifstream inClientFile("Dic.dat",ios::in); if(!inClientFile) { cerr<<"File could not …

Software Development c++ file-system ios visual-studio
Member Avatar for gshock2006
0
245
Member Avatar for massivefermion

Hey men When i wanna run the code below,i get the famouse [I]don't send[/I] message and i use code::blocks 8.02 [CODE]#include <conio.h> #include <iostream> using namespace std; int main(){ int start,end; double a[start-end][2],p[start-end]; cout<<"Enter a number to begin with : "; cin>>start; cout<<"Enter a number to finish with : "; …

Software Development c++
Member Avatar for massivefermion
0
388
Member Avatar for tmoney7566

I have been working on this array problem since last Friday. We are to accept an employee's gross sales, multiply that by 9%(to find commission) add $200 for weekly salary. Then the program takes that dollar amount and tallies payroll with ( *'s) beside salary groupings.... ex $200-299 **** $300-399 …

Software Development java
Member Avatar for stultuske
0
133
Member Avatar for etc123

[CODE]//function void function(int a[5][])[/CODE] in passing or even declaring a multidimensional array why is it necessary to specify the row while it's ok not to specify the column?

Software Development java
Member Avatar for stultuske
0
101
Member Avatar for vjp08

Hi, i want to run a python script from another python sript as a new process. i have tried with spawn functions of os module but it didnt work. i guess these functions work on only Linux. how to create a new process on windows platform..

Software Development python
Member Avatar for vjp08
0
177
Member Avatar for firoz.raj

can anybody tell me why Bold statement is not working. [code] Private Sub Command2_Click() Dim a As String a = MsgBox("You want to Modify....?", vbQuestion + vbOKCancel, " MODIFY") If a = vbOK Then Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient [B]rs.Open "select mr.srno,mr.productname,mr.qty, mr.unit from mrtemp as mr …

Software Development visual-basic
Member Avatar for Ole Raptor
0
126
Member Avatar for k2k

hi, I used to program in C++ and constructed a linkedlist class (not a very fancy one but just enough to use the head and reference to simply add, and remove data in the list. now i am learning java and realize that java.util.*; has a class called the linkedList …

Software Development java
Member Avatar for javaAddict
0
115
Member Avatar for xtremerocker

I'm currently working on ProjectEuler.net's problem no. 39 and it states "If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120. {20,48,52}, {24,45,51}, {30,40,50} For which value of p <= 1000, is the number of solutions …

Software Development c++
Member Avatar for xtremerocker
1
127
Member Avatar for shinnxennosagga

I got a problem in designing (may be not design, more like code one) UI for my chat application. here's the problem : I want to make a chat box on mobile device using C#, and I want to be able insert smiley. The problem is, by using textbox or …

Software Development c#
0
76
Member Avatar for chunalt787

I am just starting off in a haskell course and I am trying to write a program that takes a list representing an int such as [1,4,3] would mean 143, and convert it to binary and return it as a list in the same fashion. I have written the following …

Software Development
Member Avatar for chunalt787
0
153
Member Avatar for christiangirl

Hey, I am having trouble with the file I/O part of this program. It seems to start at the end of the files contents and not go into the while loop. [code] #include "queue.cpp" #include <iostream> #include <fstream> #include <iomanip> /******************************************* * class Priority * * Takes input from file …

Software Development c++ file-system queue
Member Avatar for cikara21
0
156
Member Avatar for shanir13

I Have been working on this for a few days now, and I seem to be missing something. What I have to do is: > Design a C# solution with a Main ( ) method that holds an integer variable named seconds to which you will assign a value. Create …

Software Development c c# c++
Member Avatar for slap1914
0
330
Member Avatar for RexxX

This is a little program I'm writing to refresh my knowledge of C and I know it's wrong, but everything I've tried in order to fix it isn't working. [code] #include <stdio.h> #include <string.h> int main() { int const STR_LENGTH = 255; char str[STR_LENGTH]; int n=0,i=0; printf("Please enter a word: …

Software Development c
Member Avatar for death_oclock
0
115
Member Avatar for Joonas

001 BITS 16 002 segment myStack stack 003 resb 0100h 004 005 segment myData data 006 somedata db 10101100b 007 008 segment myCode code 009 00A dothingstobx: 00B push ax 00C mov ax, 56h 00D add word ax, bx 00E or bx, ax 00F ret 010 011 ..start: 012 mov …

Software Development assembly
Member Avatar for Joonas
0
121
Member Avatar for Clockowl

Hey guys, I was wondering if the stringstream class copied the string to itself or just keeps a pointer. Because if it copies I can free or clear the string without fearing for the data in stringstream. EDIT: Like this: [code=cpp] string stringz0r("Chickenz"); stringstream streamz0r(stringz0r); //will this not affect the …

Software Development c++
Member Avatar for Clockowl
0
123
Member Avatar for rickster11

Ok, new to C++, I bet this is a real easy question. Every time I input a char, it enters the same char twice to variable. So when I enter "r", and then output it..it outputs "rr" [code=c++] #include <iostream> #include <fstream> using namespace std; #define errorMsg1 "You must enter …

Software Development c++
Member Avatar for ShawnCplus
0
185
Member Avatar for skitzo315

I'm new to C++ and I can't seem to find the problem with my code. I have a function that opens an input file. It asks you to input a file and if it can’t open the file it asks you if you want to try again. If you answer …

Software Development c++ file-system
Member Avatar for VernonDozier
0
149
Member Avatar for david.1982

Hi all, I'm a PHP programmer and I'm just now getting into C#. Here's the problem I'm having: I have a table, 'categories', with 'catID', 'parentID' and 'name' fields. CatID is the primary key, and parentID is either 0 (no parent, top level) or an existing CatID. With this setup, …

Software Development
Member Avatar for david.1982
0
140
Member Avatar for bajanpoet

Now that I can see the data in the datagrid, I realize that the size of the fields is too small - the customerid and customer name fields both could use expanding so that I can see all of the text. Is there a way to programmatically extend the length …

Software Development vb.net
Member Avatar for bajanpoet
0
166
Member Avatar for crow_w

I am trying to insert data from my VB 2008 program into an MS Access Database. My code is as follows: insertSQL = "INSERT INTO ExamInstance (SiteLocation, SiteTime, Student_SEmail, Proctor_PEmail, Exam_CourseNumber, Username, Password) VALUES ('" & SiteLocation & "','" & SiteTime & "','" & SEmail & "','" & PEmail & …

Software Development vb.net
Member Avatar for crow_w
0
135
Member Avatar for regina99

hello all. :) my assignment is to write a program that accepts a charge account number and then determines whether the number is valid by comparing it to the numbers (listed in the array.) most of my program is correct, except for the last part where it displays whether the …

Software Development java
Member Avatar for regina99
0
115
Member Avatar for farooq82

I am new vb.net and I m working on project that will import excel file in datagrid. After import this file I need to save these file into SQL Server 2005 table. But I am receiving 'Procedure or function insertCashBook has too many arguments specified'. [code] Private Sub ButtonReconsilation_Click(ByVal sender …

Software Development vb.net
Member Avatar for farooq82
0
186
Member Avatar for patriotist

hey guys .. i am currently trying to do a project on speech to text conversion.... i am new to it but i know somethings like grammar n all but dont know how to use in or acces the grammar through the C# thing.....so plz help me out..

Software Development
Member Avatar for Samer88
0
131
Member Avatar for bajanpoet

I've read up on attaching a dataset to a datagrid and followed all the code snippets I can, but I am still having problems viewing data. Have a look at this code: [code="VB"] Private Sub ViewCustomers(ByVal vRegion As String) conn.Open() Dim SQLComm = New SqlCommand("SELECT * FROM ViewCustomers('" & vRegion …

Software Development dataset vb.net
Member Avatar for bajanpoet
0
525
Member Avatar for jdbarry

I know that you do 6.83783 * 10^3 as 6.83783E3, but how do I do that number times 10 to the negative third?

Software Development java
Member Avatar for jdbarry
0
86
Member Avatar for neighbordave

I'm having a little trouble trying to figure out how determine if 2 purses have the same coins in them in the same or different order. The books that i have don't really show an example of this at all and I can't find any other resources elsewhere online. I've …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for meistrizy

Hello and thanks in advance for your help. My program calculates the gratuity of various bills and gives the user how much to leave for a tip. If the user enters a negative amount for the tax, the default constructor is supposed to use 6.5%. My program compiles, but instead …

Software Development c++
Member Avatar for meistrizy
0
142
Member Avatar for jaasaria

hello, by the way im using datagrid in showing all the data in my database... here my codes... ''''''''''''''''''''''''''' form_load set rs = orecs ("select * from employee") set datagrid = rs ''''''''''''''''''''''''''' how can i convert it in list view to view all the data in my database......... plssssssss …

Software Development listview visual-basic
Member Avatar for chanthung
0
189
Member Avatar for Trendkiller

I am getting some errors. 4 are C2143 2 of which point to the function prototype void ArrayFunc(int, int, float, int[SIZE][2],float[SIZE],int &,int &); and the other 2 C2143 errors point to void ArrayFunc (int count, int hours, float total, int array1[][2], float array2[], int &row, int &column) (the function definition). …

Software Development c
Member Avatar for csurfer
0
109
Member Avatar for driebel

Hi, I'm completely new to C++, which I'm doing as part of a numerical methods course. I have experience with IDL, so I clearly like languages with training wheels :) I'm running the GNU C++ compiler under Ubuntu 8.04 on a Dell XPS. I've made my first program run, but …

Software Development c++ ubuntu
Member Avatar for driebel
0
111
Member Avatar for scru
Member Avatar for winrawr

how would I go about making a variable in a class, that could be read directly but not written as such? Like, [icode]if(class1.variable==true){ }[/icode] is allowed but [icode]class1.variable = true;[/icode] is not... however I don't want a [icode]const[/icode], I want it to be able to be set from within the …

Software Development c++
Member Avatar for winrawr
0
161
Member Avatar for neoseeker191

For some reason my if statement in both my [I]unionFunction[/I] and [I]intersectFunction[/I] is setting the array equal to 1 rather then comparing it. I've tried to figure out whats wrong but nothing seems wrong to me. I appreciate any help. Here is my program so far: [code] #include "stdafx.h" #include …

Software Development c++
Member Avatar for soroushc
0
138
Member Avatar for JosipMiller

Hello, I connected my Delphi application with MS Access database and I am stuck a bit with a problem: how to execute UPDATE Query stored in MS Access database from Delphi ? Stored query in Access works properly. All other queries (mostly SELECT) stored in Access I have connected properly …

Software Development delphi pascal
Member Avatar for JosipMiller
0
245
Member Avatar for serkan sendur

[CODE]/* sscanf example */ #include <stdio.h> #include <iostream> using namespace std; int main () { float f; int i; char * the_string = "foo -3.6 fum dum 17"; int r = sscanf(the_string, "foo %f fum dum %d", &f, &i); cout << f << " " << i << " " …

Software Development c++
Member Avatar for serkan sendur
0
196
Member Avatar for GDICommander

Hello everyone. I am using ACE and I'm using the following method: ACE_OS::read(char* buffer, int nbbytes, int perms); I was informed that Windows is reading data from disk sectors and it puts the contents of the read sectors into the cache (who is in memory). I don't want that behavior …

Software Development c++
0
45
Member Avatar for brixton

Hello, I've got the following code: [code] wxString path = filepath; wxString newpath = filepath; fstream f(path.Append("/tests/tests.bin"), ios::in | ios::binary); fstream fnew(newpath.Append("/tests/temp.bin"), ios::out | ios::binary); Test* transferTest = new Test(); int thisSize = sizeof(Test); bool success = false; bool toBeDeleted = false; int testNo = 1; if (f) { f.seekg(0, …

Software Development c++ file-system gui ios
Member Avatar for brixton
0
111

The End.