199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for peter_budo

Hi my name is Peter and I'm looking for somebody who can help me to understand how to read from external file without "destroing" existing inforamtion inside. whole staff is based on book example which i'm trying to extend. I have a programm which is working with database of 3 …

Member Avatar for peter_budo
0
158
Member Avatar for Nyika

When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function?

Member Avatar for Tresa
0
84
Member Avatar for Mooonky

I have to make a C program read ordinary text (a sequence of lines) from the program's standard input, and print it with each line reversed from left to right. It has to be no longer than 80 symbols and it should read until it gets an EOF. Im stumped …

Member Avatar for anastacia
0
158
Member Avatar for netjet

[i]editing function messed up this post. For more information, feel free to PM me. Sorry about that! --alc6379[/i]

Member Avatar for netjet
0
152
Member Avatar for serfurj

i've been reading a lot of the posts here to help me learn C. the problem is, much of the code is written for other compilers (i use gcc). i didn't know there was compiler-specific code until i tried to compile code from questions asked here. this seems so backwards, …

Member Avatar for serfurj
0
158
Member Avatar for k1d

SHORTEST-JOB-FIRST , PRIORITY , ROUND ROBIN I need the idea of each of the above algorithms as flow chart??? please help me

Member Avatar for k1d
0
139
Member Avatar for sangoku22

I am working on a program that asks for 2 number between 1 and 100. Its supposed to say how much even numbers are in between these two numbers. Then I need it to list out all the even numbers between those numbers... So far I got it to calculate …

Member Avatar for sangoku22
0
220
Member Avatar for twill9279

Hello, I'm new. I'm a teacher (not a programmer), but I would like to get a little more serious about hobby programming. I have Visual Basic 6.0 Working Model (this came with one of the programing books I bought for a college class a few years back). Unfortunately, I cannot …

Member Avatar for jwenting
0
268
Member Avatar for riturajraina

Hi! I am developing a project in which i want to run 2 programs simultaneously in such a way that when the user runs 1st program,the 2nd program gets called from the 1st program and now both the 1st program and the 2nd program start executing simultaneously. For ex :Suppose …

Member Avatar for varunrathi
0
429
Member Avatar for mikeps

I am getting a syntax error report from an UPDATE using two tables in a MYSQL db. :cry: This must be my mistake but I can't see it and have changed around many times now. Any ideas to help me resolve this welcome. Statement: UPDATE hole,tee SET hole.hx=tee.tnx where hole.hid=tee.hid; …

Member Avatar for mikeps
0
162
Member Avatar for George2

Hello everyone, I am using read method of InputStream to read a stream from a remote machine. The network connection is not very stable (for example, a wireless network whose the signal strength is relatively low). I am wondering if read method returns -1 (which indicates the end of the …

Member Avatar for George2
0
145
Member Avatar for justbboying

hi .... i have written a programm which solves the math equation : x = -b +- square root of b ^ 2 - 4 (a)(c) all / 2(a) programm is really short since am still a beginner so heer it is : import java.awt.*; import java.applet.Applet; public class MathEqu …

Member Avatar for justbboying
0
136
Member Avatar for tyalangan

hey everyone. School is finally over (heck yes!) and next semester I'm moving onto C++, kinda nerve recking. I don't have a good C backround yet. So I'm working on some problems from our text book over the holidays. (If anyone has some interesting problems/programs that I could practice they …

Member Avatar for Dave Sinkula
0
138
Member Avatar for Marivel

Yeah, it's your typical homework help topic, but the problem is this is stuff we NEVER COVERED IN CLASS and it was NOT IN OUR BOOK, even our TA can't figure out why our professor assigned this to our 101 class. I have a good chunk of it done, I …

Member Avatar for britt_boy
0
213
Member Avatar for jifiii

Hello, I am trying to write a tee filter in C language, almost like the UNIX utility. But I have no idea where to begin can anybody give me a direction I should start in.

Member Avatar for alc6379
0
120
Member Avatar for irish

I am taking a class in C and I am having a problem bringing an int through scanf. I have to create a function that will check a date in this format (MMDDYY). So I have set up a scanf for the users input and then I bring it into …

Member Avatar for vegaseat
0
158
Member Avatar for fero45

Hi Integers ahve a range from -32.767 to +32,767. How come I can use the following code: int a = 1000000; int b = 5000000; int c = a + b; cout << c << endl; ... and it works? Thanks Frank

Member Avatar for fero45
0
153
Member Avatar for skeet123

Can someone point me in the right direction on implementing a merge sort. Here is what the main program will look like. THanks. [CODE]int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if …

Member Avatar for vegaseat
0
189
Member Avatar for KittyGirl

I'm writing a program that asks the user to input 3 numbers, then outputs the shape of the triangle. This is what I have so far, but it still doesn't work. Can someone help? Thanks! [CODE]#include <iostream> using namespace std; enum triangleType {scalene, isosceles, equilateral, noTriangle}; void triangleShape (int shape); …

Member Avatar for jwenting
0
195
Member Avatar for dalaharp

hi, in turbo C the maximum array size i am able to specify is array[250][250].. what should i do to enlarge this size to say..array[512][512].. i dont know a thing about memory allocation, so please help me out/.. :-|

Member Avatar for vegaseat
0
166
Member Avatar for sridarravi

I am new to C++ and so how do i start my first programs. Can some one tell me what i need to do first. Also can someone send a free online C++ book?

Member Avatar for vegaseat
0
120
Member Avatar for tyalangan

Hey everyone. Been doing C for a little while now and this website has helped me in advancing my knowledge and skills in C programming. I have another question now... it's really bugging me actually... I'm trying to make a program basically just encode and decode. It seems too simple …

Member Avatar for vegaseat
0
161
Member Avatar for dowens3rd

since no one replied to my first posting I am trying again. This time I was able to take a set length (4) number and sort its digits in order. Example make 5961 output 1659. Can anyone tell me how to do this without limiting the length of the number? …

Member Avatar for Dave Sinkula
0
147
Member Avatar for CTBinCCP

hi guys, im new here, i have a project that i have to do but cannot complete... Write a program that prompts the user for a number from 1-9. Then display all of the numbers from 1 to 100 except for any numbers that are evenly divisible by the user’s …

Member Avatar for CTBinCCP
0
141
Member Avatar for auronvi

Ok, I'm sitting here in my CIS class trying to figure out how to move words put in my character array. The program is, sorting the monthly rainfall in order from highest to lowest, organizing the months along with it. I have one array of ints and another character array. …

Member Avatar for auronvi
0
124
Member Avatar for cgre0205

I AM RUNNING A PROGRAM THAT DEALS WITH TEXT FILES IN NOTEPAD. I TYPE IN A FAKE SSN AND THE PROGRAM IS TO READ A LIST OF FILES FROM student course. I AM GETTING AN ERROR MESSAGE TELLING ME THAT PROGRAM CAN'T READ FILE. TWO EX OF SSN'S ARE 201235678 …

Member Avatar for alc6379
0
187
Member Avatar for Jakester_101

hi ive been workingon some For loops an While Loops and Switch statements and i need so help with this one problem if you could help me that would be grate ive tried realy hard to do this on my own but cant figure it out thanks for helping This …

Member Avatar for alc6379
0
323
Member Avatar for rangers10

hi, just a quick question i have created a program to input 6 numbers, but the problem is that i need it to subract the highest and lowest numbers then add the remaining numbers left. im new to "c" and cant figure this out i just need someone to point …

Member Avatar for alc6379
0
163
Member Avatar for freesoft_2000

Hi everyone, I have an application that i need to distribute as a jar but i have no idea how to create the jar archive as well as something called the manifest file. Basically i have only one class and the main is in that class itself. The path of …

Member Avatar for jwenting
0
276
Member Avatar for jeannette1960

I need help with the source code that I am going to attach. I have all of the pieces but I cannot figure out to put the pieces together. I am to ( 1) have a display showing denominations of money accepted, total amount deposited, price of a soda, and …

Member Avatar for Dave Sinkula
0
244
Member Avatar for missy

i am trying to avg scores but i keep getting errors, can someone please help me. [code] #include "stdafx.h" #include <iostream> using namespace std; const int SIZE =3; int main() { int sum=0; int tests[SIZE]={0}; float average; char terminate; cout<<" Enter test1:"; cin>> tests[0]; cout<<"Enter test2:"; cin>> tests[1]; cout<<" Enter …

Member Avatar for vegaseat
0
126
Member Avatar for Luminus

Please. I'm writing a Test Engine Software and I have a big issue. I have a large question database about 1000 questions and I need to load 50 random questions for each test instance. i.e Each time a user runs the test, 50 DISTINCT questions will be loaded. They should …

Member Avatar for Luminus
0
78
Member Avatar for missy

this is the beginner again how do u display one of three user-selected shapes, ('T'=triangle, 'D'=diamond, or 'R'=rectangle and 'X' to terminate). using a switch statement. please help me with the following. prompt user to choose a shape, using a switch statement, then, choose the appropriate code/function required to prompt …

Member Avatar for jwenting
0
101
Member Avatar for gallas

I have a silly problem. I want to make a class (let's call it Classone) that has an object that's an instance of Classtwo as an attribute. So far so good, but when Classtwo has an attribute that's an instance of Classone, I get a compilationerror. I would appreciate if …

Member Avatar for jwenting
0
198
Member Avatar for arrr matey

Me and my friend need to make a license plate generator program as a final project for our c++ class. We're trying to make it so it outputs 6 random numbers and letters. I'm gonna try to make it pick 6 random numbers between 0 and 35. If it is …

Member Avatar for arrr matey
0
93
Member Avatar for lizjci

im studying programming fundamentals..I dont know what is the commands and syntax of c language, pls can u give me some definition and information about c language...thnks!!!!!!!!! ;)

Member Avatar for Sphyenx
0
714
Member Avatar for pizzafiend

I have an old BASIC program which I unfortunately no longer have a copy of. I do, however, have the original source code in a research report which I have scanned onto my computer and saved as a text file. I have not had any luck copying the text into …

Member Avatar for pizzafiend
0
269
Member Avatar for walljoshua

What does it mean if my program compiles but when I run it it says foating point exception (core dumped). Thanks for your help!!

Member Avatar for walljoshua
0
162
Member Avatar for nitewolf_9

Hello, I am getting a syntax error with a shell script of mine that is eluding me...I am pretty new to this so if someone could help me out I'd appreciate it. Here is the part of the script that is throwing the error: [code] #!/bin/ksh # Kismet/PCX Loader # …

Member Avatar for nitewolf_9
0
392
Member Avatar for Roopak

An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C33784 Function=Java_sun_awt_font_NativeFontWrapper_registerFonts+0x14C0 Library=C:\Program Files\Java\j2re1.4.2\bin\fontmanager.dll Current Java thread: at sun.awt.font.NativeFontWrapper.registerFonts(Native Method) - locked <0x161a9eb0> (a java.lang.Class) at sun.java2d.SunGraphicsEnvironment.addPathFonts(Unknown Source) at sun.java2d.SunGraphicsEnvironment.registerFonts(Unknown Source) at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source) at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at …

Member Avatar for freesoft_2000
0
154
Member Avatar for aminura

I am learning C++ and I have done Pointers..but I am not able to understand it well. I know what is it but I am not able to understand exactly why do we use rather where do we use it. :confused: .basically it's the practical implication of it which I …

Member Avatar for Dave Sinkula
0
105
Member Avatar for Archer

Is my code correct??? I would like to find the percentage like for example: 30pcs of 60pcs is 50%. But how do I code it??? I mean, how to code to get the PERCENTAGE... Is the formula: (num/total) * 100 ??? Is this correct: [code] for(x=0;x<3;x++) { y=total[x]; p[x]=((float)(y/grand))*100; } …

Member Avatar for Dave Sinkula
0
108
Member Avatar for SquirrelProdigy

Is reading and writing strings inside of structures possible, or must you use character arrays? Here's what I've tried; no compiler errors, but it doesn't display the text: [CODE]struct Account{ float balance; string Owner; }; int main(int argc, char *argv[]) { fstream File; Account Acc; int row; cout<<"Open or New? …

Member Avatar for SquirrelProdigy
0
142
Member Avatar for serfurj

can C programs use iostream? i've done it in C++, and read that it can be done in C, but i keep getting compilation errors. [CODE]#include <iostream> using namespace std; main() { cout << "test"; } [/CODE]

Member Avatar for jwenting
0
141
Member Avatar for far

I need some help: how can I do this: Write a program to find out how many terms of the series: 1 + 1/2 + 1/3 + 1/4 +.... are needed before the total first exceeds 5.

Member Avatar for anastacia
0
166
Member Avatar for sachin kumar

can anyone help me in reading the file names from a folder with a specific extention in VC++ enviroment. thanks in advance sachin

Member Avatar for britt_boy
0
78
Member Avatar for Vinay

Afsah Shafqat is the 14 year old girl who made the entire nation proud by breaking so many records in the field of IT, doing professional IT courses at a very young age. Afsah, in 10th grade, has been called the "Princess of Operation Badar." [img]http://img18.exs.cx/img18/289/u3qj2ee.gif[/img] She recently passed her …

Member Avatar for jwenting
0
263
Member Avatar for jasweb2002

I am writing a program that will build a graph and then find the lowest costs between any given vertices. I have the program building the graph just fine, but now I just started to write the part that will find lowest costs and I get a seg fault error. …

Member Avatar for Dave Sinkula
0
260
Member Avatar for MrScruff

Hey people, Im just wondering what type of layout you would recommend to set up a grid of labels and sliders: This is the format that i would like them to be in. [CENTER]JLabel - Jslider - JLabel[/CENTER] [CENTER]JLabel - Jslider - JLabel[/CENTER] [CENTER]Slider Name - Slider - Slider Value[/CENTER] …

Member Avatar for MrScruff
0
132
Member Avatar for mellinda

hya, i had an argument with someone on my chat line and i was banned. thats has been nearly a week now, every time am logging to da chat room, it said "i was autokill by...."i really want to go back to that chat room. please helppp. thanks a lotxxx …

Member Avatar for mellinda
0
102

The End.