132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bigredaltoid

Your program should calculate and output (to the screen) the following information about the file of text: 1. The total number of lines in the file, including blank lines. 2. The number of blank lines in the file. 3. The number of periods in the file. 4. The number of …

Software Development file-system python
Member Avatar for TrustyTony
0
2K
Member Avatar for shinnoon

hi I'm new to c++,I really need your help :( I have an assignment that it's title is a latin sort.It needs to read from the text file and then sort the words by bst and again write the sorted files to a text file,I also attach the assignment I …

Software Development c++
Member Avatar for shinnoon
0
4K
Member Avatar for Navlag

I am getting the following error: PII.cpp:266: error: 'struct std::string' has no member named 'getfirstblock' And I'm not sure how to fix it, since "int block" has to be equal to the firstblock of the file, how can I fix that error? Also, my "getfirstblock" function should return the block …

Software Development c c# c++ file-system ios
Member Avatar for baldwindc
0
891
Member Avatar for baladeveloper

Hi Friends I want to set the image to picture box from get sql. I wrote this coding , But Its not Working Properly . [B]byte[] mydata=new byte[0]; mydata=(byte[])dt.Rows[0]["img"]; int arraysize=mydata.GetUpperBound(0); MemoryStream stream = new MemoryStream(mydata,0,arraysize); img.Image = Image.FromStream(stream);[/B] where i wrote wrongly Please tell .. Thanks in Advance :)

Software Development image sql
Member Avatar for baladeveloper
0
148
Member Avatar for skylinedrifter

Hey fox i had a hw problem and im stuck we're supposed to do a payment project and i sort of did the first part but then stuck on the second. Here's what i've done so far... [CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; //Program name: Amortize int …

Software Development c++
Member Avatar for baldwindc
0
179
Member Avatar for kikiritce

What is offset of array? And how can I define it? It's very important. Please answer!!!!

Software Development assembly
Member Avatar for NotNull
0
124
Member Avatar for dedmon

[QUOTE=Narue;1387727]Endianness is about byte order, not bit order. So 00000000 00000000 00000000 00000011 in little endian is 00000011 00000000 00000000 00000000 in big endian. Keep that in mind when doing your conversions.[/QUOTE] How to create a Little Endian computation code? MASM platform: val7 dword 12345678 ; little endian starting point …

Software Development assembly
Member Avatar for NotNull
0
1K
Member Avatar for jonnyboy12

Hello i am building a game. The bigger it gets , the longer it takes to compile. I wanted to speed up compile time. I have a lot of headers and cpp's and they recompiled every time. I was thinking about when building my game, excluding some parts of it …

Software Development c++ visual-studio
Member Avatar for jonnyboy12
0
104
Member Avatar for christine.j

So, I've been assigned to write a program that reads the wind-tunnel test data, that of which is called the "tunnel.dat" in my program, and then allows the user to enter a flight-path angle. If the angle entered is within the bounds of the data set, the program would need …

Software Development c++ file-stream
Member Avatar for raptr_dflo
0
1K
Member Avatar for jmaass20

this is my first year of c++ and i am really confused on functions. if someone could help me with one of my examples to get me on the right track i would really appreciate it. 1. using void printMenu().....i dont understand how to set it up 2. using isEven(int, …

Software Development c++
Member Avatar for raptr_dflo
0
123
Member Avatar for slygoth

Hey guys i am having a little trouble with this code [CODE]# include <fstream> # include <iostream> # include <string> using namespace std; int main() { fstream filestr; filestr.open("text.txt", fstream::in | fstream::out | fstream::app); filestr.close(); return 0; }[/CODE] But i keep getting a error when i run it 1> All …

Software Development c++
Member Avatar for slygoth
0
101
Member Avatar for gus7984

Hello, I have a question about classes on C++. So far I have 3 classes on my project. BibEntry ( abstract class), KeyFinder (class to find the \cite in file and store to private KEY at abstract) and TypeFinder ( class to find which entry is it article, journal so …

Software Development c++ file-stream
Member Avatar for raptr_dflo
0
216
Member Avatar for Depsi

Hii all, I have an assignment in my java course and i just did the required 1 , and the else is very confusing for me , I'll be very appreciate if any one could help me for 2nd required and then ill try again in the rest . <URL …

Software Development java
Member Avatar for Depsi
0
137
Member Avatar for MrHG24

Hey guys, I have been having a problem with converting an interger into string for input purposes. For example, I am trying to make it so when the user inputs his/her name and it is an integer the program will not accept it. The IBIO file is the input method …

Software Development java
Member Avatar for jackmaverick1
0
184
Member Avatar for 1337RAM1337

[CODE]def windchill(V,T): wc = 35.74 + .6215*T-35.75*(V**.16)+.4275*(V**.16) we = round(wc,2) return we def main(): print(" Temperature \n") print("Speed \n") print("---- -20 70 10 0 10 20 30 40 50 60 ") for V in range(0,55,5): print(V) for T in range(-20,70,10): wc = windchill(V,T) print(V, "{0:1.1f}".format(wc), end="") main()[/CODE] Its python 3, …

Software Development python
Member Avatar for 1337RAM1337
0
593
Member Avatar for kwajo

i need some help with this code please :) when i run this code the output after each time the nested loop runs should look like this: {'gender': 'Female', 'age': 9, 'fur': 'Brown', 'name': 'Savannah'} {'gender': 'Male', 'age': 9, 'fur': 'White', 'name': 'Thumper'} {'gender': 'Male', 'age': 8, 'fur': 'Brown', 'name': …

Software Development python
Member Avatar for kwajo
0
487
Member Avatar for SasseMan

Hi! I'm looking for a way to make an application (app1), separate from another java application (app2), that can acces the GUI of app2 and also listen to all events that are passed to app2. I would like to be able to get hold of the frame of app2 so …

Software Development gui java
Member Avatar for jackmaverick1
0
155
Member Avatar for 3FatCats

The assignment requires program to read from a file into an array, use two boolean functions to validate certain data (set to "true" when there are no errors) then output any errors to a separate file. Everything works fine except for validating the rate. All the numbers are read into …

Software Development c++ file-stream
Member Avatar for 3FatCats
0
244
Member Avatar for psvpython

Hi, I am using Python 2.4 on Windows. I'm trying to save the contents of the debug window. I managed to redirect all print statements so that it prints on the debug window as well as saves a copy into a text file. The code is shpwn below: [CODE] import …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for psvpython

Hi, I'm working on Python 2.4 and use tkinter to build my GUI. I want to display content(line) from the listbox only when it is selected. [CODE] def get_list(event): # get selected line index index = Listbox.curselection()[0] # get the line's text seltext = Listbox.get(index) print seltext Listbox.bind('<ButtonRelease-1>', get_list) [/CODE] …

Software Development display gui python tkinter
Member Avatar for vegaseat
0
3K
Member Avatar for scarletfire

HI I was wondering what is wrong with this piece of code as it compiles but then it prints java.lang.null exception in the terminal. and it prompts the red line. I am basically trying to create a ticketoffice class that would store information of 3 users who are only allowed …

Software Development java
Member Avatar for hfx642
0
126
Member Avatar for tomtetlaw

I don't really know what to ask here because the only indication I have that there is something wrong in my program is that nothing is showing on the screen. I'm loading a .obj model (it's just a cube, and i've checked all the verts/faces and they're all proper values) …

Software Development c opengl
Member Avatar for tomtetlaw
0
143
Member Avatar for yurigagarin

Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE] FILE *output fopen(output,"comtimer.txt", "ww"); [/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not …

Software Development c data-structure
Member Avatar for yurigagarin
0
225
Member Avatar for pikalife

how do you write the "go to" command in java? like a command that allows me to go back to a previous part of the program and rerun the program in a loop?

Software Development java
Member Avatar for hfx642
0
8K
Member Avatar for Dancer90

I am doing a project in class for computer science. I have to make a hangman game that consists of the following: Get the words from a file and pull in the next word after each game, display the word as dashes for the user to guess, prompt the user …

Software Development java regex
Member Avatar for joehms22
0
377
Member Avatar for juniorsilver

I was wondering if there is a code i could add to my applicatio that will delete a data entry from a database. I'm designing a voting application as my project and i want a situation where an access code is good for only one entry. i put my code …

Software Development microsoft-access open-source vb.net
Member Avatar for adam_k
0
143
Member Avatar for tendaishava

Hello Team i am a newbie in c#, i have was asked to come up with a program that extracts information from websites and stores in txt, or any other readable format. now i managed to do the program. my problem now is i am extracting information from a site …

Software Development c c# c++ file-stream publishing
Member Avatar for gusano79
0
674
Member Avatar for caut_baia

Hi.I get the following error "g++: error: CreateProcess no such file or directory" whenever i try to compile a program.I have installed the MinGw 7.2 version at work on a windows machine and the problem does not occur , however after installing windows SP3 on my home computer i get …

Software Development c++
0
219
Member Avatar for Tsuchino

Hi everyone, I'm a fairly new Java student and I need some help regarding subclass. This is what I'm trying to do: Basically, I created a Superclass called Person, and from it I created a subclass called CollegeMember. Now, I need to divide the CollegeMember subclass to "Lecturer", "Student" and …

Software Development java
Member Avatar for Tsuchino
0
103
Member Avatar for toneatles

Hello all, U have a project that I am trying to figure out how to start, I don't have very strong programming skills, so I'm actually quite lost here. Any help is appreciated. Basically here is what I have to do: 8 processes are characterized by 5 readers and 3 …

Software Development c++
Member Avatar for raptr_dflo
0
412
Member Avatar for ChristianOncken

i need a example or sample code about text.dump (???) input values -> automatic text ---> automatic tags --> save (.doc , .txt) but when i save the text, the file dont get the tags.... like this example: input in text widget: I [B]love[/B] you [U]girl[/U] the output in (.doc …

Software Development python
Member Avatar for ChristianOncken
0
234
Member Avatar for garu525

I'm having an error "a value of type "double" cannot be used to initialize an entity of type "double *" Any tips? Thanks! [CODE]#include <iostream> #include <string> using namespace std; struct sample { string name; double *num; unsigned elements; }; int main () { sample x = {"Dude", [COLOR="Red"]{1, 2, …

Software Development c++
Member Avatar for garu525
0
5K
Member Avatar for dave013

think of a number and allow the user to guess it [code]import java.util.*; public class ThinkNumber { public static void main (String args[]) { //generate number in range 1 - 100 //prompt user to enter guess //loop until correct number is guessed //check guess and output hint //guess is correct …

Software Development java
Member Avatar for strongguy12345
0
134
Member Avatar for sasho648

My question is why fstream can't read 0x1a. For example make a test file and inside it write in HEX editor 30 1A. [CODE]#include <iostream> #include <fstream> typedef unsigned long DWORD; using namespace std; fstream myfile; template <class T> T grad(T value, int step) { T val(value); if(!step) return 0; …

Software Development c c# c++ ios
Member Avatar for sasho648
0
366
Member Avatar for bbman

Hi all, here's a kinda bullet-pointy explanation of what i have - I have a simple JFrame - I create a JPanel called 'ContentPane' [CODE]contentPane = new JPanel(); contentPane.setBackground(SystemColor.window); contentPane.setBorder(new LineBorder(SystemColor.inactiveCaption)); contentPane.setLayout(null); setContentPane(contentPane);[/CODE] - the JFrame has a [CODE]JMenuBar -> JMenuBar -> JMenuItem[/CODE] - The JMenuItem has a MouseListener and …

Software Development java
Member Avatar for JamesCherrill
0
167
Member Avatar for s_r_k

I'm doing a project for school and I've run into a problem. I have to reset values of a cylinder (height and diameter), back to the values used in the default constructor within a function. Here is what I have so far: My Class [CODE]class cylinder { public: cylinder(); cylinder(double …

Software Development c++
Member Avatar for Schol-R-LEA
0
763
Member Avatar for bilal_fazlani

i know crystal reports can access data stored database.. what I want is actually to create a report on the basis of a listview values..no database at all. how do I pass these listview items and subitems to crystal reports... please help guys..

Software Development listview vb.net
Member Avatar for bilal_fazlani
0
126
Member Avatar for bigredaltoid

Hi..me again. I am trying to incorporate this function which counts the periods into the code..however, I can not get the code to output both the line count, blank line count, and period count at the same time. This is my 3rd or 4th try at adding this into the …

Software Development python
Member Avatar for woooee
0
145
Member Avatar for champaned_out

I am currently working on a small project with Fibonacci numbers and it requires me to report an error when given a negative numbers. This is the assignment my professor gave me, "The program is not assured of receiving good data, thus if -2 is received as the number of …

Software Development c++
Member Avatar for WaltP
0
126
Member Avatar for geekman89

Hello everybody. I am in need of an answer. How can I use the text from a string and use it as a variable's name? For example: I have an array: int xyz[] = new int[5]; And say I want to check if it's name is the same as a …

Software Development java
Member Avatar for geekman89
0
501
Member Avatar for canarian

Hello! I need to ask password to user, to get administration rights for my java application when it works under linux (or any POSIX). Can someone help me about that? Thank you!

Software Development java
Member Avatar for Taywin
0
95
Member Avatar for efronefron

the problem is if you increase buff size and also change the buff size in a3_fgets_2 function call to more than 15, the program will run in an infinite loop, Can anybody tell me why? Thanks [CODE]#include<unistd.h> #include<string.h> char * a3_fgets ( char * str, int num, int fd ); …

Software Development c unix
Member Avatar for efronefron
0
267
Member Avatar for ganeshan23

Hi Friends , This is Ganeshan . I Found the Below undefined errors when using Socket programming on Eclipse IDE . I don't know what to do ?. Kindly please help me in removing the Errors . [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `socket@12' Thanks …

Software Development c ide socket-programming
Member Avatar for Ancient Dragon
0
2K
Member Avatar for ToweyLeake

Hello again. I am hitting a brick wall. I am to read data from a file, store the data in three arrays respectively, and then calculate and display the average of the numbers in column 2 and 3. These are the things I know: Read my data from file. Use …

Software Development c++ file-system
Member Avatar for ToweyLeake
0
198
Member Avatar for Misbah khan

have two form in one form i salect some thing and click on done button a mesage box prompt me that u selcet this and this and on the other form a button result is place.. when i click on it a new form appears and the msg box text …

Software Development visual-basic
Member Avatar for hkdani
0
168
Member Avatar for dgzo_08

Hi all, I have a datagridview in which I add programatically a combobox column with its datasource set to a datatable I fill from a query, then I populate manually (for good reasons) the DGV, but just when I try to add the first row, this error shows up: Fielld …

Software Development dataset vb.net
Member Avatar for Phixius
0
671
Member Avatar for Valaraukar

So I'm currently working as part of a team that is building a game engine and I have been considering our current code structure. As a team we decided it would be a good idea to create a plugin architecture that allows additional functionality to be added by other users …

Software Development opengl
Member Avatar for Valaraukar
0
191
Member Avatar for virusisfound

hi, I am working in C# windows application as front end and sql server 05 as back end. I want retrieve image from database. Image,imagenm, image path save in the database. The code given below shows an error message i.e [B]Unable to cast object of type 'System.String' to type 'System.Byte[]'.[/B] …

Software Development
Member Avatar for Mitja Bonca
0
219
Member Avatar for markdean.expres

I'm just wondering guys if it is possible for me to go to the specified listbox item via searching. Example; Listbox1 items are Apple Banana Guava Pineapple Peach When I key in the word Apple in a textbox, the SelectedItem would go to Apple, is this possible?

Software Development apple seo vb.net
Member Avatar for markdean.expres
0
6K
Member Avatar for markdean.expres

Guys is it possible that I create a program whose functionality would be selecting a file, then gets the contents of that file (Word or text files). The program, of course, has a Richtextbox on it where the file content will be filled to. If it is, could anyone please …

Software Development vb.net
Member Avatar for markdean.expres
0
132

The End.