Posts
 
Reputation
Joined
Last Seen
Ranked #971
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
~27.2K People Reached
Favorite Tags
c++ x 48
c x 24
java x 1

57 Posted Topics

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
678
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
795
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
416
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
178
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
139
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
287
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
379
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
522
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
738
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
175
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
184
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
182
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
149
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
538
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
208
Member Avatar for FireNet
Member Avatar for FireNet
0
161
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
250
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
268
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
158
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
142
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
253
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
200
Member Avatar for raybulba
Member Avatar for liliafan

if you call an exec() function from a thread, the entire process will be replaced by the program u call, not just the single thread of execution. exec'ing replaces the entire address space of a process with the application being executed. what u want to do is fork() off a …

Member Avatar for liliafan
0
260
Member Avatar for abort

read the irc protocol for starters, or try packet sniffing a session of irc so u can see what goes on.

Member Avatar for infamous
0
57
Member Avatar for MrCool
Member Avatar for DanteInHell
Member Avatar for Dani
0
158
Member Avatar for keir.whitlock

use the & and << operators. remember that a character is just a sequence of bits. u cant test for each bit and output the result. [code] int main() { char x = 'a'; int y; // the value of 'a' in hex is 0x61, or 97 decimal // in …

Member Avatar for infamous
1
1K
Member Avatar for Gnome_101
Member Avatar for Gnome_101
0
482
Member Avatar for CocoDan

i was trying to learn about firmware a couple weeks ago b/c i wantd to hack my router. i found that most firmware is just plain ol C..

Member Avatar for BountyX
1
276
Member Avatar for Cplusstudent1
Member Avatar for Dwija

1) b/c C is a minimal, spartan like language 2) shift each bit out and test it: [code] unsigned int num = 0xdeadbeef; for(int x = 0; x < (sizeof(int) * 8); x++) if(num & (1 << x) ) printf("bit %d is on\n", x); [/code] 3)using the `stringification' operator in …

Member Avatar for neoderf
1
238
Member Avatar for ElectroBoy

uhhh.. u obviously didnt write that code. massPounds is a variable, this is where u store the user's input. cin gets input from the user, and stores it in the massPounds variable. so, u wouldnt want to use the variable until after you have taken it in from the user.

Member Avatar for BountyX
1
1K
Member Avatar for Bleek

linux: sleep() or usleep() #include <unistd.h> windows: Sleep() #include <time.h>

Member Avatar for BountyX
1
224
Member Avatar for BountyX

you need to make sure u terminate everything u send with "\r\n", or telnet server wont recognize it. and u'll need to login properly, i'd check out part of the telnet RFC, or try and google for a quick telnet tutorial; as well as sniffing your own traffic on a …

Member Avatar for infamous
0
357
Member Avatar for BountyX
Member Avatar for Aaerox
0
648
Member Avatar for seeone

yes it is very solvable. unresolved references mean that you either, dont have the correct libs, or those libs are not being included properly by the compiler. u need to first figure out where that function is supposed to be defined(what lib file), and then see if u have that …

Member Avatar for seeone
1
144
Member Avatar for ctlajoie
Member Avatar for popo_prince

can u please post using code tags. [code] #include <iostream.h> #include <conio.h> const int MAX_ITEMS = 5; typedef int InventoryArray[MAX_ITEMS]; void DisplayOpeningMessage(); void DisplayEndMessage(); void OutputInventory(const InventoryArray items); // const used to protect the array from being changed void InputInventory(InventoryArray items); void ProcessChoices(); void OutputOneInventoryAmount(int amount, int itemCode); void ChangeOneInventoryAmount(InventoryArray …

Member Avatar for BountyX
2
179
Member Avatar for popo_prince

visual studio usually ships 'neutered', meaning you can't build standalone apps to distribute. depending on what version u have, this is may or may not be true. usually the expensive, ie. Professional Version, lets u build standalone apps. this is done by going to Build->Configurations and selecting Release mode instead …

Member Avatar for popo_prince
1
228
Member Avatar for Gollum1

[url]http://www.icce.rug.nl/documents/cplusplus/[/url] and one of the best books written on C++ is available free, here: [url]http://www.camtp.uni-mb.si/books/Thinking-in-C++/Contents.html[/url]

Member Avatar for samaru
1
417
Member Avatar for Bullseye

ehh, a pointer isn't gonna do much for ya d00d. whatever calls u make are going to eventually map to a device driver, so here is a place to start: [url]http://www-2.cs.cmu.edu/~iwan/1394/[/url]

Member Avatar for infamous
0
171
Member Avatar for Nasimov
Re: Ftp?

i wrote an ftp library, found here: [url]www.1nfamus.netfirms.com[/url] look halfway down page or so, feel free to modify/use it as u plz.

Member Avatar for infamous
0
119

The End.