Posts
 
Reputation
Joined
Last Seen
Ranked #963
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
88% Quality Score
Upvotes Received
14
Posts with Upvotes
14
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #3K
~26.8K People Reached
Favorite Tags
c++ x 48
c x 24
java x 1
Member Avatar for Mr Gates

[QUOTE=Mr Gates]Ebil cscgal :twisted: Anyway, how would I do that so it deleted the file at closing?[/QUOTE] you can register a function that will be called when the program terminates with the atexit() function. this func could tehn call remove() on the file.

Member Avatar for brainysmurf0316
1
666
Member Avatar for essentialc++33

write some code, and then ask us for help when u get stuck. read the sticky about homework.

Member Avatar for raptr_dflo
1
4K
Member Avatar for viperman224
Member Avatar for davidkeeler63
-1
787
Member Avatar for Dark_Omen

the definitive book to pick up would be charles petzolds "programming windows"

Member Avatar for kvprajapati
-1
4K
Member Avatar for The Shadows

it is faster to type but there's no difference in the code generated, test it and see for yourself.

Member Avatar for bonethugs
1
410
Member Avatar for rcjay2

u are almost there. the scanf function returns teh number of correctly read variables. in your while loop, u are testing: [color=#000000][color=#007700] while (([/color][color=#0000bb]amt [/color][color=#007700]<= (float) [/color][color=#0000bb]100[/color][color=#007700]) && ([/color][color=#0000bb]correctItemsRead [/color][color=#007700]== [/color][color=#0000bb]1[/color][color=#007700])); but actually it should be: [/color][/color][color=#000000][color=#007700] while (([/color][color=#0000bb]amt [/color][color=#007700]<= (float) [/color][color=#0000bb]100[/color][color=#007700]) && ([/color][color=#0000bb]correctItemsRead [/color][color=#007700]!= [/color][color=#0000bb]1[/color][color=#007700])); when it returns 1, …

Member Avatar for abhimanipal
0
171
Member Avatar for cybergirl

agreed, it is always a good habit to get into. the only time u will see good programmers avoiding the practice is when writing kernel code - when every instruction counts, and then it is ur responsibility to be absolutely positive to double check that every variable is not used …

Member Avatar for codename09
0
1K
Member Avatar for Mostafaib
Member Avatar for vegaseat
0
134
Member Avatar for BountyX

i'm not sure if this is the answer u want, b/c i dont fully understand what u mean by "log window", but if u run a program from DOS prompt like: ./program >outfile standard output is redirected to the file outfile. if u want to do that inside the program, …

Member Avatar for krunalpatel1410
0
274
Member Avatar for Bleek

you need to learn a lot more to use graphics. most windows apps use the win32 API to display windows/pics/etc.. here is a tutorial bout it tho: [url]http://www.relisoft.com/win32/winnie.html[/url]

Member Avatar for Manutebecker
0
363
Member Avatar for BountyX

in 99.99% of cases it is much better to learn to write code that your compiler can optimize well. ie, compiling and observering generated code, and trying to fix your C to generate the proper asm. asm resources: [url]http://cs.smith.edu/~thiebaut/ArtOfAssembly/artofasm.html[/url] [url]http://www.geocities.com/SiliconValley/Lab/1563/assembly.html[/url] in short, on IA-32, registers eax, ecx, edx are called …

Member Avatar for naradasu74
0
512
Member Avatar for bryj3

read in the number of hours from the user using cin. if the number is <= 3, then charge is 2 else if the (number of hours - 3) * .50 + 2 > 10, it is $10 else the answer is (number of hours - 3) * .50 + …

Member Avatar for Twin6g72Turbo
0
1K
Member Avatar for fatallah
Member Avatar for kitakits
Member Avatar for alc6379
0
735
Member Avatar for eager04

your add_item method should traverse to the END of the list, and add the element there. the remove_item method should remove the first element in the list.

Member Avatar for gusano79
1
171
Member Avatar for Saleh
Member Avatar for meabed

[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__popen.2c_._wpopen.asp[/url] need to use _popen() to send commands down a pipe to format, ur method will not work.

Member Avatar for meabed
0
182
Member Avatar for gerizzel

read in the toll file, read in the customer file. store the customer's data into a structure. if the customers balance is > 0 then print out the data. what is it that u dont know how to do? we dont do homework here. write some code, when u get …

Member Avatar for gerizzel
1
176
Member Avatar for Lost Chyld
Member Avatar for Ronnie

if u check on java.sun.com they have a tutorial for nearly everything could imagine.

Member Avatar for Ronnie
1
147
Member Avatar for prabhu_kar

c++ is a subset of c, or maybe it's the otehr way round i 4got that crap, but anyhow, piont is, u can't.

Member Avatar for prabhu_kar
0
527
Member Avatar for bones

a test plan is designed to test the robustness of your program. if you are taking in any input from the user, you would want to try many values for those inputs. most importantly, u would want to try values that a "nice" user wouldn't give u. for example, would …

Member Avatar for infamous
0
199
Member Avatar for FireNet
Member Avatar for FireNet
0
159
Member Avatar for ElectroBoy

if it returns void, then you can't use the return value b/c there isn't one! you are trying to "cout << Calc()" , that means print out the return value of function Calc(), but it has no return value since the return type is void.

Member Avatar for ElectroBoy
0
244
Member Avatar for liliafan

you're better off using the STL if you can, their algorithms are far superior to what most of us could write.

Member Avatar for liliafan
0
264
Member Avatar for AmericanD

u need extra parentheses around the = assignment [code] return ( (remainder = ( num1 > num2 ? num1 % num2 : num2 % num1) )==0 ? num1 : gcd2(remainder, num1)); [/code]

Member Avatar for AmericanD
0
156
Member Avatar for dina

most p2p networks are just a bunch of people sitting at their home PC's all running some software program that creates a "network" between them. usually when a user starts this program they will connect to some central server that sends them a list ofa ll the other users logged …

Member Avatar for kc0arf
0
139
Member Avatar for liliafan

the compiler is telling u waht is wrong. the manual page apparently has an incorrect prototype, b/c gcc is telling u that it is returning an integer. try loooking at the header file and seeing if it has any notes on the function, or u can always try casting the …

Member Avatar for liliafan
0
245
Member Avatar for bil

post your code enclosed in the [ code ] [ /code ] tags so it is formatted: [code] see the spaces get preserved [/code] and post the section of code u need help on, not 19 pages of it.

Member Avatar for infamous
0
198
Member Avatar for raybulba