43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Clockowl

Hai guys, I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does …

Software Development c
Member Avatar for jephthah
0
148
Member Avatar for tiney83

Hi, My assignment is to read in data from a file(first name, last name, and grade) and then output it. i have my code and i beleive the problem lies within the function readData, but i cant figure out what it is. I run the program and i get an …

Software Development c++
Member Avatar for tiney83
0
140
Member Avatar for unpolloloco

I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life …

Software Development python
Member Avatar for unpolloloco
0
107
Member Avatar for MatrixCA

Does anyone know how to change the value of FS.Length? I keep getting that it's read only. I need to read a file, let's say it's 100 bytes in size. After some data manipulation, the file becomes 40 bytes. When I write the file back , it writes the 40 …

Software Development file-system vb.net
Member Avatar for MatrixCA
0
100
Member Avatar for Jennifer84

I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if I will write something after saveFileDialog1-> ? [code] //Get The Path that was selected when saving the file String^ …

Software Development c++
Member Avatar for Jennifer84
0
143
Member Avatar for Jennifer84

If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { …

Software Development c++ file-system
Member Avatar for Jennifer84
0
274
Member Avatar for shouvik.d

Hi All, I am need of using a excel file as a standard template and then use a list of .csv files to populate certain rows and columns of this standard template and save it with a different name so that I can always reuse the standard template and it …

Software Development
Member Avatar for shouvik.d
0
168
Member Avatar for henpecked1

I'm having a little problem with a conversion error during compile. Here is the code: [code] #include <iostream> using namespace std; class costOfItem { public: costOfItem(float i_cost); void printMe(); private: const float price; }; // Free functions void displayPrice(costOfItem z) { z.printMe(); } void displayRefPrice(costOfItem &z) { z.printMe(); } void …

Software Development c++
Member Avatar for dougy83
0
129
Member Avatar for compumasta

[code=c++] struct if1 { string idnum;//id number for the student string lastname;//last name of student string firstname;//first name of student int examscore[maxexam];//array of all the exam scores of the student int hwscore[maxhw];//array of all the home work scores of the student }; void alphasort(if1 student[], int n) //the alphasort function …

Software Development c c# c++
Member Avatar for compumasta
0
935
Member Avatar for Jennifer84

I am trying to check the size of a file with this code. The file is named "OneFile.txt" and is of the size 230 kb. The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the …

Software Development c++ file-system
Member Avatar for Jennifer84
0
174
Member Avatar for Jennifer84

I have a form (Form2) that I want to write text at the top of (In the blue field where you normally can can tell what the windows/forms name is) I thought it should be like this but I cant find "Form2" after this-> What I can find is Form2_Load …

Software Development c++
Member Avatar for William Hemsworth
0
99
Member Avatar for fox51

hey there i have a question for you guys. my program reads a file and then save each line of the file into a multimap<string,int> containing the string and the number line. i have the convert strings in alphabetical order, like take into aetk, and thats where the problem begins …

Software Development c++
Member Avatar for fox51
0
165
Member Avatar for Jennifer84

I have a dataGridView1. In a datagrid you can manually write columnheader names. (Each Column can have a name) What I wonder is how it is possible to programatically write a name for example column Numer 1 ? I have looked at the memeber of the class but cant really …

Software Development c++
Member Avatar for Jennifer84
0
111
Member Avatar for Jennifer84

I have a checkedListBox1 wich consist of a many lines with text. What I am trying to do is to search trough this checkedListBox1 to see if "Hello" could be found in this box and if it is found, this Item(Line) will be selected. I am not sure what could …

Software Development c++
Member Avatar for Jennifer84
0
145
Member Avatar for ceyesuma

If I have this line in the code[icode]java.util.Collection search = searchQuery1.getResultList();[/icode] Is this a collection of <list>? and can I find out if search should be named"Search" or does it have to be instantiated of something?

Software Development java
Member Avatar for Ezzaral
0
126
Member Avatar for blackhawk9876

[code=cplusplus] #include <iostream> #include <iomanip> #include <fstream> using namespace std; void DisplayTitle(); void DisplayBal(double); void GetData(int& , double&); double ProcessCheck(double, double); double ProcessDeposit(double, double); double ProcessATM(double, double); double ProcessSvcChg(double); struct transrec { double credids; double debits; double service charges; }; const double CHARGE = 10, ATMFEE = 2; int main() …

Software Development c++ ios
Member Avatar for William Hemsworth
0
181
Member Avatar for sch0009

Hi there, I have a data set ([url]http://app.lms.unimelb.edu.au/bbcswebdav/courses/600151_2008_1/datasets/entertainment/moviestats_large.csv)[/url], and i was just wondering the best way of tackling the question stated below: Which director is the most productive? I an new to python and wondering if anyone could help me out a little on this problem. I have considered trying …

Software Development python
Member Avatar for bvdet
0
264
Member Avatar for Oxiegen

Hi, it's me agin. I would like to know if it's possible to customize a tabcontrol, so that I can have the tabpages shown horizontally when alignment is set to left or right. If so, could someone give an example, or a link, of how to accomplish this? I've been …

Software Development vb.net
Member Avatar for Oxiegen
0
360
Member Avatar for swapna7999

hi i want only that part of a picture which is visible in picturebox the picture may be larger than the picturebox but i want to copy only the visible part anybody help thank u vey much

Software Development visual-basic
Member Avatar for swapna7999
0
69
Member Avatar for swapna7999

hi i have two forms in the first form i used form2.show and in the second form from1.show but i want to reload form1 again on button click event in form2 is it possible to reload the form as it was first appeared thank u very much

Software Development visual-basic
Member Avatar for swapna7999
0
95
Member Avatar for ayman86

here is what i have to do: [url]http://www.sendspace.com/file/og252q[/url] this is what i have so far. [url]http://ayman86.pastebin.org/34381[/url] its pretty much the code in the pdf file with defined functions of quick sort, bubble sort and better bubble sort im not sure how i implement "size of array increment, and number of …

Software Development pdf python
Member Avatar for ayman86
0
128
Member Avatar for Igor_MK

Hello, I have a project to make a text comparer. I've downloaded almost 90000 texts from a site, parsed them and stored the texts in a file(150MB). So now, a new text is in another file and should be compared with the others, and return a result of 20 most …

Software Development python
Member Avatar for woooee
0
168
Member Avatar for jamesbond110

Man, I'm so new. I'm trying to script something for a game. so here's what I got: [code] program twars; const Color = $FFFFFFFF; FISTS = 0; DEAGLES = 1; MP5 = 2; AK74 = 3; STEYR = 4; SPAS = 5; RUGER = 6; M79 = 7; BARRETT = …

Software Development pascal
Member Avatar for jamesbond110
0
288
Member Avatar for Clockowl

Hai all, I ran into a strange issue I never experienced before. Pointers are passed to function, the function allocates memory to them with calloc, and right before the return sanity checks if the pointers still != NULL. That check succeeds, but upon returning and sanity checking in the calling …

Software Development c opengl
Member Avatar for Clockowl
0
102
Member Avatar for SelArom

when working with strings, I can check if it has a value by doing something like if (s == "") but how do I accomplish this with integers? I thought maybe initializing to a dummy value like 0 or -1, but what if those values might be valid? should I …

Software Development
Member Avatar for SelArom
0
271
Member Avatar for sibotho

Hi All I have a table (contactDetails) in my database (Sql express) with username,password, email, contactNo, bySMS and byEmail columns. I have 2 radiobuttons in my application smsRB and EmailRB, when the user registers he must select either smsRb or EmailRB. if smsRB is selected, a "Y" is inserted under …

Software Development
Member Avatar for sibotho
0
117
Member Avatar for lllllIllIlllI

Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things.

Software Development python
Member Avatar for woooee
0
84
Member Avatar for dan_e6

hey guys. just wondering what it means when a function has this in it.... void add(string title, string authors[], int nAuthors); the [] next to authors. what does this mean?

Software Development c++
Member Avatar for dan_e6
0
265
Member Avatar for rodG

[code] # This is meant to draw Start and Stop buttons and a label # The Start button should start a loop in which the label # is configured to change colour and text. # At each pass through the loop the variable self.stop is checked: # if True the …

Software Development python tkinter
Member Avatar for rodG
0
4K
Member Avatar for ceyesuma

I attempt to create a string variable to a setter() that is used as query property What am I missing in the procedure to implement a simple query on the database? It stops here. [code] searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); [/code] [code] @Action public Task searchSplash() { if …

Software Development java oracle
0
74
Member Avatar for lllllIllIlllI

Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps …

Software Development python
Member Avatar for a1eio
0
8K
Member Avatar for Mackjan

I have a list for exemple: a = [ 9,6,5,4,1,0,0,7,6] . By this function I want to delete all element which content zero and delete all element which content duplicate. But it doesn’t do exact what I want. [CODE]def rensa(a,b): j=0 for i in a: if a[j]<= 0: del a[j] …

Software Development python
Member Avatar for Mackjan
0
112
Member Avatar for edek

Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes? <Thanks>

Software Development c c# c++
Member Avatar for Nick Evan
0
214
Member Avatar for still_learning

Hi, I could use a little help if anyone would be willing. I have some vectors which I am using to store input from a text file. Now I want to be able to store user input into a vector and output it to that file so that it replaces …

Software Development c++
Member Avatar for still_learning
0
207
Member Avatar for dark_ivader

Hello, ive recently been making a program, and am trying to do some file i/o so that it can log information. Ive been trying to do it via a class. Well, i ran into a problem just clearing the char arrays (for my purposes they need to be cleared to …

Software Development c++
Member Avatar for Lerner
0
113
Member Avatar for javauser215

I have several files and am receiving errors message when compiling and would appreciate any help. Thank you in advance. Model class file: [CODE]class Model extends Product5 { String genre; //add product to product inventory double restockFee; //fee for restocking //initialize constructor public Model( String genre, String name, int identificationNumber, …

Software Development gui java java-swing printer
Member Avatar for javauser215
0
123
Member Avatar for compovet

Hi I'm a beginer programer and I need your help I'm using visual studio 2005 writing with c#, Iwant to make a small program at console this program give the root of a number. I writ this code [CODE]double one = double.Parse(Console.ReadLine()); for (double x = 1; x <= one; …

Software Development visual-studio
Member Avatar for corwing
0
119
Member Avatar for hezfast2

Hi all. I'm having a minor problem with cases in my program. If I enter a number that is out of my case range (say I enter a 10 when there are only 4 cases) I've got my default to output an error prompt. When I enter a character, say …

Software Development c++
Member Avatar for hezfast2
0
103
Member Avatar for FreezeBlink

Python's system of deciding for you what type to give all your variables is nice and all, but is there a way to force it to give a variable a certain data type? For instance, if you give it the following: [code=Python]n = 2 m = 3 print n/m[/code] It'll …

Software Development python
Member Avatar for vegaseat
0
104
Member Avatar for 1s2k3y4

there is a imformation when I write "javac Test.java" that is " Test.java uses or overrides a deprecated API. Recompile with -deprecation for details." yes,I want to see the detail,but how,how to do? for example ,I write like this:javac deprecation Test.java ,but fail,nothing display..... who can tell me how to …

Software Development api java
Member Avatar for 1s2k3y4
0
173
Member Avatar for micksatana

hi, i'm really a newbie in xslt. i try to add string to a variable using concat (there is some how my xslt processor doesn't know string-join, but that's not the point here =P) this is some part of xml code [code=xml] <node0> <node1> <node1name>xxxx</node1name> <node2> <node3>01</node3> </node2> <node2> <node3>02</node3> …

Software Development xml
Member Avatar for micksatana
0
1K
Member Avatar for hermit08

Hi there, i am a beginner so please don't laugh at how basic my question is. I don't understand why when i check the radio button the constant doesnt appear in the label..i'll put in the bit of code i am working on but if you need to see the …

Software Development display vb.net
Member Avatar for hermit08
0
138
Member Avatar for sibotho

Hi I have a database with a Contacts table, in this table I have 2 columns emailAdd and byEmail. I want to select emailAdd where byEmail = Y and add these selected items into a Listbox. Please help how do i do this this is what I tried but does …

Software Development
0
85
Member Avatar for Prabakar

When I searched the web, I found an intersting program, I dont think I can explain a bit. But, I would like to share it. It displays my home country thats the most I can say about it! Here goes, [CODE=C]#include<stdio.h> main() { int a,b,c; int count = 1; for …

Software Development c
Member Avatar for Prabakar
0
156
Member Avatar for Asat232

How to get lpBaseAddress to pass it to : BOOL WINAPI Toolhelp32ReadProcessMemory( DWORD th32ProcessID, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD cbRead, LPDWORD lpNumberOfBytesRead ); It will be very helpful to me if someone can provide a snippet of code how to achieve that. Thanks a lot.

Software Development c
Member Avatar for jephthah
0
110
Member Avatar for CodeBoy101

Is there a way to chose where a program outputs text to a file ?(or read text from a file). As in selecting which line to start from.? Any help is welcome. :)

Software Development c++
Member Avatar for CodeBoy101
0
144
Member Avatar for ceyesuma

Is there anything I can do to adj. searchList1 parameters? I noticed ?null: in the searchQuery1. What does this denote Thanks Steve query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery(resourceMap.getString("query.query")); // NOI18N list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList()); searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); searchQuery1 = java.beans.Beans.isDesignTime() ? null …

Software Development java oracle
0
75
Member Avatar for sddproject

hi! we have a project where on frm_playername there is a textbox where the user enters a player name and then a button on that form takes you to the game screen form and on this form there is another textbox that should display the name entered on the frm_playername …

Software Development visual-basic
Member Avatar for Jx_Man
0
124
Member Avatar for Nemoticchigga

Does anyone know how to convert a "String^" data type in a visual studio 2005 forms app to an "int"? Ive tried atoi and casting to no success. Any ideas? Thanks.

Software Development c++ visual-studio
Member Avatar for Nemoticchigga
0
100
Member Avatar for shigehiro

Hi all, I would need your expertise/advice on the problem I encounter right now when I tried to parse in the contents of .csv file. Here is the scenario: 1) I have csv file with the possible entries as follow: ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade --> Header I,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80 R,0023,Grid Computing …

Software Development data-science file-system python
Member Avatar for a1eio
0
260

The End.