Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
h2
- Page 1
Re: Improve HAVING BY performance
Programming
Databases
3 Weeks Ago
by toneewa
I'm a little late to the party, however, I want to share my experience learning MySQL in the past day. I setup a server, a database, and wrote a C++ program to connect to it. It measures the times for 3 SELECTs. The whole product list, using HAVING, and WHERE. I also tested reversing the orders. Query execution time: 0.0002336 seconds …
Re: Read file properties of video files in C++
Programming
Software Development
4 Weeks Ago
by toneewa
The [Windows Media Foundation API](https://learn.microsoft.com/en-us/windows/win32/api/mfmediaengine/nf-mfmediaengine-imfmediaengine-getduration#requirements) is probably what you are thinking of. You also can just use my example, using the ffmpeg library. Just change the filename. extern "C" { #include <libavformat/…
Re: how to create a simple elevator simulation?
Programming
Software Development
1 Week Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
GCC Fails to Recognize Parameters
Programming
2 Months Ago
by snah19
RE: ffmpeg-4.4 Andrew Wu DJGPP CROSS COMPILER, GCC v12.2.0 Host Macbook Pro, macOS Monterey [Click Here](https://ffmpeg.org/platform.html#DOS) DJGPP Cross Compiler 12.2.0 Fails to Recognize "certain" Parameters in FFmpeg Source Code Hi, I am using the DJGPP cross compiler 12.2.0, developed by Andrew Wu, github, to build the …
Re: GCC Fails to Recognize Parameters
Programming
1 Month Ago
by toneewa
While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #…
Re: GCC Fails to Recognize Parameters
Programming
2 Months Ago
by Reverend Jim
I can't offer any suggestions other than to just download the compiled app for your system instead of building it yourself.
Re: GCC Fails to Recognize Parameters
Programming
2 Months Ago
by rproffitt
Here's another problem. When we change the OS not only must we setup the compiler, environment and such but sometimes an OS API could be deprecated or removed. You made mention of a possible OS change so that's a possibility. You obtained this code from somewhere. Go back there and see if they updated it for your new OS.
Re: Trying to animate sprite using DirectX9
Programming
Software Development
1 Month Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
H, what the best game script with databse
Programming
Web Development
14 Years Ago
by abdullah_359
H, i am very happy to discover new friends , and would you like help me recently i have got domain and hosting i want to add the best game script with data bse , any body can help , plese design . Thank you . . . . . . . . .
.h source file acting up
Programming
Software Development
15 Years Ago
by hello11
Here is my code I'm pretty sure the problem has to do with using namespace std and the included header files but I can't figure it out (error string no such file or directory in .h, error iostream no such file or directory in .h,error syntax error before namespace) box.h: [code] #ifndef _BOX #define _BOX #include <string> #include &…
.h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
So this is just the beginning of my questions, but I'm seriously having problems using classes in C++, I'm writing a program right now to plot points using asterisks on a 40 by 40 plain. right now I'm just trying to write the .h for the point class and i cant even get that to compile. heres what I have followed by errors I'm receiving... any help…
Re: .h file of class
Programming
Software Development
14 Years Ago
by sfuo
I rewrote what you had out and included a "lib.h" file so you do not have to keep typing out all the includes. "point.h" [CODE] #ifndef POINT_H #define POINT_H class POINT { //for whatever reason most people that I see post put //"private:" here when classes are automaticly private at the start double x…
Re: .h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
for some reason I'm still getting the same error for rectangle.h when I attempt to compile lib.h... here is rectangle.h and lib.h [code=C++] //rectangle.h #ifndef RECTANGLE_H #define RECTANGLE_H #include "lib.h" class RECTANGLE{ POINT* p; double length; double width; }; #endif //lib.h #ifndef LIB_H #define LIB_H #include <…
Re: .h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
I made a makefile and when i type make i get the error messages: point.h: In function ‘int main(int, char**)’: point.h:16: error: ‘double POINT::x’ is private main.cpp:35: error: within this context point.h:16: error: ‘double POINT::y’ is private main.cpp:36: error: within this context point.h:17: error: ‘POINT* POINT::next’ is private main.cpp:37:…
Re: .h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
why include point.h instead of lib.h when lib.h has all the definitions needed? your suggestion works, but i just figured out if i just switch point.h and rectangle.h in the lib.h file it also will compile.
Re: .h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
I dont know how to make the constructor for arrayholder.h... here are my .h and .cpp files the 2d array a is supposed to hold two values one the x coordinate and one the y coordinate of the points to be plotted arrayholder.h: [code=C++] #ifndef ARRAYHOLDER_H #define ARRAYHOLDER_H #include "point.h" class ARRAYHOLDER{ char a[40][40]; …
Re: .h file of class
Programming
Software Development
14 Years Ago
by sfuo
In your "rectangle.h" file change "lib.h" to "point.h"
Re: .h file of class
Programming
Software Development
14 Years Ago
by Dewey1040
Ok so i did all that now im getting the errors main.cpp:(.text+0x1fa): undefined reference to `POINT::setX(double)' main.cpp:(.text+0x21f): undefined reference to `POINT::setY(double)' main.cpp:(.text+0x231): undefined reference to `POINT::setNext(POINT*)' main.cpp:(.text+0x256): undefined reference to `POINT::setX(double)' main.cpp:(.text+…
Re: .h source file acting up
Programming
Software Development
15 Years Ago
by Ancient Dragon
>>error string no such file or directory in .h What compiler are you using? That error would indicate you are usiing something readlly really old, like ancient Turbo C what knows nothing about <string> header file.
Re: .h files
Programming
Software Development
15 Years Ago
by siddhant3s
>what i have learned is that we donot use ".h" in VC2008 like : i use "iostream" not >with ".h" Most of the C-header files like (stdio.h, string.h, math.h,) are now comes with stripped [B].h[/B] and a [B]c[/B] added before there name. stdio.h --> cstdio string.h --> cstring math.h --> cmath Further, …
Re: .h file of class
Programming
Software Development
14 Years Ago
by sfuo
Thats what I thought at first but it doesn't work like that and in the .cpp files you have to include "lib.h" and not just its header file or it will do the same thing saying that stuff doesn't exist.
Re: .h files
Programming
Software Development
15 Years Ago
by Ancient Dragon
[QUOTE=arshad115;822248]o yes,it is "stdio.h". what i have learned is that we donot use ".h" in VC2008 like : i use "iostream" not with ".h"[/QUOTE] That's not really correct either -- there are thousands of header files with .h extensions used in c++, such as windows.h because there are no equivalent …
Re: .h file not found?
Programming
Software Development
19 Years Ago
by Stack Overflow
I agree with cscgal, I have stated this time and time again: [b][u]The difference between iostream and iostream.h (summary)[/u][/b] You should avoid using the *.h version as much as possible, because some implementations have bugs in their *.h version. Moreover, some of them support non-standard code that is not portable, and fail to support…
Re: .h files
Programming
Software Development
15 Years Ago
by siddhant3s
If it is a standard header, (like cstdio, iosteram, fstream, string, cmath, cstdio etc.) #include<iostream> instead of #include<iostream.h> [B]But[/B] if your header is non-standard (like gtk.h, sockets.h or myHeader.h) then you should #include<gtk.h> or #include<socket.h> If the header file is home-made, you should …
.h/.C ? Test pgm ... what goes where?
Programming
Software Development
19 Years Ago
by crq
ok, here's the scenario (and maybe i will finally get this assignment finished) ... i have a class IntArray. at the moment i have it all in a .C file. i have a little main section that has minimal testing in it (will do something more formal later). my prof. wants us to "split" it into an IntArray.C an IntArray.h and a Test.C. i …
Re: .h/.C ? Test pgm ... what goes where?
Programming
Software Development
19 Years Ago
by Narue
[code] // Class.h class C { int i; public: C(); public: int geti() const; }; [/code] [code] // Class.cpp #include "Class.h" C::C(): i(0) {} int C::geti() const { return i; } [/code] [code] // main.cpp #include <iostream> #include "Class.h" using namespace std; int main() { C c; …
Re: .h/.C ? Test pgm ... what goes where?
Programming
Software Development
19 Years Ago
by crq
WOW!! thanks!! i will try that. cr1 [QUOTE=Narue][code] // Class.h class C { int i; public: C(); public: int geti() const; }; [/code] [code] // Class.cpp #include "Class.h" C::C(): i(0) {} int C::geti() const { return i; } [/code] [code] // main.cpp #include <iostream> #include "Class.h&…
Re: .h files
Programming
Software Development
15 Years Ago
by ArkM
>there are thousands of header files with .h extensions used in c++... The most interesting thing (for internal use only;)): those thousands of files are not [i]headers[/i]! All C++ [b]headers[/b] are enumerated in the C++ Standard with the note: [quote]A header is not necessarily a source file, nor are the sequences delimited by < and >…
.h file not found?
Programming
Software Development
19 Years Ago
by dcving
// Program 2.25: Distance an object travels in miles // and time it takes to travel that distance // Author: Eric Martin // Date: 9/30/2004 #include <iostream.h> using namespace std; int main() { int distanceInMiles; int speedInMPH; int timeInMinutes; cout <…
h/d not booting
Hardware and Software
Hardware
17 Years Ago
by mojo34
have got xp pro sp2 on h/d, i was formatting a floppy when something happened everything went off , all i was left with was the desktop screen with no icons, the only way to shut down was switchoff by the button on front, since then it will not bootup it gets to the xp logo then attempts to reboot going to the safe mode,last known config screen …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC