Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
int10h
- Page 1
Re: Error LNK1104 when debugging
Programming
Software Development
1 Day Ago
by toneewa
I like the challenge, but hate when errors like these occur. Check for a syntax error on line 2 in starter.h starter.h(2): warning C4067: unexpected tokens following preprocessor directive - expected a newline Hard to say without seeing code. Some cases m_hservice may require you to use the .lib file Advapi32.lib it if it isn't automatically…
Re: Error LNK1104 when debugging
Programming
Software Development
1 Day Ago
by wwwalker
When compiling no relevant libraries have been included for linker to link so the executable won't run as it can't be compiled with missing libraries. In C and C++ code, the library header includes are at the top of the page. E.g.: #include <iostream> Go through each error where code requires a library to be linked and add those …
How do I make my code jump back to a previous line?
Programming
1 Week Ago
by trueriver
I'm just coding something for fun right now and I'm stuck on looping. I'm using a while loop that only runs if my variable is 0. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = …
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by trueriver
updated my code... everything is fixed :) i made functions import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = True admin = False n = 0 n1 = 0 i = 0 #Create login if firstTime is True if firstTime is True: print("…
Re: My php is showing wrong results of time difference
Programming
Web Development
3 Weeks Ago
by Dani
> Also just one more question regarding your code, I will have to minus 1 hour from the total hour difference, do I have to use the %h - 1? Just in case you haven't figured this out yet, the answer is no :) In my code above, see where I am showing you what $diff looks like on line 15? You should be able to do something like this: $…
Re: My php is showing wrong results of time difference
Programming
Web Development
3 Weeks Ago
by Dani
I am confused when you say the HTML time picker input box can be set to 20:00 for time in and 5:00 for time out, because `<input type="time" ...>` only allows the end-user to specify a time, not a time and date combination. Should it always be assumed that if the time out is earlier than the time in, that it is the next day? …
Re: My php is showing wrong results of time difference
Programming
Web Development
3 Weeks Ago
by Mr.M
Thanks, to clarify what I meant regarding the dates is that I have a date input that shows a calendar when a user click on it to choose the date for which the register is being marked for. Then I also have 2 time inputs one is for timein and the other is for timeout. Let me try your code and see if it does solve the problem I've been having.…
Re: My php is showing wrong results of time difference
Programming
Web Development
3 Weeks Ago
by Dani
In other words, if you just need days or hours you can do something like `$diff->d` or `$diff->h` (All properties available [here](https://www.php.net/manual/en/class.dateinterval.php), but if you want to calculate a runner's start time and end time and then do something like "You ran the race in 08:33:56!" then you could use the `…
Re: Need Coding Help With A Project
Programming
Software Development
1 Week Ago
by Enzo_3
I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out. Here's how I approached it using Python: from functools import reduce with open('…
Re: C++ College Prank
Programming
Software Development
2 Weeks Ago
by cirol
Pranks can be fun, but fake viruses might cause real worry and problems. It’s best to use your skills in ways that don’t upset or confuse others.
Re: Looking for a online dating service template
Digital Media
UI / UX Design
3 Weeks Ago
by Alex_188
Hi Tim, check out ThemeForest or TemplateMonster for dating templates with profiles, location filters, and payment options. Choose ones with good documentation and Stripe or PayPal integration for secure payments. This’ll help you avoid building from scratch and focus on customizing while learning payment setups gradually. Good luck!
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by woooee
if sysInfo.lower() in ["exit", "Exit", "EXIT"]: since sysinfo is now lower(), it will never be equal to "Exit" or "EXIT"
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by Dani
Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :)
Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by YashSmith
I’m getting a segmentation fault in my C++ program when trying to access an array element. Here’s my code: #include <iostream> using namespace std; int main() { int arr[5]; cout << arr[10]; // Accessing out-of-bounds index return 0; } How can I prevent this memory access issue?
Re: Show computer name on a label
Programming
Software Development
2 Months Ago
by toneewa
For VS2010 project support in VS2022, to compile your example I did the following: Created header stdafx.h: #pragma once #include <iostream> #include <fstream> #include <sstream> #include <string> #include <Windows.h> #include <WinSock.h> #include <msclr/…
Re: Show computer name on a label
Programming
Software Development
2 Months Ago
by toneewa
To get the VS2010 Visual C++ Windows Forms with VS2022 to work, I did the following: With your Visual Studio Installer make sure the .NET Desktop Development and Desktop Development with C++ workloads are installed. Created mr_m.h #pragma once #include <windows.h> using namespace System; using namespace System::…
Re: What should I look for in a reliable web design and development agency?
Digital Media
Digital Marketing
1 Month Ago
by graceweb
Hi Sasha, I really agree with your point about clear and consistent communication, without it, even the most skilled agency can fall short. I’d also add that flexibility is important too. Sometimes project needs change mid-way, and it helps to work with a team that can adapt without losing sight of the overall goals. H
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
> Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on…
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by jassonadder
Hey! You're on the right track with your idea—it’s a great beginner project to practice loops, input, and class methods in Python. Here’s a sample program that does exactly what you're asking. It defines a class with a flipCoin() method, reads in how many times the user wants to flip a coin, prints each result, and then shows the totals at the …
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Reverend Jim
Don't try to access past the end of the array.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by rproffitt
Thanks for the MVE (minimum viable example). But it's just bad code. c, c++ and a lot of language won't stop you from going out of bounds.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Dani
You’re creating an array of 5 integers and then trying to access the 11th integer in the array (assuming the indexes start at 0). You’re getting an out of bounds error because you’re trying to access an array element that doesn’t exist. You can access arr[0] up through arr[4].
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Salem
It should be obvious by now from their posting history that the OP is a troll.
int to roman numeral help
Programming
Software Development
17 Years Ago
by kevinpovec
I am writing a program to convert ints to roman numerals. this is the function that gets called when the user enters a number. it works just fine for number 1-99, but then it will either crash, or give bogus data for any numbers higher that 99. any pointers as to where i am going wrong with this? string intToRoman(int num) { string …
Conver int Array into a String
Programming
Software Development
20 Years Ago
by MrScruff
I guys and girls - im a MrScruff and found your forums when searching for some java problems. It looked like a nice place so i decided to join up! Heres my first java question which has had me perplexed for 2 days considering im sure it should be simple. All i want to do is convert an array of ints - into one long string with spaces between each…
[C++] Linked Lists, duplicate a spcified item H time
Programming
Software Development
13 Years Ago
by mylotech
I'm learning linked lists in C++. In an exercise I have to duplicate H time a give item. So I thought in this method: [CODE]void duplicaNodo(int item, int &H, Pnodo &L){ //duplica un nodo H volte, scorrendo tutta la lista Pnodo Temp, Temp2; if(L!=NULL){ if(L->info==item){ for(int i=0; i<…
Why ++ operator overloading expect (int) ?
Programming
Software Development
10 Years Ago
by nitin1
#include <iostream> using namespace std; class Time { private: int hours; // 0 to 23 int minutes; // 0 to 59 public: // required constructors Time(){ hours = 0; minutes = 0; } Time(int h, int m){…
expected unqualified-id before 'int'
Programming
Software Development
12 Years Ago
by Pyler
Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //…
Re: expected unqualified-id before 'int'
Programming
Software Development
12 Years Ago
by Pyler
Never mind I found the solution For those interested here it is. Now how do you delete posts? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor float surface_area(); float volume(); void set_dim(int ,int,…
weird int declaration
Programming
Software Development
11 Years Ago
by COKEDUDE
Can you please explain what this weird int declaration does. Here is the block of code. void show(void *u, int w, int h) { int (*univ)[w] = u; printf("\033[H"); for_y { for_x printf(univ[y][x] ? "\033[07m \033[m" : " "); printf("\033[E"); } fflush(stdout); } This…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
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
© 2025 DaniWeb® LLC