Re: What should I look for in a reliable web design and development agency? Digital Media Digital Marketing 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 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 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 … Segmentation Fault in C++ Program – Need Debugging Programming Software Development 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 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 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: Show computer name on a label Programming Software Development by Mr.M I'm using Microsoft Visual Studio 2010 (Visual C++ Windows Form Project). Regarding the test yes it doe compile/build/run with no error. Here are the includes #include "stdafx.h" #include <iostream> #include <fstream> #include <sstream> #include <string> #include <Windows.h>… Re: Looking for a online dating service template Digital Media UI / UX Design by flame_2 i like this topic Re: Segmentation Fault in C++ Program – Need Debugging Programming Software Development 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 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 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 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 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 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 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 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 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 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 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… Converting a string array into an int from a text file Programming Software Development by redmaverick Hi guys, I need to open a file and extract numbers from it. The numbers in the file are like this 12 34 23 12 00 10 02 12 22 33 10 12 09 03 03 93 etc I am able to extract the numbers in string format and store it in a string array but I am not able to print it when I convert it to int(parse) I am getting this error [CODE] Exception in thread … H, what the best game script with databse Programming Web Development 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 . . . . . . . . . Int isn't working correctly, any ideas why? Programming Software Development by ctclements int wordpercent = ((count/totalwords)*100); JOptionPane.showMessageDialog(null, "Count: " + count); JOptionPane.showMessageDialog(null, "Words: " + totalwords); JOptionPane.showMessageDialog(null, "Character Count: " + length); JOptionPane.showMessageDialog(null, … Re: int to roman numeral help Programming Software Development by WaltP [QUOTE=kevinpovec;487590]thank you for the advice. i got it working just fine now. still getting used to the mod function. never saw it before this semester. i used this code to get it to work for anyone else who happens to have a similar problem [code] if (num <= 5000) { th = num / 1000; h = (num / 100) %10; t = (num %100) / … Re: int to roman numeral help Programming Software Development by kevinpovec thank you for the advice. i got it working just fine now. still getting used to the mod function. never saw it before this semester. i used this code to get it to work for anyone else who happens to have a similar problem [code] if (num <= 5000) { th = num / 1000; h = (num / 100) %10; t = (num %100) / 10; o = num % 10;… Re: int main() or void main() ??!! Programming Software Development by may4life int main() is used to return 0 at the end. This 0 is returned to the Operating system to denote that the function main() - which is the only function called by the operating system and that's why its so special - has completed successfully. Always use int main() and return 0 at the end of it. Dont use void Re: int main() and return Programming Software Development by Fbody int main() is the required format under the ANSI/ISO standards. If you return anything but an int, it can lead to system issues. Some compilers will even complain if you try to return anything but an int. As far as value is concerned, zero (0) is considered the "universal" success indicator. It says the program finished with 0 … Re: int array to double array Programming Software Development by Caligulaminus Int and double have completely different memory representations -> No other way of converting the arrays. Re: Int isn't working correctly, any ideas why? Programming Software Development by deceptikon I'm willing to be that `count` and `totalwords` are both int too, which means your division is performed in integer context. If the division results in a value less than zero, the precision is ignored and the result will be 0. You want something more like this: int wordpercent = (int)((count / (double)totalwords) * 100) This forces the … Re: Int isn't working correctly, any ideas why? Programming Software Development by ctclements That was the problem, thank you guys. I'm new to java and programming in general. I changed "int totalwords" to "double totalwords". The only minor problem I have now is that because I changed totalwords to a double it displays "Total Words: 340.0". Is there any way to make it not display the .0? Re: Int isn't working correctly, any ideas why? Programming Software Development by JamesCherrill Using a double is a valid solution, but it does have side effects. Personally I would just rearrange the expression so it does the multiply before the divide and keep all the variables as ints. int wordpercent = (count*100)/totalwords;