15,539 Topics

Member Avatar for
Member Avatar for fzero

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 …

Member Avatar for Dave Sinkula
0
88
Member Avatar for cymbalistic1

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 …

Member Avatar for cymbalistic1
0
98
Member Avatar for tat2dlady

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 …

0
68
Member Avatar for 40ounce68

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 …

Member Avatar for Dave Sinkula
0
131
Member Avatar for 40ounce68
Member Avatar for Narue
0
52
Member Avatar for winbatch

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" );` …

0
89
Member Avatar for potential

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.

Member Avatar for potential
0
98
Member Avatar for notdumb

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

Member Avatar for Narue
0
115
Member Avatar for ritcherjd

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 …

Member Avatar for ritcherjd
0
175
Member Avatar for kloony

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 …

0
72
Member Avatar for ehab_aziz2001

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: …

Member Avatar for Narue
0
136
Member Avatar for gregg21

[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: …

Member Avatar for bombe
0
99
Member Avatar for Alfarata

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 …

Member Avatar for Alfarata
0
124
Member Avatar for shahin

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 …

Member Avatar for shahin
0
225
Member Avatar for geegoo!

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 …

Member Avatar for Narue
0
36
Member Avatar for kennyk

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 …

0
63
Member Avatar for potential

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 …

Member Avatar for potential
0
110
Member Avatar for kloony

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 …

Member Avatar for kloony
1
175
Member Avatar for f_escobar82

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.

Member Avatar for kc0arf
2
4K
Member Avatar for fopah

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

Member Avatar for Asif_NSU
0
261
Member Avatar for odee

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]?

Member Avatar for odee
0
191
Member Avatar for evilsilver

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 …

0
72
Member Avatar for hopeolicious
Member Avatar for Dave Sinkula
0
90
Member Avatar for _Dan

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!

0
61
Member Avatar for jonnie83

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 …

0
62
Member Avatar for LoS_RoOcKoO

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 …

Member Avatar for steveh
0
174
Member Avatar for hopeolicious

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 …

0
71
Member Avatar for harshchandra

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 ?

0
71
Member Avatar for dallin

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 …

Member Avatar for Dave Sinkula
0
108
Member Avatar for {{unknown}}

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 …

Member Avatar for {{unknown}}
0
185

The End.