15,539 Topics

Member Avatar for
Member Avatar for usausa

Hi, Can someone plz help me with copying the files contents into an array. the file contents maybe like... doit.dsp doit2.dsw doit3.cpp I want them to be copied to an array. Thank you

Member Avatar for Dogtree
0
130
Member Avatar for Ghost

Hi Everyone, I was wondering if there's a way to write a program that tells console to do certain commands. I think you can do it by using a function and writing the CP command as a string for the arguments. Thanx in advanced for your help!

Member Avatar for Ghost
0
96
Member Avatar for hemanth.balaji

How to we provide context sensitive help using win32 api. I did not understand all theat topic ids and stuff in msdn. Is there any examples on the net. I am a .hlp file to which i wanna provide context sensitive help from my project.

0
57
Member Avatar for hemanth.balaji

Hi people, I am doing a project for my college. I am doing the UI part using Win32 Api. I am learing wuite a lot from various tutorials available on the net. I am through with most of the GUI but only get stuck when resizing of controls is required. …

Member Avatar for hemanth.balaji
0
146
Member Avatar for jean

I really need some help to finish my assignment which is due 2005/05/23 I have the other header and c files but i need to do some more work ........if u can help me i would be very greatful plzzzzzzzzz this is the code that follows for exptree.c #include "exptree.h" …

Member Avatar for Dogtree
0
116
Member Avatar for dejaz

hi guys, i am stuck... we have to show wats in a file.... then at the end show the grand total of the Profits .. heres the report func.... [code]void report() { struct Prods ssg; double prof; FILE *f; f = fopen("data.dat","rb"); printf("\n\n\n==============================================================================\n"); printf("Prod# Type Description Qty Cost Price Profit\n"); …

Member Avatar for dejaz
0
230
Member Avatar for atrusmre

I am making a network application and am having some problems. I have a function that asks for username/pass and is suppose to activate a set of buttons on successful logon, however it's not working. (Logging on requires the user to press the logon button named IDC_BLOGON and then another …

0
57
Member Avatar for SquirrelProdigy

Why is it that a major class should be defined in a header file, then given a source file to define it's functions?

Member Avatar for Dogtree
0
160
Member Avatar for Auron

Hey everyone. I am not sure of any of you are familiar with the term MUD (which is Multi User Dungeon, a text-based game). If not feel free to go over to [url]www.mudconnect.com[/url] to check it out. Anyway, back to my post. What I am currently planning on doing is …

Member Avatar for Libertate
0
275
Member Avatar for maro009

hi i try to creat a _calculator and save the commands in _linked list the code compile but it crashes :sad: i attached my project i think you find the error in linkedlist.cpp in push_back(CalcCommand* data)

Member Avatar for Dogtree
0
60
Member Avatar for tat2dlady

I know you use strcmp() with strings and that if it is equal to zero, they match. But, how do you see if one string is less than the other? I want to compare SSN's to see if 12345620 is less than or greater than 123456708. Thanks for any input.

Member Avatar for Dogtree
0
1K
Member Avatar for pranavjec

hi guys, i need some help. i need one c program about a file called segy. hve to extract some information from its header(trace header) & stored it in another file to view.The information i have to extract from the trace header are inline,crossline,x coordinate & y coordinate. i wanna …

Member Avatar for Dogtree
0
192
Member Avatar for kramer147

here is the sequence i'm using for my arrow keys [code]#include<stdio.h> unsigned char keyin main() { if(square==1) {//start square putimage(285,440,ste,COPY_PUT); while((keyin=getch())!='\r') {//up arrow key if(keyin==72) {//hit up arrow keyin=getch(); square=2; }//hit up arrow }//up arrow key }//start square do {//game from start square on if(square==2) {//on square 2 putimage(285,400,ste,COPY_PUT); }//on …

Member Avatar for Dogtree
0
387
Member Avatar for CMania

hi.......We have a task to write a program in C in linux environment that takes 2 command line arguments: 1.the name of a text file that contains single-digit integer data in one line 2.an integer to be searched from the sorted version of data in file. The prgram creates a …

Member Avatar for Narue
0
218
Member Avatar for theinsaneone

Dear friends I am asking anybody to please provide me with a round robin scheduler in C programming. I have a non preemption program, but i need a preempted one. Please help.

Member Avatar for Narue
0
110
Member Avatar for winbatch

I'm trying to overload my 'Log' class so that I can pass 'endl' to it. Given the obscure nature of the compiler errors for template classes, I'm not sure what to put on the 'right hand side'. For example, these work fine. .. [code]Log & operator << (ostringstream & a) …

Member Avatar for Narue
0
1K
Member Avatar for nizar4445

hello all anybody could please tell me how to change this code to make it read from a file that has unknown no of students in it. now this [I]part[/I] of the programe read only 5 students. could you please help me to solve this problem as soon as you …

Member Avatar for nizar4445
0
255
Member Avatar for innocent_one

Hey.. Can anyone please help me? I am trying to write a round robin scheduler and so i decided that if i got a fcfs scheduler, then all i would have to do is change the process from completing in the processor to it just going into the processor for …

Member Avatar for innocent_one
0
532
Member Avatar for metalking5

please help.I need a programm in C that does what the command copy of dos does with verification.please anyone who can do it help

Member Avatar for Narue
0
78
Member Avatar for fatallah

we need to write simulation program to imitate the behavior of a single CPU system that has a preemtive RR scheduler and the collecting data regarding the operation of the simulation, create a input file to represent process arrival and service times 30 0.7 54 17.28 . . this EXP …

Member Avatar for Narue
0
261
Member Avatar for peter_budo

I'm trying to create class/header for my program which should calculate distanaces between cities declared by array "[I]use[/I]" plus arrays of there coordinates as you see in code below [CODE]// file line.h #ifndef LINE_H #define LINE_H const int cities = 6; class Line { private: string use[] = {"Phoenix", "Baton …

Member Avatar for Narue
0
156
Member Avatar for Valmont

Reference reading directly related to this post: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html Hi all. I've just started learning the ways of compression. I decided to start with the LZ algorithm. The resource I use is: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html I understand the fundamentals of parsing the incoming text. Let's call the container that …

Member Avatar for Narue
0
161
Member Avatar for tyczj

what is the header to time code isnt it; #include "pctimer.h" i keep gettin an error saying no such thing

Member Avatar for tyczj
0
280
Member Avatar for rharvison

Hi, all. Thie following is an additional step in the program I previously mentioned [and, by the way, thanks for the responses; most helpful!] The final part of this project is to create [I believe it is called a histogram] of the grade frequency distribution. The program asks for grades …

Member Avatar for rharvison
0
144
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if this piece of code can be written differently then the way I did: [code] template <class V> void sequence3(V &a, V &b, V &c) { V w; while (a > b || b > c) { if (a > b){w = …

Member Avatar for JoBe
0
181
Member Avatar for yacob_uk

Hi, I have two problems, been bugging me for a couple of days... I have a 32bit float array that has been calculated, I now need to convert it to 16bit int values to be scaled for use. I tried the code: h[N] = int (h[N]*(scale[N]) and that sort of …

Member Avatar for yacob_uk
0
166
Member Avatar for kingofpain

write a program that inputs five integers and passes them one at a time to function [B]even [/B] which uses the modulus operator to determine if an integer is even. The function should take an integer argument and output/return the answer whether the integer is true or false (hint: combination …

Member Avatar for Narue
0
33
Member Avatar for sscheell2000

i'm trying to insert and element in a list in alphabetical order last name first and then first name here is my code but not working please help [code] struct node * Inserting(struct node *tp,struct node *fp) { struct node *last = NULL; struct node *old, *start; start = fp; …

Member Avatar for Narue
0
102
Member Avatar for nucleo

I am writing to console from several threads using printf(). The process is synchronized and it works fine. The problem is that sometimes some of threads freezes (never returns ) at WriteFile() function used to implement printf() and the really strange here is that it returns and everything continues when …

Member Avatar for Narue
0
374
Member Avatar for thomasisaac

Hi, in part of some code i am using there is a message defined by: char message1[133]="Please Select Features"; And then its referenced as: feature_select=message1; And called as a perameter using: UF_UI_select_feature ( feature_select, NULL, &count, &feature_tags, &response) I was just wandering what the [133] part is. Is it just …

Member Avatar for thomasisaac
0
131

The End.