- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 21
- Posts with Upvotes
- 19
- Upvoting Members
- 18
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
109 Posted Topics
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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] … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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; } … | |
Re: 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]. | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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. … | |
Re: [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, … | |
Re: [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 … | |
Re: [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> … | |
Re: [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 … | |
Re: 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. | |
Re: [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 … | |
Re: [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 … | |
Re: [QUOTE=rwagnes;313227]Thanks, but I figured it out. Elise[/QUOTE] What was it? :) | |
Re: 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] | |
Re: [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, … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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. … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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. … | |
Re: 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? :) | |
Re: [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 … | |
Re: [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( … | |
Re: 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 … | |
Re: [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. | |
Re: [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. :) | |
Re: 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 … | |
| |
Re: [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 … |
The End.