Member Avatar

Hi, in this code how can I calculate coupling between objects CBO in java after parsing java file using registerCoupling method and retrieve any coupling between classes through argument, class name,type and so on .....

Member Avatar
0
17
Member Avatar

Hi, I am stuck with this logical error and I was hoping someone could point me in the right direction. When I debug this program the array's do not contain the data from the textboxes that the user enetered. as far as I know the code is in the correct format but I may be mistaken. I need to use the public shared array's in order to allow otheer forms in the program to access the data. Any and all help would be greatly appreciated. Thank You, C.D. I am not sure I enered this code propeerly in the web …

Member Avatar
0
8
Member Avatar

I am trying to join two lines in a text file and write as one line without a line feed,but the combined line is being forced to several line feeds. What I have on original file: [line1:abcdefghijklm CR line2:nopqrstuvwxyz CR CRLF] What i need: [output:abcdefghijklmnopqrstuvwxyz CRLF] What I am currently getting: [output:abcdefghijklmnopq CRLF rstu CRLF vwxyz CRLF] Line 2 gets joined to line 1 ok,but then line two gets broken into several line feeds. I have tried replace method on ("\r","") but the output is still the same,irregardless of the text editor that i use,i.e notepad++,ultrastudio,notepad and visual studio. Please …

Member Avatar
0
23
Member Avatar

I travel with my tablet a lot (iPad 2nd Gen) and I'm often checking out the forum and posting when I can, but I've been getting sick of it because I cannot post code back in reply. The Editor Toolbar just doesn't show up on mobile. I don't know if then is intentional but if it's not, then I'm really surprised it hasn't been fixed yet. Feedback is much appreciated.

Member Avatar
0
35
Member Avatar

Hello, I have a bug in my program somewhere and I cannot understand why. The program merely prints data from a binary file. Here is the code: #include <iostream> #include <fstream> #include <vector> #include <cstdint> using namespace std; int main(int argc, char *argv[]) { if (argc!=2) { cout<<"Invalid argument count, please provide a file name."<<endl; return 0; } fstream file(argv[1],ios_base::binary|ios_base::in); vector<int32_t> data; int32_t tmp; char buf; while (!file.eof()) {//complicated i/o to ignore endianness file.read(&buf,1); tmp=buf<<24; file.read(&buf,1); tmp|=buf<<16; file.read(&buf,1); tmp|=buf<<8; file.read(&buf,1); tmp|=buf; data.push_back(tmp); } for (size_t i=0; i<data.size(); ++i) cout<<hex<<data[i]<<endl; return 0; } Most of the time it works fine. However, …

Member Avatar
0
20
Member Avatar

Hi all, I am trying to run my code editor into my android app here is my link of editor [webpage code editor](http://guru99.com/demo-editor-php.html) I am using the below code for my code editor code link <script>$.noConflict();</script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/codemirror.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/clike.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/php.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/css.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="http://code.jquery.com/jquery-1.3.2.min.js"></script> <link href="http://test.guru99.com/js/Phpeditor/codemirror.css" rel="stylesheet" /> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/code2.js"></script> <link href="http://test.guru99.com/js/Phpeditor/style.css" rel="stylesheet" /> <pre class="codeguru">&lt;?php echo "Hello world"; ?&gt;</pre> <form class="hidden code-box" method="GET" name="sample" id="php_compile"> <div dir="ltr"><textarea class="php" name="codeguru"></textarea></div> <div class="hint" style="font-size:13px;">This code is editable. Click Run to execute.</div> <p><input type="submit" value="Run" style="background-color:#df5035; color:#ffffff;" /><br /> <img class="hidden" style="vertical-align: middle;" …

Member Avatar
0
7
Member Avatar

Good afternoon. I am using MS Visual Web Developer 2010 Express with VB.Net. I have 3 web pages - Site.Master with Site.Master.vb, Login.aspx with Login.aspx.vb, CreateAccount.aspx with CreateAccount.aspx.vb If I put the following statement in the Site.Master.vb Page_Load: `NavigationMenu.Items.Item(2).Selectable = False` it works fine. It makes the menu item unselectable. However, this is not where I want to do this. I want to be able to make the menu items selectable/unselectable programatically thru other programs such as Login.aspx.vb and CreateAccount.aspx.vb. I realize that NavigationMenu is declared in Site.Master and not declared in Login.aspx.vb or CreateAccount.aspx.vb How can I get this …

Member Avatar
0
27
Member Avatar

Creating a text editor. Thread 1 creates a file and listens for user input. Thread 2 checks for spelling mistakes. How do I show spelling mistakes on the console? Should I highlight the text that has the spelling mistake? I tried that but it just highlights the following text in the console. My code: void TeditCommand(){ ofstream output(paths[1]); string temp; if(output.is_open()){ cout << "\n\nText Editor\n"; cout << paths[1] << endl; cin >> temp; output << temp; output.close(); } else{ cout << "Cannot open file" << endl; } } void TeditSpellCheck(){ ifstream infile(paths[1]); string word; if(infile.is_open()){ while(getline(infile,word)){ if(word!=checker.correct(word))//if word not equal …

Member Avatar
0
9
Member Avatar

I'd been using [a cloud-based IDE](https://c9.io/) some for editing snippets of code/gists (integrates with GitHub), but it occurred to me this morning that instead of just using Google Drive as cloud-repository, I might use it as a code editor. Does anyone have tips on configuring Google Docs as a <insert specific programming language here> code editor? As far as syntax highlighting needs, I'm mostly interested in C/C++ family and Prolog, but I also mess about with snippets in Ruby, Python, and Lua.

Member Avatar
0
40

The End.