Discover the world's scientific knowledge

With 135+ million publication pages, 20+ million researchers and 1+ million questions, this is where everyone can access science

You can use AND, OR, NOT, "" and () to specify your search.

PublicationsAuthorsQuestions
What are the advantages of C++ over C in numerical Computations?
Question
  • Oct 2013
The object oriented programming language C++ may be considered a superset of C. But in numerical computations, what are the advantages (or computational features) of C++ over C?
… 
  • 104 Answers
Why all the successor and predecessors in a tree are near each other?
Question
  • Mar 2015
We know how the regular tree walk algorithm works. If you have some values in the tree then the tree walk algorithm prints everything in order. This means all the successor and predecessor are near each other. Explain Why all the successor and predecessors are near each other with the tree walk algorithm. Remember about the situation when there is a sub-tree and when there is no sub-tree.
… 
  • 481 Views
  • 4 Answers
Real time programming in c++
Question
  • Jul 2011
Would you please help me to find good resources to learn about real time programming in c++?
Thank you in advance.
… 
  • 11 Answers
I have worked with command prompt in widows. and run the exe file. after that show me this error: This application has requested the Runtime to?
Question
  • Dec 2016
the complete error is:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
the tool is kiva. Kiva is a free and open source ground heat transfer calculation tool written in C++ and Kiva is a command line tool.
http://bigladdersoftware.com/
… 
  • 71 Views
  • 4 Answers
How can I convert MATLAB code to c/c++ code?
Question
  • Mar 2015
In matlab I have used imfilter, imresize and many other funcs that are not working with matlab coder ...so is there any other solutions?
… 
  • 5 Answers
How to fill text in byte[] C#?
Question
  • Jul 2014
I had byte array which was derived from an image , then this array text was encrypted to be saved in database, I want to retrieve this text decrept it then transfer it to byte array again to retrieve the image , how can this be done?
… 
  • 209 Views
  • 4 Answers
How to port Android code to iOS code?
Question
  • Jun 2013
I have written an application on a Android platform. In this app, I'm using OpenGL ES2 and some C++ code with Android NDK. Now, I want to port this app to iOS (iPhone, iPad) platform. I find that IKVM/ MonoTouch or j2ObjC can convert Java application into iOS application. However, in this program, some C++ code and OpenGL are used, so I don't know how to port my program to iOS platform.
Can you help me deal with this problem?
… 
  • 4 Answers
I am having difficulties to code an addition operation for a calculator?
Question
  • May 2015
Here are my codes:
if i want to do this addition 11+22 upon clicking on = button it should give me 33 but it does not work. the calculator must be able to perform addition correctly please help?
ActivityMain <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
tools:context=".MainActivity" />
<Button
android:id="@+id/btn1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/editText1"
android:layout_marginTop="36dp"
android:text="1"
android:onClick="btn1Click"/>
<Button
android:id="@+id/btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/btn1"
android:layout_alignBottom="@+id/btn1"
android:layout_toRightOf="@+id/btn1"
android:text="2"
android:onClick="btn2Click" />
<Button
android:id="@+id/btn3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/btn2"
android:layout_alignBottom="@+id/btn2"
android:layout_toRightOf="@+id/btn2"
android:text="3"
android:onClick="btn3Click"/>
<Button
android:id="@+id/btn4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btn1"
android:layout_marginTop="15dp"
android:text="4" />
<Button
android:id="@+id/btn5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/btn4"
android:layout_alignBottom="@+id/btn4"
android:layout_toRightOf="@+id/btn4"
android:text="5" />
<Button
android:id="@+id/btnAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/btn3"
android:layout_alignParentRight="true"
android:text="+"
android:onClick="btnAddClick"/>
<Button
android:id="@+id/btnSub"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/btn5"
android:layout_alignParentRight="true"
android:text="-"
android:onClick="btnSubClick"/>
<Button
android:id="@+id/btnDiv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/textView1"
android:layout_alignParentRight="true"
android:text="/" />
<Button
android:id="@+id/btnMul"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/btnDiv"
android:layout_marginTop="14dp"
android:text="*" />
<Button
android:id="@+id/btnEqual"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/btnMul"
android:layout_marginTop="15dp"
android:text="="
android:onClick="btnEq"/>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/editText1"
android:gravity="right"
android:textAppearance="?android:attr/textAppearanceLarge" />
public class MainActivity extends Activity {
Button btn1;
Button btn2;
Button btn3;
Button btnAdd;
Button btnSub;
String btn_val1;
String btn_val2;
String btn_val3;
String btn_valAdd;
String btn_valSub;
EditText edit_text;
TextView textview;
int res;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void btn1Click(View view)
{
btn1 = (Button) findViewById(R.id.btn1);
btn_val1 = btn1.getText().toString();
textview = (TextView) findViewById(R.id.textView2);
textview .append(btn_val1);
}
public void btn2Click(View view)
{
btn2 = (Button) findViewById(R.id.btn2);
btn_val2 = btn2.getText().toString();
textview = (TextView) findViewById(R.id.textView2);
textview .append(btn_val2);
}
public void btn3Click(View view)
{
btn3 = (Button) findViewById(R.id.btn3);
btn_val3 = btn3.getText().toString();
textview = (TextView) findViewById(R.id.textView2);
textview.append(btn_val3);
}
public void btnAddClick(View view)
{
btnAdd = (Button) findViewById(R.id.btnAdd);
//res = Integer.parseInt(btn_val1) + Integer.parseInt(btn_val2) + Integer.parseInt(btn_val3);
btn_valAdd = btnAdd.getText().toString();
textview = (TextView) findViewById(R.id.textView2);
textview.append(btn_valAdd);
}
public void btnSubClick(View view)
{
btnSub = (Button) findViewById(R.id.btnSub);
//res = Integer.parseInt(btn_val1) - Integer.parseInt(btn_val2) - Integer.parseInt(btn_val3);
btn_valSub = btnSub.getText().toString();
textview = (TextView) findViewById(R.id.textView2);
textview.append(btn_valSub);
}
public void btnEq(View view)
{
textview = (TextView) findViewById(R.id.textView2);
if(btnAdd != null)
{
if(btn_val1 != null && btn_val2 != null )
{
res = Integer.parseInt(btn_val1) + Integer.parseInt(btn_val2);
textview.setText(String.valueOf(res));
}
else if(btn_val1 != null && btn_val3 != null)
{
res = Integer.parseInt(btn_val1) + Integer.parseInt(btn_val3);
textview.setText(String.valueOf(res));
}
else if(btn_val2 != null && btn_val3 != null)
{
res = Integer.parseInt(btn_val2) + Integer.parseInt(btn_val3);
textview.setText(String.valueOf(res));
}
else if(btn_val1 != null && btn_val2 != null && btn_val3 != null)
{
res = Integer.parseInt(btn_val1) + Integer.parseInt(btn_val2) + Integer.parseInt(btn_val3);
textview.setText(String.valueOf(res));
}
}
else if(btnSub != null)
{
res = Integer.parseInt(btn_val1) - Integer.parseInt(btn_val2) - Integer.parseInt(btn_val3);
textview.setText(String.valueOf(res));
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
… 
  • 625 Views
  • 6 Answers
How to obtain matching results C implementation of SVD with corresponding Matlab built-in function?
Question
  • Jan 2015
While working on matlab to C conversion, I have encountered a problem which involves result mismatch. The function I've been trying to validate is an SVD function with its corresponding matlab built-in function. The result that is obtained from the vector of singular values (the last n by n matrix) in C implementation produces a result with column mismatch as compared to its corresponding matlab built-in function. In some of the cases the obtained result  produces opposite signed values as well.
I have attached the c implementation, I kindly ask for your cooperation in pinpointing the problem which could help me find a solution.
… 
  • 3 Answers
What is the best IDE for C/C++ which could help in easy debugging (in Mac)?
Question
  • Sep 2016
I want to know if there is any IDE for C/C++ which could help in easy debugging of a large C/C++ project in Mac.
I have tried Netbeans but it doesn't help although there is debugging process there but as it encounters any error it stops all of a sudden without giving any details about the line number where error is occurring.
… 
  • 24 Answers
1
2
3
4
5
6
7
8
10
App Store
Get it on Google Play
Company
About us
News
Careers
Support
Help Center
Business solutions
Advertising
Recruiting
© 2008-2023 ResearchGate GmbH. All rights reserved.
  • Terms
  • Privacy
  • Copyright
  • Imprint
Join for free
Log in