[Solved] I want to write a function that takes 2 strings and returns True if they are anagrams(any word that have the same letters in different order) [duplicate]

I want to write a function that takes 2 strings and returns True if they are anagrams(any word that have the same letters in different order) [duplicate] solved I want to write a function that takes 2 strings and returns True if they are anagrams(any word that have the same letters in different order) [duplicate]

[Solved] Incorrect result in c code

How your code should look #include <stdio.h> #include <stdlib.h> #include <math.h> void myfunction(double x, int y[2], int *d); int main(int argc, char **argv) { int a[2]; int *c = malloc(sizeof(int)); double b=10.0; *c = 5; a[0]=1; a[1]=2; printf(“before call %f %d %d %d\n”,b,a[0],a[1],*c); myfunction(b,a,c); printf(“after call %f %d %d %d\n”,b,a[0],a[1],*c); } void myfunction(double x, int … Read more

[Solved] can’t extract data from a structure array c++ [closed]

This should look a bit more like a code intended for humans to read 🙂 #include<iostream> #include<string> using namespace std; int ncr; int me,n=0,u,y,l; char opt1,opt2,opt3,opt4; struct student { string Name; int DoB; int Age; string Address; string Course[5]; char grade[5]; }; void add(); void remove(); void update(); void search(); int main() { int opt; … Read more

[Solved] How to get Object from json /

here is code for getting lat lng from json List<Double> lat = new ArrayList<>(); List<Double> lng = new ArrayList<>(); try { JSONObject jsonObject= new JSONObject(response); JSONArray jsonArray= jsonObject.getJSONArray(“results”); for(int i=0;i< jsonArray.length();i++) { lat.add(jsonArray.getJSONObject(i).getJSONObject(“geometry”).getJSONObject(“location”).getDouble(“lat”)); lng.add(jsonArray.getJSONObject(i).getJSONObject(“geometry”).getJSONObject(“location”).getDouble(“lng”)); } } catch (JSONException e) { e.printStackTrace(); } 1 solved How to get Object from json /

[Solved] Can you downgrade from VS 2019 to VS 2017

You don’t have to downgrade. Visual Studio 2019 and 2017 run side by side. Installing Visual Studio 2019 installs a new application in a different path. It doesn’t upgrade VS 2017, so there’s no reason to downgrade. I’m using VS 2017 and VS 2019 on the same machine for about 6 months now without issues. … Read more

[Solved] SQL query to get list of months start from current month

look at this query. it’s just for demonstration, DECLARE @YEAR INT SET @YEAR = (SELECT YEAR(GETDATE())) DECLARE @MONTH INT SET @MONTH = (SELECT MONTH(GETDATE())) DECLARE @DT TABLE(ID INT, MONTHNAME NVARCHAR(20)) INSERT INTO @DT SELECT NUMBER AS ID, DATENAME(MONTH, CAST(@YEAR*100+NUMBER AS VARCHAR) + ’01’) AS MONTHNAME FROM MASTER.DBO.SPT_VALUES WHERE TYPE = ‘P’ AND NUMBER BETWEEN @MONTH … Read more