Posts
 
Reputation
Joined
Last Seen
Ranked #411
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
95% Quality Score
Upvotes Received
21
Posts with Upvotes
19
Upvoting Members
18
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
16 Commented Posts
~94.3K People Reached
Favorite Tags
c++ x 133
c x 47
c# x 13

109 Posted Topics

Member Avatar for bmackkc

[QUOTE=bmackkc;309118]I have two forms; I'll call them frmReturn and frmReturnItem. FrmReturn is bound to data in a SQL table; data entered in frmReturnItem is stored as a child table in SQL. In the database, there is a one-->many between Return and ReturnItem. frmReturnItem can be opened only from frmReturn. frmReturn …

Member Avatar for major_lost
0
2K
Member Avatar for fesago90

[QUOTE=fesago90;312927]Well, I read that endl 'flushes' the output buffer as opposed to \n. Now what does that mean (how could that be useful)? Does it make it less or more efficient?[/QUOTE] endl calls the flush() method of the stream. That means more work done per use, and it's a sure …

Member Avatar for seanwalsh1984
0
574
Member Avatar for ankit_the_hawk

[QUOTE=ankit_the_hawk;306640]Pls help, isnt there a [B]simple way[/B] to input strings in C without all the fuss. I never had a problem in C++.[/QUOTE]Without a full program that can be run, it's hard to tell you what's wrong without guessing. But if you're having this problem in C, you would also …

Member Avatar for thisun
0
13K
Member Avatar for d1e9v85

[QUOTE=d1e9v85;305997]for a assignment i need to create an array dynamically so then late i have to sort the array but the problem is i an new in this cousrse and i dontknow how to creat an array dynamically please help any help will be a good start for me \thx[/QUOTE] …

Member Avatar for NathanOliver
0
160
Member Avatar for livingsword

[QUOTE=livingsword;296608]hi, im a beginner.[/quote] Hi! :) [QUOTE=livingsword;296608]heres what i have done so far....[/quote] That's a good start, but you're missing one row that makes formatting an equilateral triangle easy. [QUOTE=livingsword;296608]and the output i get is : [IMG]http://img407.imageshack.us/img407/562/untitledpl9.png[/IMG][/quote] For a normal triangle you would probably do it one of these two …

Member Avatar for vipinkumar512
0
745
Member Avatar for cezarjont

[QUOTE=cezarjont;307072]is min heap different from max heap...?[/QUOTE] Yes. :) A min heap uses ascending priority where the smallest item is the first to be popped from the heap. A max heap uses descending priority where the largest item is the first to be popped. You can read more about heaps …

Member Avatar for Narue
0
6K
Member Avatar for afaquaholic

[QUOTE=afaquaholic;300280]I am running a service that queries on regular intervals. I initially set it up so that the connection formed onStart, and closed onStop. This of course leaves a connection open all the time, which isn't what I want. So I moved the open and closed to inside my timer …

Member Avatar for seahmadmom
0
300
Member Avatar for jan1024188

[QUOTE=jan1024188;297225]I want to know how to write a program that moves for example C:\ex.exe to D:\ex.exe.... What header to use? stdio.h? what function to use? Can i get a link of source(this program) ?[/QUOTE] stdio.h has a function called rename. You can use that to copy a file to another …

Member Avatar for luigi10011
-2
20K
Member Avatar for Eko

[QUOTE=Eko;304161][code] #include <stdio.h> #include <time.h> #include <dos.h> int foo() { int x=0; while(x<1000000) x++; return x; } int main() { time_t start, end; int x,time; start = time(0); x=foo(); end = time(0); // now just subtract the two times to get processing time time=end-start; printf("%d s: ",time); return 0; } …

Member Avatar for motogeeeksatyam
0
124
Member Avatar for WoBinator

An integer is a [URL=http://en.wikipedia.org/wiki/Integer]negative or positive whole number[/URL]. Float is short for floating point. It's a [URL="http://en.wikipedia.org/wiki/Real_number"]real number[/URL].

Member Avatar for Zacadx15
0
502
Member Avatar for Marks256

[QUOTE=Marks256;307672]Can someone please point me to a good windows api tutorial?[/quote] When it comes to the windows API, a tutorial just doesn't cut it. You want a good thick book. The good news is that such a book [url=http://www.amazon.com/Programming-Windows-Fifth-Charles-Petzold/dp/157231995X]exists[/url]. :) [QUOTE=Marks256;307672]The one that i found ([URL]http://www.winprog.org/tutorial/[/URL]) is nice, but it …

Member Avatar for massivefermion
0
180
Member Avatar for certem

[QUOTE=certem;306168]Hello i have spent hours and days and couldn't find how i can make a variable that has rounded to 2 decimal digits. But i dont want to use myVariable.value....or myVariable()....styles. In the net i have seen something like BCD that is related for official accounting issues but i coudn't …

Member Avatar for John A
0
245
Member Avatar for AshwinCareem

[QUOTE=AshwinCareem;306649]Hi everyone, I have a problam with data types which are using in C++. I am so confuce about int,float,double,strings,etc; And numbers of bits that related to each data type. Please anyone help me to solve my problam.[/QUOTE] The number of bits depend on the compiler. I'm sorry, but I …

Member Avatar for Nick Evan
0
156
Member Avatar for tech291083

[QUOTE=tech291083;296699]Hi[/quote] Hi! [QUOTE=tech291083;296699] 1. Are programmers the most frustrated lot among all the IT professional in the recent years?[/QUOTE] Not in my experience. I've worked as an IT engineer and system administrator with a rapidly growing corporation. I was much more frustrated before I became a programmer. :) [QUOTE=tech291083;296699] 2. …

Member Avatar for Ezzaral
0
191
Member Avatar for The Dude

[QUOTE=The Dude;313804]Just wanna know -- Computers tend you make you kinda fake..[/QUOTE] I present myself differently, but my personality is basically the same. Easy going, quiet except when I think I can make a difference, and nice enough to keep from making enemies. ;) I guess I'm kind of fake, …

Member Avatar for jbennet
0
138
Member Avatar for Marks256

[QUOTE=Marks256;313521]I am just curious about the pros and cons of each. Please leave your opinion(s). Thanks! (sorry the question is so broad, but i just wan the pros and cons of each.)[/QUOTE] It's impossible to tell you the pros and cons without some sort of context. If it were possible …

Member Avatar for Marks256
0
411
Member Avatar for degamer106

[QUOTE=degamer106;314890]For example, if I gave the user a choice to enter a string for a new filename, or let them just press ENTER for some other choice.[/QUOTE] It depends on how you get the input, but you can check for an empty string with getline(). [code] #include <iostream> #include <string> …

Member Avatar for WaltP
0
4K
Member Avatar for ghostfacelz

[QUOTE=ghostfacelz;313252]Hi, just have a question regarding classes/inheritance and a variable. ive been trying to work out the best way to do it, but would like some outside input. ok..here goes: i have a base class Ship. classes will inherit from this class. i also have a class tinyShip (and later …

Member Avatar for ghostfacelz
0
114
Member Avatar for tatumkay

I find it humorous that there was a google ad for aspartame resources just under tatumkay's post when I first read it. :lol: That is all. You may now return to your regularly scheduled programming.

Member Avatar for Ravalon
0
173
Member Avatar for Elfshadow

[QUOTE=Elfshadow;313317]I started learning C++ as my first language. But some of the OOP stuff gives me trouble. I know C is a widely used language like C++ and has about the same syntax but isn't OOP.I have tried some basic C so i have not got parts that are different …

Member Avatar for Elfshadow
0
131
Member Avatar for Xzantose

[QUOTE=Xzantose;312068]The answer to your first question is I mainly use linux. The next is realy stupid! I watch a movie were the IT programmed pong from scratch. No toolkit , no pictures just code. This inspired me and made me curious.[/QUOTE] I wish programming was like in films. I would …

Member Avatar for blacklight
0
145
Member Avatar for rwagnes

[QUOTE=rwagnes;313227]Thanks, but I figured it out. Elise[/QUOTE] What was it? :)

Member Avatar for Ravalon
0
92
Member Avatar for hkBattousai

SetSuspendState() should be in PowrProf.dll, not User32.dll. [code] [DllImport("PowrProf.dll")] public static extern bool SetSuspendState(bool Hibernate, bool ForceCritical, bool DisableWakeEvent); [/code]

Member Avatar for Ravalon
0
830
Member Avatar for Aia

[QUOTE=Aia;312261]I think one of the reasons authors of books about programming in C make heavily use of the function scanf() is that is readily available and easy to use for the new learner.[/quote] Deceptively so, and that's the biggest problem. ;) Instead of making the effort of reading a line, …

Member Avatar for Aia
0
276
Member Avatar for abhinav.sharma

[QUOTE=abhinav.sharma;310111]But what if I define the derived class in a friend function to the base class. will the private members of the base class be successfully derived and if yes, will they be as public or private, or depend on the type of derivation?[/QUOTE] Yes, they'll be successfully derived. That's …

Member Avatar for abhinav.sharma
0
242
Member Avatar for jerryodom

[QUOTE=jerryodom;312773]I'm fairly new to .NET programming. The DateTimePicker control seems to be a great solution for entering valid dates without alot of backend checking and preventing the user from entering a bad date. However it seems like I always have to explain to my testers that they don't have to …

Member Avatar for Ravalon
0
177
Member Avatar for lotsofsloths

[code=cplusplus] if ( choice1 = choice1 ) [/code] This will always be a true statement for two reasons. Firstly, the == operator is used to compare things, the = operator sets values. Secondly, comparing choice1 with choice1 is sure to be true for our universe. ;) You probably meant to …

Member Avatar for John A
0
129
Member Avatar for smallpau1

[QUOTE=smallpau1;311857]im still getting an error saying "term does not evaluate to a function taking 2 arguments" for line 19[/QUOTE] You have both a function and a local variable called power. The local variable hides the function name, and your compiler is telling you that your local variable can't be used …

Member Avatar for Salem
0
122
Member Avatar for Aia

[QUOTE=Aia;311655]I don't visit any other forum but the C and C++, so I don't know if there's a different place where I can make this comment. However, I'm going to go ahead and say. I would like to give a public and loud THANK YOU! to this people: [COLOR=Blue]Mr.WaltP Mr.Ravalon …

Member Avatar for ~s.o.s~
6
136
Member Avatar for WaltP

[QUOTE=iamthwee;310653]I also have to question why are you spending time on making things look prettier and neater when you should be spending time addressing things that actually are a problem. Like newbies never, ever, ever using code tags? Cheers.[/QUOTE] That's a hard problem. Forcing good behaviour without needlessly restricting people …

Member Avatar for Dani
0
798
Member Avatar for Ravalon

I have a ATI Radeon X800 video card with a VGA and DVI output on a Windows XP MCE system. My primary LCD monitor is plugged into the VGA connector and my secondary LCD monitor is plugged into the DVI connector. I have my desktop on the primary and extend …

0
51
Member Avatar for Aia

[QUOTE=Aia;310799]If the string entered is larger than the capacity of the array the fflush_stdin function cleans it, but if the answer is less,...well it pauses and waits and I have to press twice to continue. What would be you sugestion?.[/QUOTE] Flushing should be conditional. If you know there are no …

Member Avatar for Ravalon
0
175
Member Avatar for hariza

[QUOTE=hariza;311228]Hi[/quote] Hi! :) [QUOTE=hariza;311228]I'm trying to get rid of the new line with the code that you passed me but I'm getting a core dump. Basically this is what I'm doing: [B] while( fgets(line,LINE_BUF,fp) != NULL) { *p = strchr( line, '\n' ); if ( p != NULL ) *p …

Member Avatar for hariza
0
5K
Member Avatar for amishosh

[QUOTE=amishosh;310756]Well you learn new things every day...(And I've been in a programming course for almost a year now!!!)[/QUOTE] Most C++ courses will only teach you a subset of the base language and not focus on graphics APIs that would complicate the lessons. That's a bit of a shame, but if …

Member Avatar for fesago90
0
123
Member Avatar for megabutt

[QUOTE=megabutt;310696]Hey folks, I thought that recently I transitioned form NOOB to novice until I had this question. Oh, well. Why can't I create an executable in Visual Studio 2005? I have my Win32 project code debugged and it builds a library object file, not .exe. I am in release mode …

Member Avatar for John A
0
99
Member Avatar for loslos

[QUOTE=~s.o.s~;310615]That would be [INLINECODE]feof( )[/INLINECODE] you are talking about which returns zero only *after* the end of file is reached and not *when* the end of file is reached. [INLINECODE]eof( )[/INLINECODE] is actually good and returns a boolean value when the end of file is reached.[/QUOTE] I don't get it. …

Member Avatar for loslos
1
115
Member Avatar for rasakse

[QUOTE=rasakse;310526]someone please help me on how to run this coding using knoppix linux.. using c language.. i really need help.. i want to know.. what is the output.. this is the coding :- [code] int main() { Pid_t pid; /* fork another process */ pid=fork(); if (pid<0) { /* error …

Member Avatar for John A
0
131
Member Avatar for Rickenbacker360

[QUOTE=Rickenbacker360;310725]Hello again, I'm slowly getting better, I would never have been able to get this far before, but I'm stuck.[/quote] Hi! :) We're all slowly getting better. Nothing is fast when it comes to learning how to code. :) [QUOTE=Rickenbacker360;310725]What i'm a bit stuck on: 1.) If a put a …

Member Avatar for Rickenbacker360
0
114
Member Avatar for fesago90

[QUOTE=fesago90;310496];) Hey guys, [/quote] Hi! :) [QUOTE=fesago90;310496]I have another simple question today: Lets say I have a structure: [code=c++]struct Info{ string name; string id; double telNum; }; //.... Info person; //....[/code] Now, if I had a function in which I told it to output one of the elements in the …

Member Avatar for Ravalon
0
138
Member Avatar for mattyd

[QUOTE=mattyd;310000]Hello: I am interested in understanding recursivity; I have not knowingly used this much in my programming. I am reviewing certain areas of OOP in order to learn more and better about areas that I may not be[I] fully[/I] understood yet. Recursivity is one of these areas. I understand the …

Member Avatar for Infarction
0
186
Member Avatar for cusado

[QUOTE=cusado;310093]im trying to break out of the inner most look which is in red any advice?[/quote] Turn the inner loop into a function and just break or return from it normally. With a suitable return value, you can then break from the outer loop without using goto or state flags. …

Member Avatar for WaltP
0
141
Member Avatar for megabutt

I see a couple of problems, but nothing that would give you a syntax error. Can you post some more code? Maybe something complete that we can brainpile? :)

Member Avatar for megabutt
0
137
Member Avatar for 2nick82

[QUOTE=2nick82;309931]How to generate 50 distinct numbers in an array? I have the code for generating 50 numbers but thay are not different. I get same number sometimes twice or three time.[/QUOTE] That's normal. :) Random numbers aren't defined to not repeat. In fact, it's possible, but not probable, that you …

Member Avatar for Ravalon
0
113
Member Avatar for cusado

[QUOTE=cusado;309908]is there something wrong with the case portion?[/QUOTE] Nope, the problem is with how you print the result. [code] printf("%d", &acc); [/code] &acc means the address of acc, and %d expects an int. If you change %d to %f and &acc to acc, things begin to work. :) [code] printf( …

Member Avatar for Ravalon
0
189
Member Avatar for localshredder

MinGW is a POSIX compatibility layer for Windows. Mac OSX is a POSIX system, so you can just use g++. If it doesn't already come with the system, you can download and install it without any trouble from [url=http://gcc.gnu.org/]here[/url]. The only problem is that there might be subtle differences in …

Member Avatar for Madd the Sane
0
15K
Member Avatar for jan1024188

[QUOTE=jan1024188;309894]Whats better? C++ or VB?[/QUOTE] It's not as clean cut as that. :( C++ is better sometimes and VB is better sometimes.

Member Avatar for Ravalon
0
332
Member Avatar for h3ngh3ng

[QUOTE=h3ngh3ng;274740]Currently, i created a datagrid that enabled user to insert , update and delete from the datagrid.. My problem is..How to validate the input when the user is inserting values into a new row in the datagrid. Any idea?[/QUOTE] With the CellValidating and CellValidated events. :)

Member Avatar for kapil.goyal
0
98
Member Avatar for raydogg57

Okay, first thing's first. Print_Month_Head shouldn't be looping. You only want one header, so all you need to do is test m once and print whatever. That fixes the problem that you'll get after you solve the problem that you have now. :) The problem that you have now is …

Member Avatar for John A
0
251
Member Avatar for Extremist
Member Avatar for DemonicGoldfish
0
162
Member Avatar for wait4the1

[QUOTE=wait4the1;308559]Hi guys, I have a really puzzling question... I really want to start programming more. (Programming will be more of a hobby than a job for me.) The problem is that I can't figure out which language would be better to learn...C or C++[/quote] Both! :) [QUOTE=wait4the1;308559]I want a language …

Member Avatar for Ravalon
0
92

The End.