[Solved] pass pointer of struct in c programming

Firstly, this question looks fairly ridiculous, especially with a struct name of “Nooooooooooooooooooooooo”, it’s probably a waste of people’s time trying to answer. Secondly, your terminology is way off. Passing a pointer to a structure is very different from a pointer to a function! However in your code, the main issue is with this line: … Read more

[Solved] Could I use C++ code with JAVA code? [closed]

It sounds like what you need is a way to call C++ code from inside a Java program. Refer to this tutorial http://www.ibm.com/developerworks/java/tutorials/j-jni/j-jni.html It explains how the Java Native Interface, part of the Java Software Development Kit, can be used to call C++ code from Java and Java code from C++ programs. solved Could I … Read more

[Solved] Creating a database to query

well, as stated in the comments, your question is very unspecific, but i – as a fan of php and mysql – would say that those are ONE good answer to create a website like that. you can get free software suites to help you with this endeavour, start experimenting on your home computer, learn … Read more

[Solved] C++ convert *string to int [closed]

@shivam-gupta hi buddy, You maybe have been quite new to C/C++ programming is that correct? Some people at the forum require you to make explain what your problem is in detail also with the right C++ syntax. I know what you mean, and it had been a main problem with me in the beginning when … Read more

[Solved] How to print power series in php

You can do this: function exponentArr($num){ $arr = array(); for($i=0;$i <= $num;$i++){ $arr[$i] = pow(2, $i); } return $arr; } This will give you an array $arr with the required output. 2 solved How to print power series in php

[Solved] JAVA: I have to write a program to read “sentences” from a file and and then count the number of words and vowels per sentence [closed]

Couple of issues: You are using last user entered sentence while you should use text that you read from file like below: StringTokenizer words = new StringTokenizer(text); numberofwords=numberofwords+words.countTokens(); for (i=0;i<text.length();i++) { ch=text.charAt(i); if (ch==’a’||ch == ‘A’ || ch == ‘e’ || ch == ‘E’ || ch == ‘i’ || ch == ‘I’ || ch == … Read more

[Solved] C# – How to assign different lines of File.ReadAllText to individual variables? [closed]

actually your post is kind of “unclear” to readers but I did get your point regarding reading lines from text to variables I suggest you use File.ReadAllLines, then format your text with each values separated per line so it goes like this Source.txt LOOOALLOOAAL OOOOOOOAOOOO LLLLOOOOALLA then your line of code will be string[] students … Read more

[Solved] How to count people in JSON file? [closed]

You should be able to do this pretty easily using Array.map() and Array.filter(). Here’s an example var users = [ { “id”: 1, “username”: “Michael”, “users”: [ { “id”: 2, “like”: 1 }, { “id”: 3, “like”: 1 }, { “id”: 4, “like”: 0 }, { “id”: 5, “like”: 1 } ] }, { “id”: … Read more