132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Senel

I want to write a program that enter the marks of n of student out of 100%, students who are (marks>=65) pass otherwise failed, want to print number of students who'r passed and failed ? I solved but wont work >< To enter nth marks of student need loop, then …

Software Development c++
Member Avatar for Senel
0
106
Member Avatar for lor

I want to create a function or procedure to compute the sin formula using taylor method. can you help me pls thnx

Software Development pascal
Member Avatar for radu84
0
91
Member Avatar for naya22

Well, everyone, here I am again. (I'm becoming a familiar face, am I???):confused: I am working on an program in Borland C++ Builder 6 in which I have to create a program that asks the user for their name, what package they choose, and how many hours did they use. …

Software Development c++
Member Avatar for naya22
0
116
Member Avatar for addicted

me again, I need help with that so called templates in C++, i need someone who can break it down to bits for me, i just read it today and i understand few of it, i understand that templates are used for substituting function overloading... but i was thinking that …

Software Development c++
Member Avatar for iamthwee
0
112
Member Avatar for rowly

hey guyz, i'm trying to search each ar for matching characters in the buff, but I seem to be getting a buffer overflow. Can anyone give me any pointers, any help would be appreciated, this is my code: [code] #include <stdio.h> #include<stdlib.h> #include <unistd.h> #include <fcntl.h> #include <string.h> main(int ab, …

Software Development c
Member Avatar for Ancient Dragon
0
167
Member Avatar for mrjoli021

I have a csv file that I need to be able to read it into a struct array. I have read examples and they all match what I have. [code] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] ReadStudents ()[/COLOR] { fstream infile; [COLOR=#0000ff]int[/COLOR] i; infile.open ("c:\\students.txt"); [COLOR=#0000ff]for[/COLOR] (i =0; i < 20; i++) { infile >> …

Software Development c
Member Avatar for mrjoli021
0
92
Member Avatar for CRD

Can any one spot why this listing Will not compile? [code=c] /*print_it.c-This program preints a listing with line numbers */ #include <stdlib.h> #include <stdio.h> void do_heading(char *filename); int line = 0, page = 0; int main( int argv, char *argc[] ) { char buffer[256]; FILE *fp; if( argv < 2 …

Software Development c++ printer
Member Avatar for CRD
0
440
Member Avatar for student86

In options 1 and 2, the user will input the ID, Type, Description, Quantity on Hand, and Unit Cost as one string with the values separated by commas. Use the function [B]strtok[/B] to parse the input into separate values. For the numeric values, call the function [B]verifyValue[/B] to verify that …

Software Development c++
Member Avatar for student86
0
93
Member Avatar for shsh_shah

when enter the text to find the string i want to ignore the case how to implement that in a context below [code] public override void Search() { //file = new FileStream(@"C:\username.txt", FileMode.Open, FileAccess.Read); Console.WriteLine("Input a string "); String data = Console.ReadLine(); sr = File.OpenText(@"C:\username.txt"); String st = sr.ReadToEnd(); // …

Software Development
Member Avatar for shsh_shah
0
107
Member Avatar for kapkan

Help me pls. I have some problems with method getClient(), bring only two classes. [code] package drugstore; public class DrugstoreFrame extends JFrame { Client person; ... public Client getClient(){ person.setAccount(getField(jTextField4)); person.setPassword(getField(jPasswordField2)); person.setFio(getField(jTextField5)); person.setAddress(getField(jTextField6)); person.setTelephone(getField(jTextField3)); person.setAdditionalInformation(getField(jTextField7)); return person; } private String getField(JTextField field){ return field.getText(); } public void jButton10_mouseClicked(MouseEvent e) { …

Software Development java java-swing
Member Avatar for peter_budo
0
85
Member Avatar for aot

Does anyone know if there's a way to make a larger entry box in Tkinter? I'm looking to allow users to enter comments at the end of my program, so there should be plenty of space.

Software Development python tkinter
Member Avatar for aot
0
88
Member Avatar for shsh_shah

How to search for a string in a file. As string might be somewhere in the middle of text file. :!: [code] [COLOR=#008080]Console[/COLOR][COLOR=#000000].WriteLine([/COLOR][COLOR=#800000]"Input a string "[/COLOR][COLOR=#000000]);[/COLOR] [COLOR=#008080]String[/COLOR] data = [COLOR=#008080]Console[/COLOR].ReadLine(); sr = [COLOR=#008080]File[/COLOR].OpenText([COLOR=#800000]@"C:\username.txt"[/COLOR]); [COLOR=#008080]String[/COLOR] st = sr.ReadToEnd(); ????? [/code] help please? thanks

Software Development
Member Avatar for Lardmeister
0
104
Member Avatar for john99

Hi everyone I am relearning to use VB after taking classes almost 10 years ago. I am stumped on remebering how to open a file using a command button. I have created some forms using VB that I want to activate from a main menu. I have made them .exe …

Software Development visual-basic
Member Avatar for bitbucket
0
315
Member Avatar for Nelly1965

How can I get the path at run time of the VB program file that the code is run from?

Software Development visual-basic
Member Avatar for Nelly1965
0
253
Member Avatar for kjpwa

Ok, so I know lots of people have posted about how to find prime numbers up to a certain number, and I can do that, however If I wanted to output a certain number of prime numbers so that the user inputs say 6, it would out put 2, 3, …

Software Development c
Member Avatar for ANUJ SHROTRIYA
0
827
Member Avatar for nanodano

Is there any way to read or write to a socket besides using the [inlinecode]read()[/inlinecode] and [inlinecode]write()[/inlinecode] functions. Is there any way to treat it like a stream and use the insertion/extraction operators (<< and >>)? The reason I ask is because with read I have to put an arbitrary …

Software Development c++ unix
Member Avatar for vijayan121
0
189
Member Avatar for student86

I need help verifing. If you need more information let me know, but I am a beginner. Just need help with the verifyValue.cpp what kind of code or functions would you suggest. Thanks [COLOR=#000000]In options 1 and 2, the user will input the ID, Type, Description, Quantity on Hand, and …

Software Development c
Member Avatar for vijayan121
0
92
Member Avatar for yaya_star

Hello eveybody i have a calander in my project, when i click on date it retain in list box the information related to this day but the problem in Access in the feild date , it dosen't save the date in the format it takes from the calander , thats …

Software Development vb.net
Member Avatar for arjunsasidharan
0
95
Member Avatar for viraltaj

Hello friends, This is my first post on this forum. I just came here to learn a bi t of C++. I have developed an operating system called TAJ in C++. Its an object oriented operating system. It is multitasking, multithreading and multiuser operating system. This is its link: <snipped …

Member Avatar for jan1024188
0
160
Member Avatar for rowly

[COLOR=#000000]Hey guyz, I'm stuck with this given, its bit hard I cant understand it just wonna know the logic ( no codes).[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Its saying write a C program which read from standard input, replaces all the occurrences of the characters by the first command line argument, with the …

Software Development c
Member Avatar for rowly
0
149
Member Avatar for jerryseinfeld

Hi... I have a project whic is input should be like... Kazma 7 780 m Kaz 13 1400.5 f Azaz 1 601 m and output should be like.... Kazma 7 ,,,,780.00 "m" ,,,,,Kaz 13 1400.50 "f" ,,,Azaz 1 ,,,,601.00 "m" (please think without , ) In this project input can …

Software Development c++
Member Avatar for jerryseinfeld
0
125
Member Avatar for MarzenaM

Hi! I am doing program to calculate votes. its very simple but .......... up to what I did so far it doesn't want to calculate the first vote. Please tell me what i am missing? It's what i did so far.[code=c] char choice; int total, voting_station, votes,spoiltVote, totalA, totalB, totalC, …

Software Development c++
Member Avatar for MarzenaM
0
83
Member Avatar for mcklein_tunde
Member Avatar for Ancient Dragon
0
99
Member Avatar for sp_kosl

Hi! I urgent need of VB.Net project with the help of how can run it and what is requirement for this project. Please help me any one Thanks

Software Development vb.net
Member Avatar for arjunsasidharan
0
124
Member Avatar for mayu

hi... 1) i want a datagrid which is blank on form load with only column header and a blank row allowing user to enter data. 2)The data in datagrid should be inserted in the db(access) when clicked on save button.

Software Development vb.net
Member Avatar for arjunsasidharan
0
92
Member Avatar for sowmya nair

the problem is as follows: write a program:the array of integers indicating the marks of the students is given.u have to calculate the percentile of the student according to this rule:the percentile of a student is the % of number of student having marks less than him.for example: student marks …

Software Development c email
Member Avatar for jimmymerchant
0
137
Member Avatar for ajaxjinx

Hey, Is there any equivalent of conio.h for Linux??? I basically want getche to work in linux.. Is there any alternate??

Software Development c
Member Avatar for ajaxjinx
0
146
Member Avatar for l-o-s-t

I defined a struct that has the format: [CODE] struct node{ char *str; int key; link next; }; [/CODE] and I have a list of this type, when I try to do this [CODE] free ( list -> str ) [/CODE] the program terminates :-| how can I free the …

Software Development c++
Member Avatar for l-o-s-t
0
130
Member Avatar for ttamilvanan81

Hai, I need to Send and Receive Email using Ms-Access with Attachments. Anybody know how to send and receive Email's usin Ms-Access. please post me the details. Thanks Tamilvanan

Software Development email first-post visual-basic
Member Avatar for ttamilvanan81
0
255
Member Avatar for GaryP

I have used the conversion wizard to convert several vb6 programs. It works fine but.... I am trying to pass multi-dimensional array arguments to a subroutine which worked fine in vb6 but is not accepted in .net. The ParamArray/vb.net used at the end of the arguments only accepts one dimensional …

Software Development vb.net visual-basic
Member Avatar for GaryP
0
119
Member Avatar for Green Anorak

Hi All I am very new to C and would appreciate your help. I am trying to create a program which reads a file (a list of numbers) and prints to the screen those which are higher than 0.7. Does anyone know how to do this? So far I am …

Software Development c++
Member Avatar for DEMWilson
0
96
Member Avatar for Kcin

For i = 100 To 2 Step -1 MyStr = Trim$(Replace(MyStr, Space(i), Space(1))) Next I dont understand:sad: the part where "Step -1" is used, and this part: "(MyStr, Space(i), Space(1)))" plz help explaining this to me. THx in advance;)

Software Development visual-basic
Member Avatar for scudzilla
0
93
Member Avatar for covertx

Hey all, I'm trying what must be the very simplest of tasks but I can't work out how to get my binary string to a textbox! Any suggestions? [CODE] //Existing string from another text box "rev" MemoryStream ms_memStream = new MemoryStream(); BinaryWriter br_binaryWriter = new BinaryWriter(ms_memStream); try { br_binaryWriter.Write(rev); } …

Software Development
Member Avatar for Killer_Typo
0
117
Member Avatar for Osama Mehtab

hi everybody, dayz back i've posted the intro thread I'm really needing ur help people to consult C++ as one of the core courses of my engineering Program tell me how can u help or just suggest me right now as I 'm a beginner:confused:

Software Development c++ engineering
Member Avatar for WaltP
0
83
Member Avatar for ssthrissur

[COLOR=#000000]C program to create a calculator. The program will accept an arithmetic expression (assumed to be valid expression of only +, -, *, /, 1/x, and % operations) from the user. Evaluate the expression and display the results. Including the above functions, this calculate should provide the temporary buffer (memory …

Software Development c
Member Avatar for WaltP
0
109
Member Avatar for ab3ad

hi i'm student in university i try to do my homework to simulate FCFS and RR i need ur help to tell me if my answer good or :sad: Qustion is: the project is to write a program to simulate FCFS and RR without having any i/o, all processes have …

Software Development c queue
Member Avatar for Salem
0
139
Member Avatar for maverick786

I am attempting to search a list to check whether an item is already present before inserting. I am having trouble with the pointers; I understand that I need to set the pointer to the start of list but I keep getting compilation errors. Can anyone help? Here is my …

Software Development c data-structure first-post linked-list
Member Avatar for Lerner
0
79
Member Avatar for aaisha

i've been given an assignment to writet he coding for a calculator. more the functions,higher the score in the assignment! i'll use the switch statement nd read through math.h. wat other suggestions can u guys giv me??there isnt' any limit to the no. of inputs we can take! can ny1 …

Software Development c
Member Avatar for Aia
0
100
Member Avatar for Micheal R Jorda

[B]Hi every one[/B] I have an application that gives the handle and information about the window that mouse goes over it I know the stupid way to get the handle or any information from the teXt that holds it and it's Open Notepad and write to it So What i …

Software Development visual-basic
Member Avatar for aparnesh
0
82
Member Avatar for i m gr8

Hello, I am university student and currently we are being thaught C++ and are studying Object Oriented Programming. Since last few weeks what ever assignment I get , My program always end up with thread stop error while runtime and I cant find the reason. I have to currently submit …

Software Development c c# c++
Member Avatar for iamthwee
0
484
Member Avatar for vishalkhialani

Hi, I am about to start learning java. I would like to ask which development tool is better. Eclipse or netbeans ? Thanks, Vishal

Software Development java java-netbeans
Member Avatar for iamthwee
0
91
Member Avatar for kxh29

[B]Good Day to All:[/B] [B]I need to know if there is a code snippet somewher that will allow me to take a users START DATE and give them a maximum of seven(7) for a END DATE.[/B] [B]Problem is, on my AIX box, we DO NOT HAVE THE Date::Calc Perl Module.[/B] …

Software Development perl
Member Avatar for kxh29
0
139
Member Avatar for wujianwei

I have been wondering the definition... I mean, [B]Are both 00123 and 12345 five-digit numbers?[/B]

Software Development c++
Member Avatar for Aia
0
104
Member Avatar for techie82

Hello all I'm a fresher to Microcontroller programming. I have defined certain global variables that I need to store at consecutive memory locations, say starting from 0x8000h . Will appreciate if anyone can give me the syntax / instructions to go about the same. thanks techie

Software Development c c# c++
Member Avatar for Infarction
0
115
Member Avatar for BaD-AiM

i need to know how to generate random integers in c++

Software Development c++
Member Avatar for naya22
0
98
Member Avatar for varun.coolmax

I need help in updating a database in MS access using VB....i need only 8 entrises (rows) in the database...all i need to do is delete all the rows in the database and then add the new data....i am delelting the whole data since the no of new entries(rows) maybe …

Software Development visual-basic
Member Avatar for varun.coolmax
0
72
Member Avatar for best

i tried writing a program whose output would display the letter p in a (3 by 12) that is 3 rows and 12 columns, didnot succeed. could you help me

Software Development c
Member Avatar for Aia
0
86
Member Avatar for kaushalsahil09

please tell me how I can execute c++ program frm java I had tried this one but it does`t work /*import java.io.*; public class exe1 { public static void main(String[] arg) { try { Runtime rt = Runtime.getRuntime(); //int s=rt.availableProcessors(); Process prcs =rt.exec("inventry.exe"); InputStreamReader isr =new InputStreamReader(prcs.getInputStream()); BufferedReader br = …

Software Development c++ java
Member Avatar for daninator09
0
632
Member Avatar for ithelp

Hello C/C++ experts, I write the following code [code] int a[10]; int b[10]; // initiliaze all element of array a and b to 0. a[11]=255; [/code] Neither the program crashes nor the value of b[0] becomes 255 What could be the reason?

Software Development c++
Member Avatar for vijayan121
0
114
Member Avatar for earlyriser

Hello. I'm trying to read an input file to build a list formed by structs. The input file has this format: 1 2,15 3,0 2 1,15 3,8 ... the first number of each line will be in what I call NOMBRE, and for the rest of the numbers in the …

Software Development c++
Member Avatar for earlyriser
0
80

The End.