15,539 Topics
| |
I'm having trouble with syntax errors before "else" when I compile My code looks like this: [CODE]if (x == 1) { statement1 else if (x == 2) statement2 else if (x == 3) statement3 } else statement4[/CODE] It gives me the errors on the middle else's. I know its something … | |
Hello, I'm new to this site and this is my first post. I got an assignment where I have to do a QuickSort on 100,000 numbers first and then combine QuickSort and BubbleSort so that the BubbleSort comes in for the last 1,000 numbers. The information is to be exported … | |
I have a program for a 5-way sort merge. I can get the program to read from the original file of 1,000,000 records and write them to 5 tempoary files (File0 thru File4). Then, I am suppose to close the temp files (Files 0 - 4) and open them as … | |
Alright, the book gave me a definition and I get it...I know what it supposed to do but I have no clue on how to use it... well...the book says I can use it as power(base, exponent) = base*exponent alright, lets say i have a program looping 30 times... then … | |
How can I use this to find out if the number I imputed is odd or even??? | |
Hi, I'm trying to play with classes and I'm having trouble with a theoretical problem. I've create a 'Log' class, who creates and writes to log files. I was able to overload the << operator so that I could write to my log as follows: `Log logOne("log.txt", true, "\n" );` … | |
hello guys. :confused: just a question about vectors: (sorry if it seems stupid, but i really don't know much about vectors) is it possible to return a vector or a pointer to vector from a function? if so, how? thanks in advance. | |
I got some help on here earlier (thanks if you are reading) and its looks much better, but it still says sytex error at line 69 sidentifier "display_balances" Please, what is wrong with this function, or is something else interferring. Thanks. Will | |
Hello all I have a problem at hand. I need to work on a C code which will read multiple images in RAW format (greyscale) and do an AND operation of corresponding pixels of all the images. Can someone help out on this? I am a novice and would definitely … | |
Hi Guys/Gals, Is anyone of you using/reading the above book by Robert Sedgewick? I am trying to write some graph algorithms using C and trying to learn it using the above book. Having some problems. It would be great if you are also using the book or have already mastered … | |
I need to write a string field-char customer_name[20]- in a structure data type to a file using fprintf,fscanf,scanf. I failed to use the below syntax. Please I need to not go outside scanf,fprintf,printf . /* Book name : The prodessional programmers guide to C File name : E:\programs\tc\iti01\ch09\main\01setupm.c Program discription: … | |
[URL]http://www.astercity.net/~28im42ga/test2.rar[/URL] i`ve got a problem for most of You it`s probably very simple so PLEASE help me!! i`ve made a modal window but any buttons placed there don`t work, it`s possible to click on them but nothing happens, the source code is not called here is an exapmle source code: … | |
I have a structure set up from some earlier help. Now when I try to write the data to the disk I only write zero's. I have no idea what I have done wrong or why this is happening. I realize this is not the complete program but shows the … | |
I have to apologize to the moderators that I was not sure where I should post my question. So if this is wrong fourm feel free to move it to a more suitable place, thank you. First of all I like to thank everyone here for their help in last … | |
hallo reader, I ve been trying to improve my algorithms skills and tools lately. So, i ve read about the big O and little o notations, but i couldnt really get them Especially the little o.. so if you could explain them or even direct me to a link where … | |
Hi, does anybody have an algorithm in C that approximates the probnorm functions that one finds in SAS, for example. I'd hate to build the table from scratch. Probnorm function is the P(X <= x) where X ~ N(mu,sigma^2) So, Probnorm(1.96) = 0.9750 and so forth. Moderator edit: No requests … | |
hi guys! please help me... :cry: i really don't know how to do this... part of the specs in my program is to show values after i used some formulas...but i need to make it such that i can scroll down/up to view my results, since i'll need to display … | |
Hi, I wrote a program in C and when I compiled, got the following message (word for word): Error: Unresolved external '_EDGE' referenced from C:\Graph\Test1.OBJ The funny thing is that the error is not the usual compiling error that tells me which line of my program has the error. That … | |
I am writing a Win32 Console application and I need to change the font size to 18x10 pixels. I think this can be done with a function in windows.h but Im not sure which one or how to do it. | |
i am trying to make a program that displays to the screen the prime factors of a given number. i have it all the way to the prime number checking i dont quite understand how to extract the prime numbers any help would be much appreciated | |
should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR] in declaring constant variables?? which one is better? when should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR]? for example when i declare a hexadecimal (0x01), should i use [COLOR=Green]#define [/COLOR]or [COLOR=Black]const[/COLOR]? | |
hey all, my problem is this, i recently learned how to play a midi file in the code snipet area. but i couldn't figure out how to get the program to switch sound files when i want. idealy i would like to have one file start out in the beginning … | |
How would I find the highest salary salesperson of a list of salespersons | |
How would I go about making a loop to search through the entire RAM? For the purpose of finding lost data, or saving it to disk for later examination...(i'd like to code some sort of ram viewer similar to a hex editor). Thanks! | |
I am creating a program that automatically inputs a file into it simply by the user entering a name. the program then marks the file by incrementing a counter everytime a key word is found. I think is can be done by string find but i'm not sure how to … | |
Hello, i want to write a program to print out a table showing time in 0.1 sec, soldier’s position, arrow’s position, and the distance in feet between the arrow and the soldier every tenth of a second until the arrow hits the soldier or he escapes, if he was X … | |
I want to create a program and send the information i come up with to a data file which already has something in it for Ex. in my data file I have student names and other stuff and in my program i'll find the letter grade of the numeric score … | |
I m trying to design a animation like code....somewhat like object is moving from one place to other.....i need just to clear out any specific portion of the screen...is there any command in C for such ....and if not wat else i can do to erase a specific portion ? | |
I have a Distance Structure that includes Miles, Feet, and Inches. The user inputs these amounts 3 digits for miles, 4 digits for feet and 2 digits for inches. Not all of the time the user will input the full number of digits, when the user doesn't input the full … | |
Hi… Please I Need To Know How can I Display All The Topics Which I Added By Sorting In Option 3? I Programmed The Option (Case3) 3 To Display All Da Topics but I Need To Put Them In Order. Please Can Anyone help me In Adding The Code In … |
The End.