299 Posted Topics

Member Avatar for modarbz
Re: c++

Well, that's fascinating, but unless you tell us what it is, we can't help. Funny how that works.

Member Avatar for DeanMSands3
-3
161
Member Avatar for abelLazm

[B]Life[/B] is a precious gift to all - to men and to ants. [B]Aardvark[/B]

Member Avatar for vinnitro
6
1K
Member Avatar for sandz24

Read this: http://en.wikipedia.org/wiki/Jpeg#Discrete_cosine_transform I'll see if I can find some source code.

Member Avatar for white_pearl
0
896
Member Avatar for MRehanQadri
Member Avatar for Rouf mir

I'm not entirely sure I understand the rules of the game. Could you explain further?

Member Avatar for azareth
0
118
Member Avatar for DeanMSands3

Microsoft Office VBA is a language many of us love to hate. I am no exception, but I know better than to kick the cash cow that feeds me. As it is, the grand and spacious realm that is DaniWeb lacks a VBA forum. There's VB.NET, VB4,5,6 and Legacy Languages. …

Member Avatar for diafol
0
147
Member Avatar for DeanMSands3

I have a calculated field that takes the ID field of a table and pads it with leading zeroes. So far, I've gotten this to work: `String$(4-Len(Trim$(Str$([ID]))),"0") & Trim$(Str$([ID]))` Broken down, it takes the ID field, and string-ifies it. For some reason, this pads it with a space, hence the …

Member Avatar for adam_k
0
779
Member Avatar for DeanMSands3

Greetings, DaniWeb! I have an Access DataBase with a Form I need to modify. When the user moves between records, I need to trigger an event. Is there an event that triggers, and what is it? I know it's not Form.Load. Thanks, DaniWeb!

Member Avatar for DeanMSands3
0
133
Member Avatar for devilmaycry1

To share the semaphore, it has to be in the shared memory space. Therefore, you'll want to redefine the semaphore variable as a pointer, then point it somewhere in the shared memory space that isn't being used, then initialize it.

Member Avatar for DeanMSands3
0
2K
Member Avatar for Landoro

Assuming a square NxNmatrix where N is an odd number, it looks like: Find the center (x,y) where x and y equal N/2 rounded down. Or N>>1; Go Up One. Go Right One. Go Down Two. Go Left Two. Go Up Three. Go Right Three. ... Happy coding.

Member Avatar for Adak
0
200
Member Avatar for Serunson
Member Avatar for vebi1000

This is a lot like a binary search. Looking at this, you can already tell where to look after 4 readings. So drop it to 4 readings: 0,90,180,270 (you already know 0 and 360 are the same.) Find your two highest. Pick exactly in the middle. Take a reading. Repeat. …

Member Avatar for vebi1000
0
198
Member Avatar for Everlight

**cout** and pretty much everything else in the **Standard Template Library** (i.e. the header files without the **.h** at the end) are members of the **std** namespace. On line #2 add in: `using namespace std;`

Member Avatar for Everlight
0
3K
Member Avatar for jude416
Member Avatar for DeanMSands3
0
283
Member Avatar for BryantFury

Man, how I miss my Operating Systems class. BEST. CLASS. EVER. Let me rewrite this with comments: void P(){ A(); //Begin critical section wait(S1); //Grab S1 B(); signal(S1); // Release S1 //End of critical section C(); D(); signal(S2); // Producer E(); } void Q(){ F(); //Begin critical section wait(S1); G(); …

Member Avatar for DeanMSands3
0
232
Member Avatar for billfromvt

I'm going to go ahead and get the ball rolling. The best plan of action would be to: * Set your primary's DHCP to limit IP assigning from .2 to .252 * Assign your secondary routers LAN IP's to .253 and .254 respectively. * Disable the DHCP on your secondary …

Member Avatar for billfromvt
0
2K
Member Avatar for MugANDGlass

//class class vehicle { protected: char model[20], color[20], brand[20]; float price, deposit, rate, monthly_installment, newprice; int term; public: void calculate_installment(); }; class car:public vehicle { private: float installment; //newprice removed since provided by vehicle public: void calculate_installment(); }; //main program #include <iostream> #include <string.h> //Use cstdio instead #include <stdlib.h> //Use …

Member Avatar for DeanMSands3
0
177
Member Avatar for Delnith

Looks like you're already preoccupied, but if I may be so bold, try a podcast ripper. What a podcast ripper teaches you: Sockets (i.e. network connections and transfers) XML Parsing Binary File Writing (In addition to whatever bells and whistles you add like a GUI interface via MFC, GTK+, Qt, …

Member Avatar for Schol-R-LEA
0
234
Member Avatar for amadkhalil

Did a little Google-fu. I found the [Armadillo library](http://arma.sourceforge.net/) hosted on Sourceforge. It has a Psuedo-Inverse function (http://arma.sourceforge.net/docs.html#pinv) Also found a codeforge sample: http://www.codeforge.com/article/41545 - Might be more useful if you've never linked libraries. (Disclaimer: This is Google-fu only. I haven't tested either.)

Member Avatar for mike_2000_17
0
1K
Member Avatar for gtsreddy

Well, Code::Blocks, like Dev-C++ is an IDE that (usually) comes packaged with the MinGW compiler (based on GCC). If you're still willing to give it another serious try, do this: First install the MinGW GCC compiler and the MSYS compiling environment (not an IDE). Go to: http://sourceforge.net/projects/mingw/files/ A little above …

Member Avatar for vijayan121
0
718
Member Avatar for neithan

A string is not exactly the same as a character array. There's a bit of overhead that goes into it. Try using curl_easy_setopt(curl, CURLOPT_URL, m_sURL.c_str());

Member Avatar for sftranna
0
239
Member Avatar for MrCbrl95

http://en.wikipedia.org/wiki/Persistent_browser-based_game In effect, the game doesn't reset when you close your browser. OK, so first things first. You're going to want to start small. I'd get either a free web host or a XAMPP installation on your home computer. The down-side of a free web host is that you have …

Member Avatar for ObSys
0
342
Member Avatar for Microno

Try this. You'll like it. http://www.antlr.org/ EDIT: And if you're feeling adventurous... http://en.wikipedia.org/wiki/Shunting-yard_algorithm

Member Avatar for ravenous
0
175
Member Avatar for Zhoot

I haven't gotten any done or even close to started past a [B]very[/B] loose framework, but when I finally do this is how I'll do it: C++ [I](I. NEED. MORE. SPEED.)[/I] SFML [I](On Windows, Mac, and Linux)[/I] Home brewed. [I](Because the little men who live in my toes tell me …

Member Avatar for vinnitro
0
211
Member Avatar for np complete

Those work, but they tend to be slow. Have you looked into Multi Precision Number libraries? There's GMP and MPFR to name a few. FYI: `uint64_t` will get you into the very shallow end of 20-digit numbers (i.e. 0-18446744073709551615)

Member Avatar for TrustyTony
0
243
Member Avatar for rithish

EDIT: @AD: I seriously thought so too, but I googled it first. SECOND EDIT: @rithish: DO NOT DO THIS UNLESS YOU KNOW WHAT YOU'RE DOING! Apparently, you can. I'd try it first on your compiler just to be sure. Make sure it's pointed at a valid memory location that has …

Member Avatar for deceptikon
0
129
Member Avatar for henicken

*Googles "Oromiya" (Henicken's location) and "notes of birr". facepalm* Now I get it. OK, so our friend Henicken is Ethiopian. Notes of birr are their currency. However, as stated in previous posts, Henicken, YOU NEED TO POST WHAT YOU'VE DONE ALREADY. Show us at least half of a program, and …

Member Avatar for DeanMSands3
-1
123
Member Avatar for Mikai!

Howdy and welcome to DaniWeb. We're glad to have you. Some things to remember: * Be courteous to others. * Don't spam. (Though in the Geek's Lounge, it's becoming more of a "guideline." Even so, please, don't.) * **Always** use the **Code** tag in the Formatting Menu (up top) when …

Member Avatar for hkr514
0
121
Member Avatar for infantheartlyje

Gotta use the environment variables. Google "cgi c++ tutorial" There are several libraries that handle this for you like CGIcc. EDIT: Oops, I (sort of) lied. For a "GET", you need to use the "**QUERY_STRING**" environment variable. For a "POST", you need to first read the "**CONTENT_LENGTH**" variable, **then** read …

Member Avatar for Ancient Dragon
0
597
Member Avatar for henicken

No. Instead, I'll give you this. #include <iostream> using namespace std; #define KM_M 1000 #define M_CM 100 #define CM_MM 10 int main(){ long long mm, cm, m, km; cout<<"Input number of kilometers:"; cin>>km; cout<<"Input number of meters:"; cin>>m; cout<<"Input number of centimeters:"; cin>>cm; cout<<"Input number of millimeters:"; cin>>mm; m+=km*KM_M; cm+=m*M_CM; …

Member Avatar for np complete
-3
89
Member Avatar for amar11372

Rewrite the code to print out debugging at the beginning and end of each function: #include <iostream> using namespace std; void addSpace(int depth){ for(int i=0;i<depth;i++) cout<<" "; } int fun(int x, int depth) { int retVal=7; addSpace(depth); cout<<"begin fun("<<x<<"):\n"; if (x <= 0){ retVal= 0;} else if (x >= 9 …

Member Avatar for DeanMSands3
0
123
Member Avatar for Reverend Jim

So... this code is totally untested. Hope it works for you. :) ' RocketHubReader.vb ' Compiled from sources by DeanMSands3 ' Disclaimer: This code is untested. Use at your own risk. Option Explicit Option Strict Imports System Imports System.IO Imports System.Net Imports System.Xml Class RocketHubReader Public Shared myUserName as String …

Member Avatar for DeanMSands3
0
431
Member Avatar for thak123

Tell us more about your project. What database are you using? Can you retrieve values from it? What do you want the HTML file to look like? EDIT: This might be helpful. http://www.dotnetperls.com/xmlwriter

Member Avatar for Mike Askew
0
303
Member Avatar for shsh111

> Shsh111 stop asking for people to do the work for you and show us what you have done so far so we can help you. If you get people to do your homework for you your going to struggle when the time comes to do the work yourself which …

Member Avatar for shsh111
0
165
Member Avatar for Geeksoftie

Let me Google that for you: http://lmgtfy.com/?q=producer+consumer+c%2B%2B+pthread Third link on first page: http://richiejp.com/pthread-producer-consumer-example-in-c/

Member Avatar for jimzandueta
0
144
Member Avatar for Hani1991

@Critical Error: From the frontpage, "Our Geeks' Lounge forum is the place to chat about anything. Have fun and relax in this forum." Technically, I could start topic about rutabagas and asparagus. I'd get down-voted for it, but I could still do it. @Hani1991: Carry on, sir. Carry on.

Member Avatar for Reverend Jim
-5
1K
Member Avatar for Reverend Jim

I'm going to throw my hat in support of AD on this one. On Bush and Iraq: After 9/11, everyone was angry. Democrats, Republicans, Independents, everyone. We went into Afghanistan and Iraq to clean house. And we did. We thought it would be a quick "kill the bad guys, and …

Member Avatar for Reverend Jim
1
394
Member Avatar for Helianthus

He once stopped looters from vandalizing a shop in London - while vacationing in Singapore.

Member Avatar for DeanMSands3
0
111
Member Avatar for techy23

Here's a listing of some free and partial ebooks on Game Programming. http://www.e-booksdirectory.com/listing.php?category=264 Happy coding.

Member Avatar for princysharma90
0
202
Member Avatar for cynusalisa

As an additional plug for Java (though my heart belongs to C++), you can write wrappers around native libraries to give Java access to them. For example, the popular game Minecraft is written in Java, but includes hardware-accelerated OpenGL libraries which are only available natively. Wrappers were written for the …

Member Avatar for rubberman
-1
234
Member Avatar for techy23

Techy23: You're still using Turbo C. Do yourself a big big favor. **Drop Turbo C.** Like it's on fire. Covered with ants. Ants on fire. Get a copy of Orwell Dev C++. http://sourceforge.net/projects/orwelldevcpp/ Then add SDL to the MinGW compiler that comes with it. http://www.libsdl.org Then you'll want to add …

Member Avatar for WaltP
0
704
Member Avatar for DrMAF

This same question has been cross-posted multiple times: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/0ba199e9-e806-48bd-9b85-6f8668c732d4 http://stackoverflow.com/questions/11717613/how-can-i-get-a-dte-object-with-msbuild http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/120c6cdf-5bba-4396-8ac8-7fe507ae879a The answer: DTE and serviceProvider are Visual Studio constructs. You're not going to get them in MSBuild. Ask your team leader if he wants any headlight fluid or ID 10-T forms while you're out.

Member Avatar for DeanMSands3
0
106
Member Avatar for Oracle1986

Are you using this on your PC or an XBox 360? Look into XInput: http://msdn.microsoft.com/en-us/library/hh405053(v=vs.85) Here's a useful tutorial to get started (not quite what you were looking for, but it's the right direction.) http://www.codeproject.com/Articles/26949/Xbox-360-Controller-Input-in-C-with-XInput

Member Avatar for DeanMSands3
0
102
Member Avatar for mjacqu3

If you include the fonts in any form, you need to give credit where credit is due. Bundle the license in a text file or make it somehow easily accesible to the user like in a "Credit and Thanks to" page included in the game.

Member Avatar for DeanMSands3
0
95
Member Avatar for Enrique Nivasch

AD's already got this one covered, but I wanted to throw something in as well. If you want a static function to use instance specific data, you have to pass a pointer to the instance as a parameter: You modify your FClass::PrintIt like so: static void PrintIt(FClass *instance) { printf("%d",instance->number); …

Member Avatar for DeanMSands3
0
342
Member Avatar for shankarz

Let's see... I'm going to troll a bit here. From the name Shankar, I'm guessing he's Indian. With that, I'm going to assume that he's using our beloved Turbo C++ in 16 glorious bits. I'm going to further guess that there's an overflow error lurking about here somewhere.

Member Avatar for I_m_rude
0
153
Member Avatar for techy23

If your using Turbo C, you're pretty much stuck in DOS. But you can run programs inside that magical wonder called DOSBox. I recommend learning graphics using the old Denthor VGA trainers as translated into C by Chris Mann. ftp://ftp.scene.org/mirrors/hornet/code/tutors/denthor/ Then, once you understand all that, then you're ready for …

Member Avatar for I_m_rude
0
1K
Member Avatar for srinivaskolli

There are multiple problems. I've got time for only a few. In your **insert_front()** function you have this: if(n==NULL) { cout<<"\nOverflow\n"; getch(); } It should have a **return;** statement inside it. if(n>=5) { delete_end(); } This needs to be fixed. Here, you're trying to count the number of items. But …

Member Avatar for srinivaskolli
0
2K
Member Avatar for gizmo7008

Yeah, what WaltP said. Edit: And Labdabeta. Ouch. Ouch. Ouch. This code really hurt me. I kept thinking that a finite state machine version would be a better approach. Ask if you're interested. Back to your code, I debugged far enough to get it sort of working. It took a …

Member Avatar for gizmo7008
0
186
Member Avatar for Amiet Mhaske

Ditto was made using Visual Studio, so it's probably best to use Visual Studio to edit it. You'll want Visual C++ Express since its free to use (I'm pretty sure that Express version will do what you need). http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Also, it __may__ be helpful to read up on the extra …

Member Avatar for ertthewer
0
356

The End.