User Profile
Collapse
-
Can you elaborate your question. I did not understand your requirement. -
Raj K replied to How can-i read integers from a file, where the first line contains unknown elements?in CRead a whole line split it with white space chars. Now you get set of word. Parse each word to get integer.
-RajXLast edited by Niheel; Dec 9 '10, 09:03 PM.Leave a comment:
-
Raj K replied to Whether NULL character is same as space char? If not then what exactly a NULL ll doin CThe NULL can be defined as
Code:#ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif
-RajX
_______________ _______________ _______________ _____
C++ Internals: http://www.avabodh.com/cxxin/cxx.htmlLeave a comment:
-
Raj K replied to Whether NULL character is same as space char? If not then what exactly a NULL ll doin CBoth are completely different. The space char is used for displaying space between characters that you see. This is used mostly for visual purpose.
While the NULL is mostly used to find out the end of the string or end of some data. The NULL has many other uses in programming.
-RajX
_______________ _______________ _______________ ________
C++ Internals: http://www.avabodh.com/cxxin/cxx.htmlLeave a comment:
-
- Make sure you have installed ncurses library before compiling.Code:#include <ncurses.h> int main() { initscr(); cbreak(); printw("Press Any Key.. "); getch(); endwin(); return 0; }
- While compiling, pass a argument -lncurses to gcc
-RajXLeave a comment:
-
Ideally you should not assume the fixed address of managed code if you think in terms of native code.
What you can do is to allocate memory using Marshal then copy the content of byte array to the allocated memory then point the IntPtr to that memoryLeave a comment:
-
Use this code to update the text box
this.BeginInvok e(new Action(delegate () {textBox1.Text = textBox1.Text + "Thread";}) );Leave a comment:
-
- From the assembly you need to call mangled name instead of the name that appears in C++ code.
- Different compilers use different strategies for name mangling.
- Here is name mangling described. This article uses g++ as compiler. You need to explore your compiler behavior for the same.
Here is the link -
http://avabodh.com/cxxin/namemangling.html
- If the link error is due to your C++ code, then look for extern...Leave a comment:
-
1) Dont declare big memory on stack i.e. local variable (mutation in the above example).
2)Use malloc to allocate the memory for result. And directly add to that memory instead of adding to first mutation then re return.
3) Even if you want to use the mutation. In the last simply assignment operator will not work. You will have to copy the data from mutation to the memory which is allocated for result.
- RajLast edited by Niheel; Dec 9 '10, 03:27 PM.Leave a comment:
No activity results to display
Show More
Leave a comment: