199,114 Archived Topics
Remove Filter ![]() | |
Hi every1, i have trouble doing my homework. Could anyone help. the probelm is everytime when i set the degree and it prints out the last degree i entered. when i use the default constructor (withour entering any infomation) to create the UndergradStudent instance, it doesn't allow me to set … | |
Write a C/C++ program which consists of a user-define function Prime. This function will take a number and check that the number is prime or not if the number is prime Display The number is Prime other wise display The number is not Prime Call this function in main program. | |
I am unable to debug the following code. I can't find any errors here. I am getting the button but after clicking on it, only [b]Time Remaining: 10000 msecs[/b] is being displayed. In Firefox 2.0.0.3: I checked the error console, it shows [b]timedCount is not defined[/b] on line [b]t = … | |
Hi all, I have faced some problem ina coding. What I have to do is just to replace all "big" with "small" from the string " The world is big. there are big cities. Bigger city mean bigger population. Towns are getting smaller". My code is [code=c] #include<stdlib.h> #include<stdio.h> #include<string.h> … | |
I am using HLA to learn assembly. I choosen HLA because of different reason. Main topic: I try to do a HLA script using try..exception..endtry statement but i have error... can u tell me where i mixed up[CODE] program driver; #include("stdlib.hhf"); #include("excepts.hhf"); static goodinteger: int32; i:int32; begin driver; repeat mov(false,goodinteger); … | |
Hi I've just picked up a copy of SAMS teach yourself C in 21 days (I dont think Ill finish it that quickly) because I wanted to get into programming. I've worked through the first chapter, but keep enountering a problem: my programs exit before I can see what they … | |
Can someone help me fix this? After I compile I get ilegal start of expression for the line that says public String getBook(). I cannot see why this is not allowed. My output should be as follows: Jane Doe Long night 12.5 Long Night by Jane Doe I am supposed … | |
How do i find the dimensions of a button? Example: I want to find the width of the start button, and the height and then assign them to seperate ints. int width=WindowWidth(Start); int height=WindowHeight(Start); The abbove functions are totally made up, so they are just examples... | |
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 … | |
I want to create a function or procedure to compute the sin formula using taylor method. can you help me pls thnx | |
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. … | |
Hi there all, Apologies if something similar has been posted before but I tried a search and couldn't find anything. I have a combobox with 2 options "OPEN" and "CLOSED". Tied to this combo box I have a scriptlet which I want to select the appropriate value of the combo … | |
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 … ![]() | |
I recently installed CrackerTracker v5.x in my forums (phpbb2 with no mods, running a custom interface) and I'm having a massive amount of parsing errors. Examples: Parse error: parse error, unexpected ',' in /forum/includes/functions_post.php on line 103 [code]103: }$lang, $phpEx, $phpbb_root_path; [/code] Parse error: parse error, unexpected T_INCLUDE_ONCE in /forum/includes/page_tail.php … | |
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, … | |
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 >> … | |
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 … | |
I Downloaded A Game Called Hitman Blood Money On Bit Torrent And Now I Can Get It To Play What Should I Do? Email Me At <snip email> With A Detailed Answer. Cause I Suck At This. | |
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 … | |
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(); // … | |
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) { … | |
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. | |
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 | |
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 … | |
How can I get the path at run time of the VB program file that the code is run from? | |
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, … | |
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 … | |
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 … | |
I make a query and I get all the result I need but I'm stock now I wont this result to be send via email or save the result to another html file, is it' possible, thanks for all replies :sad: | |
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 … | |
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 … | |
[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 … | |
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 … | |
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, … | |
Anyone know of a work around in .Net to retain the highest possible resolution of a photo or image after compression or resizing? | |
[COLOR=#000000]In software Engineering is it Fair to say that a Preliminary user’s manual is a form of Prototype? Explain your answer.[/COLOR] <snip> | |
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 | |
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. | |
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 … | |
Hey, Is there any equivalent of conio.h for Linux??? I basically want getche to work in linux.. Is there any alternate?? | |
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 … | |
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 | |
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 … | |
Hi everyone! I'm currently working on a navigation bar for a personal website and, although transparency is working great, has a couple of problems with browsers that use... fonts that are not around the size (specifically the [I]height[/I]) of Helvetica. I basically have a [inlinecode]<div></div>{...}</li></ul>[/inlinecode] block. The first [inlinecode]<div></div>[/inlinecode] combination … | |
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 … | |
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;) | |
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); } … | |
Hi, I'm new to PHP and was wondering if anyone could help me with my problem. Basically I have an access database and have managed to create a few php scripts by looking at various tutorials and scripts on the net in php that insert, update, delete and view data … | |
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: |
The End.