132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tintincute

hi I'm doing an exercise from a book, where I created a project called "Example.cs". When I wrote the code, here are the steps involve: 1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs, 2.Next, …

Software Development file-system ide
Member Avatar for Ramy Mahrous
0
116
Member Avatar for tintincute

Hi I have a code here: [CODE]public static StringBuilder sb; private static bool isRecording = false; private static bool isWritingDocument = false;[/CODE] I would like to know what is the role of IsRecording here? I know it's a variable. I would like to understand the meaning here Thanks

Software Development
Member Avatar for tintincute
0
176
Member Avatar for Atomika3000

I am getting further with my Property to let program, but i need help working out the above error, it happens when the user selects the option to delete a property from the text file. The user is supposed to be able to enter in a number and that deletes …

Software Development java
Member Avatar for Atomika3000
0
118
Member Avatar for ssDimensionss

hi guys im working on making a program where u get given a machine code. The first 6 bits are the opcode, the next 5 bits is the source register, the next 5 bits is destination register and the last 16bits is the immediate. What we have to do is …

Software Development c
Member Avatar for ssDimensionss
0
216
Member Avatar for happymadman

Is there anyway to compare lists or check to see how many of the objects in one list are the same as the other list? eg: L1 = [dog, cat, john, moo] L2 = [dog, cow, moo, stuff] there is two of the same "things" in it I'm trying to …

Software Development python
Member Avatar for happymadman
0
147
Member Avatar for Akis2000

Problem Description My pi is an irrational number, i.e. it cannot be written as a fraction. It's approximate value of p is 3:141592653589793. Below are 5 di erent series which can be used to approximate p: 1. P= 4(1-(1/3)+(1/5)-(1/7)+(1/9)-... 2. P= sqrt(12(1- (1/4)+(1/9)-(1/16)+(1/25)-...)) 3. P= sqrt(6 (1+ (1/4)+(1/9)+(1/16)+(1/25)+...)) 4. P= …

Software Development algorithm c++
Member Avatar for Akis2000
0
275
Member Avatar for AutoC

Hi, Here's my code [code] #include<iostream> #include<fstream> #include<string.h> #include<math.h> #include<stdlib.h> #include<stdio.h> using namespace std; int cIndex(char *x,char **featlist,int len) { int i; for(i=0;i<len;i++) if(strcmp(x,featlist[i])==0) return i; } int main(int argc,char *argv[]) { std::ifstream featFile(argv[1],ios::in); std::ifstream trainFile(argv[2],ios::in); // std::ofstream svmFile(argv[3],ios::out); char line[20000]; char feat[100]; char **featlist; int i=0,len=0,fl=0,j; char* x; int …

Software Development c++ ios
Member Avatar for AutoC
0
146
Member Avatar for kaseem724

hi, i am pretty new at using c++. i am trying to read a mathematical expression from a file but i keep getting errors. i am using the cin.get function to read it but it isnt working. can anyone help me please. this is what i have. the file being …

Software Development c++
Member Avatar for tux4life
0
2K
Member Avatar for arshad115

hi,i m making a windows forms application and i want to make a treeview which displays input of textbox Under the Parent Node . i have tried searching over the internet,but nothing seems to be working. i have added the parent nodes from the properties tab,but how do i change …

Software Development apple c++
Member Avatar for arshad115
0
198
Member Avatar for VIPER5646

[QUOTE]Hi I have an INSERT INTO SQL that keeps on retuning an Syntax error in Insert Into. I cant seam to see where the error is, can anyone Help. This is my SQL.[/QUOTE] [ICODE]Dim DesignSQL As String = "INSERT INTO Design_tbl (CustmrID,[User],Builder,Model,Type) values ('" & _ CustID & "', '" …

Software Development vb.net
Member Avatar for VIPER5646
0
121
Member Avatar for Atomika3000

I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to …

Software Development file-system java
Member Avatar for Atomika3000
0
140
Member Avatar for sfzab

I work and have to save an important file in four other locations besides a Linux HD. Instead of having to save the same file for four more times, I would like to automate the procedure through a linux script file in which the [B]first[/B] saved file on the Linux …

Member Avatar for sfzab
0
321
Member Avatar for TheFueley

Plink is a command-line version of PuTTY, a Windows SSH client program. I am trying to get the output from plink to display in a textbox within a VB form. I can get it to work but I must hit the ENTER key twice before it shows anything, everytime. So …

Software Development vb.net
Member Avatar for TheFueley
0
199
Member Avatar for mafaisal

Hello Experts When the system user Log off the system , shutdown and so on How to know that in vbcode Bcoz When user Log on i have vb application that automatically work, but when user logg off , shut down i have write code in application Please Help me …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
536
Member Avatar for pczafer

I`m trying to to use if statement but something going wrong. statement must be 2 steps IF There is still room in the array and IF there is not an Appointmen on the same Date and Time! Apointment will be accept...... im not getting any error or worning but its …

Software Development c++
Member Avatar for pczafer
0
144
Member Avatar for rastinrastini

In The Name Of God Hello All i will connect to my table in sql server 2008 but display this message to me. [url]http://www.uploadgeek.com/share-10D4_49F1AEF5.html[/url]. can anyone tell me how can solve this prfoblem? thanks alot. goodby.

Software Development sql
Member Avatar for John A
0
67
Member Avatar for LanierWexford

I am a EE student who took some C++ classes and is not trying to learn Java. I like to write my code in Notebook++ and want to know how to run in from the Cmd Promt. I was using Netbean, but I do not like all the code it …

Software Development java
Member Avatar for jbennet
0
129
Member Avatar for aksshe10

i have created an exe which shows a message but the problem is i want to create another program from which a person can enter his name, choose destination and click create after clicking create a new exe if made in the location he chose which has the name he …

Software Development c++
Member Avatar for aksshe10
0
186
Member Avatar for moiron

how do I get the maximum, minimum and the average of an array? this may be different but how do I get to stop inputting number in an array. for example if the array is 20 and i only need 10 of them. i think its something about EOF but …

Software Development c
Member Avatar for moiron
0
251
Member Avatar for alexms

hey, im having a problem getting file stored into linkedlists. the program crushes when start reading. [B]these are the structs:[/B] [code=c]typedef struct category { char categoryID[5]; char categoryName[25]; char fareType; char categoryDescription[250]; unsigned numItems; ItemTypePtr headItem; //ptr to item struct CategoryTypePtr nextCategory; } CategoryType; typedef struct item { char itemID[5]; …

Software Development c file-system
Member Avatar for nexocentric
0
2K
Member Avatar for kvprajapati

Hi, Following code snippet show the maximum number of nodes to be created. I execute this code and show the count : 7874 My problem is that I want to create more node than 7874. I have compiled this code by Turboc version 3.0 on Windows XP. [CODE]#include <stdio.h> #include …

Software Development c++
Member Avatar for John A
0
167
Member Avatar for ankit894u

[code=cplusplus]#include <iostream> #include <fstream> using namespace std; void PrintError(fstream&, char, bool&); int Conversion(fstream&, char&, bool&); int main() { fstream InFile; char Bit; int Decimal; bool BadBit = false; //Open file to read InFile.open("f:\\Binary.txt",ios::in); //Read the first bit of the number InFile.get(Bit); //continue reading all numbers till the end of file …

Software Development c++ file-stream ios
Member Avatar for ankit894u
0
117
Member Avatar for besktrap

hi everyone! I have two files, main.py and sprite_class.py. sprite_class.py is in a separate folder called lib. here's a quick diagram: ------------------------------------ /folder engine/ main.py /folder lib/ sprite_class.py ------------------------------------ ...sprite_class.py contains a class called Sprite: [CODE] # sprite class class Sprite(): def __init__( self, start_x, start_y, image_path ): self.x = …

Software Development python
Member Avatar for besktrap
0
10K
Member Avatar for mentor07825

Hey everybody, I need a bit of help please. I need to create an 8086 application that will draw a line between two points on the screen that you click on. It's using Bresenham's line algorithm to do the calculations between the two points. I'm using Tasm and Tlink to …

Software Development algorithm assembly
0
93
Member Avatar for fahad42

Hi all........... i want to use CSS with c# windows appliction control for standard design. But i could not use it. i do not know, how i can link a cssClass for a control such as button, label. Friends plz give solution with a example. Fahad

Software Development c# html-css
Member Avatar for serkan sendur
0
253
Member Avatar for Clockowl

Hey guys, How would I partially specilize a template in a manner as below? Is that even possible? I have these two functions: [code=cpp] bool node::read(const char *filename) { ifstream f(filename); if (!f.good()) return false; bool success = read(f); f.close(); return success; } bool node::write(const char *filename) { ofstream f(filename); …

Software Development c++
Member Avatar for Clockowl
0
511
Member Avatar for abhi_iips

hi all, i have created a class names members which looks like this.. class mymembers{ int data; float dummy; char* thename; public : mymembers() { cout<<"the value of i is "<<data; data =12; } mymembers(int ic,char* name) { thename = name; data= ic; cout<<"hello this object's data value is "<<data<<endl; …

Software Development c++
Member Avatar for ArkM
0
115
Member Avatar for Xamas

Well, I don't want to do lot of copy-paste in my code, so, I'm just wondering - is it possible to have two different names of one functions(I prefer that function name describe what is used for): ex: [CODE]int do_my_client(int info) { blah blah blah; .... .... return inf; } …

Software Development c++ client-server
Member Avatar for ArkM
0
107
Member Avatar for Tunca

I have been working on my final project that i am going to do a simple soccer game. Not graphical. I will ask the user to choose or create a team. Teams are saved in the same file as the code as text files. where i am stuck is, i …

Software Development c
Member Avatar for jephthah
0
108
Member Avatar for destruct0

Hello! I have a problem when I try to do some interrupt in assembly program. When I try to execute, executable file i get this message "Segmentation fault.". Please help? I have this problem almost all interrupts. Sorry for my bad English.

Software Development assembly
Member Avatar for destruct0
0
109
Member Avatar for CDS93

Hello, I've just recently gotten back into VB. I am currently developing a Database for a sort of hobby project, and I am having trouble with displaying it properly. Here is my situation. I have a ComboBox which allows a user to select from a series of categories. Each category …

Software Development dataset vb.net
Member Avatar for CDS93
0
412
Member Avatar for leegeorg07

hi again i want to make something that captures images of my window and sove them into either a gif file or a video file, i thought about using win32s [code] win32gui.GetDesktopWindow() [/code] but i wasnt sure how to use this to save it to the file how could i …

Software Development python
Member Avatar for jworld2
0
112
Member Avatar for Peyton

Hi there, I am having a problem with the following code: [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; int findRows( string line ); int main() { string line; int rows = findRows( line ); cout << "Number of rows: " << rows << endl; } int findRows( string …

Software Development c++ file-stream
Member Avatar for Peyton
0
159
Member Avatar for niku4u

Following is my client code....I am receiving data of equal size of JPG file... so if anyone can help me out with reading buffer properly and writing it in to jpg file at client side ================================================ do { memset(buffer,0x0,BUFFER_SIZE); // init line rc = read(sd, buffer, BUFFER_SIZE); if( rc > …

Software Development c socket-programming
Member Avatar for niku4u
0
494
Member Avatar for ks7_666

Question 1: Write a program that reads repeatedly 3 integers a, b, and c and test if they are Pythagorean triples. Whether or not . Your program should keep reading in triples until all three values entered are zero. When The user enters three zeroes, it should exit without printing …

Software Development c++
Member Avatar for jephthah
0
315
Member Avatar for lifted

Hello, i'm very new to c++ and i'm trying to create some sql but dont really know how. i need a very simple query in php i would do something like: [CODE] $page = "pagedata"; $sql = "INSERT INTO data SET field = '$page'"; [/CODE] i know i cant do …

Software Development c++ mysql
Member Avatar for lifted
0
161
Member Avatar for Raymoneto

Pls assist me in graph programming in java, how to draw graphs, scale graph and other stuffs of graph

Software Development java
Member Avatar for MoZo1
0
125
Member Avatar for get2tk

Write a class, TimedInstantiation, which will have a toString method which returns a string of the following form: I was instantiated on 12 June 2008, 35 seconds after the previous instantiation of me. if there have been previous instantiations, but if not (that is, if we are dealing with the …

Software Development java
Member Avatar for javaAddict
0
109
Member Avatar for carloscarlos

When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import …

Software Development file-system java java-swing
Member Avatar for Frickelmeier
0
111
Member Avatar for newbiecoder

Hi, I am expected to use sscanf function in a program, but I couldn't understand how it works. Can you explain it with an easy example? Thanks -- newbiecoder

Software Development c
Member Avatar for newbiecoder
0
151
Member Avatar for xVent

Hello guys , i created a text based RPG , now how can i save what the player did before he exit? for example , he have killed some monsters , gained exp .. i need to save the exp , his name when he start a new character , …

Software Development c++
Member Avatar for xVent
0
85
Member Avatar for hackfodder

Assembly is by far the lest abstract language I am aware of (short of getting a hex editor and punching in raw bits and bytes). I am aware that understanding less abstract topics require greater knowledge. I know it would be silly of me to ask is there a quick …

Software Development assembly
Member Avatar for orwell84
0
118
Member Avatar for orwell84

I'm having a problem with the substr function. I want it to be dynamic in a for loop as follows: [code="perl"] for ($i = substr $bin, $sub, 1 ; $sub < $len2 ; $sub++){ [/code] You can probably guess what this code is meant to do. I want to read …

Software Development perl
Member Avatar for orwell84
0
310
Member Avatar for rEhSi_123

Hello Everybody, Need abit of help in my code: Basically I have two forms, namely form1 for Login and form2 is the actual application. The first issue I had was hiding the form1(login-screen) after a successful login which I was able to do by declaring [code=c++] Hide(); [/code] Now the …

Software Development c++
Member Avatar for rEhSi_123
0
146
Member Avatar for Valaraukar

Hi, I've written a program that reads object information from an ASCII file (exported from 3dsmax) so that an object/objects can be reproduced in OpenGL. It works fine at the minute and can read multiple objects from a single file but what I want to be able to do is …

Software Development c opengl
Member Avatar for Valaraukar
0
290
Member Avatar for lifted

Hello everyone, first little explanation about what i want my program to do: i use wget to download a webpage but instead of downloading it into a file i want the webpage sourcecode in a variable so that i can parse it and put it in a database later. Now …

Software Development c++
Member Avatar for lifted
0
178
Member Avatar for drjay1627

I doing this server and client program. The sever has to output to the client. [code] strcpy ( outBuf, " " ); sprintf ( outBuf, "cylinder: %d Sector: %d\n", cylinders, sectors ); if ( write ( client_sockfd, outBuf, strlen ( outBuf ) + 1 ) < 0 ) { perror …

Software Development c++ client-server
Member Avatar for drjay1627
0
102
Member Avatar for 136456

Hi every bod y I am new in programming and I like to start with pyqt but I can not find anything for learning in internet please help me how how can I write program with gt designer & when I make a form in qt how can it work(my …

Software Development python qt
Member Avatar for Ibn Saeed
0
269
Member Avatar for vaps

Hi! I'm making an inventory managment system, but i need User Authentication, to login users, and controle there Type, like admin, guest or normal users. I want to do it with .CSV files, because the rest of my program is witch CSV files. Does anyone have a sample code, for …

Software Development c++
Member Avatar for tux4life
0
116
Member Avatar for jaeSun

ok, I am needing to calculate powers in C++ (ie, 10^6, 10^9, 10^101, etc) the pow function uses double, and after 10^5, returns a number like (8e3245) ... but i need it for larger powers ... now, is there a function I can do that will break it down somehow? …

Software Development c++
Member Avatar for tux4life
0
2K

The End.