19,876 Topics

Member Avatar for
Member Avatar for zandiago

Write a c++ program that will read in an unknown number of employee records from a text file call “PAYDATA3.TXT”. Each employees record is a string of 47 characters (with spaces), set up as follows: Positions Data Description 0 – 14 Last Name (15 characters) 15 -24 First name (10 …

Member Avatar for zandiago
0
162
Member Avatar for locy
Member Avatar for Lardmeister
0
149
Member Avatar for daniweb2013

Hello, I'm trying to make SNAKE (Game) under C++ with using #include <graphics.h> Can anyone help me. Thanks

Member Avatar for PirateTUX
0
368
Member Avatar for raja.geek

hi all, i would like to know the all possible command line options of GGCOV tool... ex:1. ggcov program name 2.ggcov -o dir if anyone of you know this,plz send me the details... Thanks in advance..... RajasekharReddy.B

Member Avatar for Salem
0
117
Member Avatar for aznstyles408

So here's my problem. I need to copy paste two 2d arrays together to form a new one. So in this function I allocate memory for the new array and then I use the memcpy function to start copying. The first copy goes fine. But i am not sure how …

Member Avatar for Salem
0
65
Member Avatar for bluejay_1111

New to the site, just need some help on this... Most of it is done, I just need to turn the wordInfo struct into a full-blown .h class. Any thoughts? It's attached... Appreciate it!

Member Avatar for bluejay_1111
0
186
Member Avatar for jaepi

Hello there, do you have any idea where to get a good reference for the function fseek64? Or does anyone of you here knows this function or is there really a fseek64 function? lol. Thanks!

Member Avatar for jaepi
0
1K
Member Avatar for pedro martinez

Hi, I need help to sort a file. I am able to open the file, but the lines of the text file are separate by commas and I have to separate the lines into 4 differents string of characters. I have problems separating the string and sorting them by name. …

Member Avatar for Aia
0
92
Member Avatar for abhi07

a c program to convert lower case text to upper case using strlen (). a c prog to arrange names in alphabetical orderusing strcpy (). a c prog to check wether given number is prime or not. to find length of sring without using library function. to check wether etered …

Member Avatar for ChaseVoid
0
267
Member Avatar for jayasharma

[B] Hi All, I need very urgent help regarding reading tiff file and apply mean filter on it. I will be really thankfull to you if u can provide me C source code. Please help me..... Regards, Jaya Sharma[/B]

Member Avatar for Salem
0
98
Member Avatar for rylix01

I need to write a C library routines to allow user to process images to get different effects like inverting colors and scrolling vertically and horizontally. for inverting colors, we need to write a function- for scrolling vertically and horizontally, we need to write a procedure- and call these function …

Member Avatar for rylix01
0
129
Member Avatar for gallantmon1

I'm still confused with file i/o here and needs a bit of help on fixing the codes I have. Can anyone offer some help? I have two codes here that sort of work together. One is a database type of code that is supposed to get input form the user …

Member Avatar for gallantmon1
0
249
Member Avatar for alex_bhes14

everyone here can give me the code of this sample program.. enter a positive number: 100 your inpit is: one hundred.. i allowed to use the do...while loop.. if every one here who can send me the code of this sample output.. send it to [keep it on the site].. …

Member Avatar for Narue
0
46
Member Avatar for gallantmon1

I want to do a binary tree code that outputs an actual tree, but I'm a little lost right now and don't know what to do. I did this code in Dev C++ Here's the code so far: [code]#include<stdio.h> #include<stdlib.h> #include<string.h> #include<strings.h> #define TRUE 1 #define FALSE 0 int size; …

Member Avatar for Narue
0
149
Member Avatar for restrooms

can someone help me on editing my program. it is a one year calendar and im now stock. and i did;nt put default bec. it will not run. #include <stdio.h> #include <conio.h> int a,b,c; int main() { clrscr(); printf("Enter Number:"); scanf("%d",&c); switch(c) { case 1: printf("\t\t\tJanuary 2007"); printf("\n\t"); for(b=1;b<=51; b++) …

Member Avatar for iamthwee
0
86
Member Avatar for Duki

So, I've ordered two separate books for studying C#, and am sending them both back. One was Murach's C# 2005 and the other is Illustrated C# 2005 by Daniel Solis. Neither of them were written the way I like to learn; I prefer a textbook style of learning with exercises …

Member Avatar for Samson_ZXL
0
70
Member Avatar for rpjanaka

hi all, i have Theora video codec source code (a C library) and i want to debug it using GDB in linux. but if its developers have not provide debuging enable option, how can i manualy chnaged the make file for unabling debuging optins. please can anyone help me to …

Member Avatar for dwks
0
65
Member Avatar for pdwivedi

I have several .CPP and .H fles which i want to compile together. These files are used for PLC and Oracle database communication. when i try to compile these files it says following header files are missing .. [COLOR=red]<occi.h>[/COLOR] [COLOR=red]<sys/msg.h>[/COLOR] [COLOR=red]<sys/time.h>[/COLOR] [COLOR=red]<sys/stat.h>[/COLOR] [COLOR=red]<signal.h>[/COLOR] How can I recover these files & …

Member Avatar for dwks
0
106
Member Avatar for locy

can spmeone help me with any c compiler avaliable that i can easy download and the keys that i can use for the command.

Member Avatar for dwks
0
148
Member Avatar for sneha_venky

for my school project , i need a very simple game (can be textbased ) i need help pleasseeeeeee.........................:'(

Member Avatar for vijayan121
0
218
Member Avatar for Linda1

I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to …

Member Avatar for Linda1
0
129
Member Avatar for towhoe260

This is my assignment and im pretty confused. Our book is a horrible book, and i cant seem to understand much of it. So i was hoping maybe someone could point me in the right direction in getting started. tHis is what we are expected to do. Write a program …

Member Avatar for Dave Sinkula
0
145
Member Avatar for bc030400412

Write a TSR program that changes the background color of the screen to red every 5 second and then white next 5 second, And this continues until you press ‘Q’ It should not modify the text displayed on the screen. Hint: 1_ Intercept Keyboard interrupt (0x09H) 2_ Use video text …

Member Avatar for Ancient Dragon
0
284
Member Avatar for FEARmike21

I have been checking on others letter count programs and none so far are like mine so I'm now making my own thread. My assignment, which is due tomorrow! *Yikes* Is for me to make a text file in notepad and then important that to my code. Then, I has …

Member Avatar for Salem
0
170
Member Avatar for winky

Hey all, I am new to C/C++ and this week we just started object oriented C++. Before I dive into it I want to have a good understanding of simulating object oriented programming with C. Anyway, I believe I have doctored the code to where the queue and the Stack …

Member Avatar for Salem
0
122
Member Avatar for eddiekash

i would like some examples of simple c or c++ codes that can shut down a computer like say at exactly 9pm. could anyone give me a sample c code that can pop up on the screen warning that the computer will shut down in 20 minutes.

Member Avatar for ithelp
0
88
Member Avatar for zandiago

[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; …

Member Avatar for zandiago
0
7K
Member Avatar for skyah

Hello, I have to write a few programs. I have an attachment of what i have so far. Can anyone direct me in the right direction.

Member Avatar for Narue
0
103
Member Avatar for zandiago

Write a c++ program that will read in, from a file entitled "word.txt", an unknown number of single words (no spaces ). The program will then print out the word, move 2 tabs to the right, display the word with the first letter removed, move 2 tabs to the right, …

Member Avatar for zandiago
0
413
Member Avatar for ba19

hai..can anyone help me on this task...i might need some sample on doing it.TQ Tasks: 1 You are expected to write a program that simulates CPU scheduling algorithms (SJF and SRTF). 2 The program will request the user to set the the number of processes to be selected for execution. …

Member Avatar for stymiee
-1
524
Member Avatar for baberca

#include<stdio.h> #include<conio.h> #define n 20 main() { int d,p; int b,i,n,bt[20],at[20],num; int arr[20]; clrscr(); printf("ENTER THE NUMBER OF PROCESSES: "); scanf("%d",&n); for(i=0;i<n;i++) { gotoxy(10,5); printf("PROCESS: %d",i+1); gotoxy(25,5); printf("BURST TIME : "); scanf("%d",&bt[d]); gotoxy(50,5); printf("ARRIVAL TIME :"); scanf("%d",&at[p]); } gotoxy(29,20); printf("SELECT ALGORITHM"); gotoxy(29,25); printf("\n[1] - SJF"); gotoxy(29,30); printf("\n[2] - SRTF"); gotoxy(29,35); …

Member Avatar for stymiee
1
599
Member Avatar for ksri
Member Avatar for Ancient Dragon
0
162
Member Avatar for zandiago

Good day. I recently purchased a TI-84 calculator and realized that it has some programming commands as a c++ compiler would. Is it possible to load a c++ program on a ti-84 calculator...thx

Member Avatar for zandiago
0
100
Member Avatar for mooseguy

I am having troubles with a program I wrote to count letters in a string. Here is the program: [code=C]#include <stdio.h> #include <stdlib.h> #include <string.h> int i; int length; int ascii; char cipher[3]; int letters[26]; int main() { char cipher[10] = "ABC"; /*Or an inputted variable, but that's not important …

Member Avatar for Aia
0
83
Member Avatar for furpacino

i wrote a program with switch statements and now i have to write with while loop the same programram. Please say me where i am worng. my if program: [code=c] char letter ; printf("enter the antibiotic sample >>>>> "); scanf("%c", &letter); switch (letter) { case 'N': case 'n': printf("Perform standard …

Member Avatar for Ancient Dragon
0
160
Member Avatar for Exsiss

I am currently trying to write a program that: [quote]Write a program to count and print out the number of copies of the letter 'e' that are found in a pre-specified string. (By "pre-specified", I mean you should declare and initialize the string right in your program, rather than reading …

Member Avatar for Aia
0
85
Member Avatar for restrooms

HI CAN U PLS HELP ME IN ADDING SOMETHING TO THIS PROGRAM TO BE LOOK GOOD. HERES THE PROGRAM I'VE MADE. #include <stdio.h> #include <conio.h> int a,b,c; int main() { clrscr(); printf("Enter Number:"); scanf("%d",&c); switch(c) { case 1: printf("\t\t\tJanuary 2007"); printf("\n\t"); for(b=1;b<=51; b++) { if(b==51) printf("=\n"); else printf("="); gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t"); …

Member Avatar for twomers
0
225
Member Avatar for kohkohkoh

i have done a simple program, which i asked..(don't know how many days ago.) but i find that there is a problem.. if i give an input (for example) 1234 it shall reverse back 4321 (it does) when i key in 100, by right it should return 001, but it …

Member Avatar for Narue
0
181
Member Avatar for restrooms

im new about this fibonacci can someone post a sample program of fibonacci so i can see on how it was done. pls thanks in advance

Member Avatar for Salem
0
59
Member Avatar for Lost in Code...

Hello, When I run my code below, it lets me pick a number and seems to go through my first IF statement fine. However, after I get through my first IF, I'm wanting it to then add to my tries so that when I go over 5 or more tries, …

Member Avatar for ChaseVoid
0
121
Member Avatar for baberca

[code] #include<stdio.h> #include<conio.h> #define n 20 main() { int d,p; int b,i,n,bt[20],at[20],num; int arr[20]; clrscr(); printf("ENTER THE NUMBER OF PROCESSES: "); scanf("%d",&n); for(i=0;i<n;i++) { gotoxy(10,5); printf("PROCESS: %d",i+1); gotoxy(25,5); printf("BURST TIME : "); scanf("%d",&bt[d]); gotoxy(50,5); printf("ARRIVAL TIME :"); scanf("%d",&at[p]); } gotoxy(29,20); printf("SELECT ALGORITHM"); gotoxy(29,25); printf("\n[1] - SJF"); gotoxy(29,30); printf("\n[2] - SRTF"); …

Member Avatar for Salem
0
306
Member Avatar for ITapprentice

I'm back and I 've changed my code around a bit. I almost have it compiling except for one error that says there is a syntax error before inFile my struct that will hold my arrays. It's in the second for loop. I think that I have my struct declared …

Member Avatar for Aia
0
117
Member Avatar for pprabhakar

i want some information ab function pointers , just how it will work ,addvantages osf function pointers

Member Avatar for Narue
0
107
Member Avatar for woopsor

I am new to JSP and am having trouble with an if statement. [code=jsp] <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </c:if> [/code] The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax …

Member Avatar for woopsor
0
68
Member Avatar for pdwivedi

I have several .CPP and .H fles which i want to compile together. These files are used for PLC and Oracle database communication. How can i compile these files? I have Borland 2006 C++ IDE, also VC++ IDE. Please help. Thanks in advance. Prashnat

Member Avatar for Ancient Dragon
-1
72
Member Avatar for ITapprentice

I've seen tons of examples, but I can't seem to find what I need. I'm pretty new to programming, only been doing it for 9 months. Here's what I'm trying to do. I'm loading a file with the below info. 12 Item1 15 1 Item2 10 1 Item3 1 2 …

Member Avatar for iamthwee
0
2K
Member Avatar for koyong

[code=c] #include <stdio.h> #include <string.h> typedef struct { char item[50]; int date[15]; float price[5]; int amount[10]; float total[10]; }EXPENSES; EXPENSES aExpenses; int getOption(); void input(); void viewAll(); void del(); void edit(); int main (void) { int done = 0; int option; //while (!done) option = getOption(); if (option == 5) …

Member Avatar for hilia
0
272
Member Avatar for CaliVagabond

I've been tring unsuccessfully to find information on what each language, C and PHP, have to offer in terms of working with MySQL. Just wondering if anyone out there has preference for one or the other and why. I understand that PHP is supposed to have alot of built-in functionality …

Member Avatar for iamthwee
0
117
Member Avatar for terminateproces

Dear board, I'm (trying) to make lil socket app. Its a server app thats supposed to echo back the text I type to it. Problem is, when I telnet to it (i want telnet to be my client) it only accepts one character and spits back only one character. Any …

0
58
Member Avatar for shruthi.j

Please send a sollution to this . I have a csv file named file.csv. I need to read that using array and then sort them based on the column. please can you help in the sorting technique.

Member Avatar for Ancient Dragon
0
110

The End.