- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 4
42 Posted Topics
Re: system() command used here should generate desired output for dir, And i agree with Duoas as per output on console is concerned. Though to validate system call functionality, one can try to redirect the output to a file. [CODE] void main() { system("dir >>test_dir.lst"); getch(); } [/CODE] check 'test_dir.lst' for … | |
Re: It largely depends on, What type of copyright it carries ? Can you share the copyright message. | |
Re: Do you want place name from longitude and latitude ? Check this out for reference :- [URL="http://tajendrasengar.blogspot.com/2011/09/distance-between-two-locations-with.html"]Geocoder [/URL] Also check demo of it [URL="http://tajendrasengar.blogspot.com/2011/09/distance-google-map-api-demo.html"]here[/URL] | |
Re: Recently i got following site approve for adsense :- [snipped] Some point which are worth mentioning are :- 1) Do plan for an SEO session 2) Site with a defined purpose have more chances for approval. 3) Site with quality content always increases visitors loyalty rate. 4) Keep updating site … | |
Re: for which code statement you have overloaded operator= ? can you also share the song class. | |
Re: dumping of object directly into a file, will save member variables into stream. So the roll number, marks and name will be dumped. The memory layout of the object will get reflected in file also. So you can check memory view of object, in the same way it will be … | |
Re: What information you have related to device, do you got information about its lat/lng ? | |
Re: Submitting site multiple time to search engine will not actually increase your page rank, if you are talking about google. So try to drop as many backlinks you can, it will drive site growth into a very positive mode. Try to use webmaster tools to check the broken links and … | |
Re: Try writing default case for switch case to get the information of unsupported case. | |
I am trying following code for changing css attributes with the help of javascript, But its not showing desired output. Here is the code (trying on Chrome Browser) :- [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> div { width:100px; height:100px; background:red; position:relative; animation:myfirst 5s; … | |
Re: Context really matters here, best C++ compiler related to which view. like compiler which builds fast, compiler which helps code to execute fast and etc.. So the viewpoint really does matter. | |
Working with dll i got into a situation where loading a dll can cause security threat. lets say for example when you load a DLL, it gets same access privilege as the calling process. So if calling process is running with Admin privilege the loaded dll gets the elevated privilege … | |
Re: I agree with Mike's view, below code is exception prone:- [QUOTE]this->hotspots[8] = NULL;[/QUOTE] Array limits works from 0 to n-1, where n is the size of array. keep this thing in mind. And you must also free all memory which got alloctaed dynamically. | |
Re: One thought for it. Make an array of strings like strArrayStringNumber[10]; Which will have value {"zero","one", "two", "three", ..upto..."ten"} Then taking one digit at a time, pass it into array like if number is 213 take 2 first and call strArrayStringNumber[2], it will give corresponding string. So on for rest … | |
Re: Initialize all variables which you have used, before actually using them in code. It will help you in getting rid of the warning. | |
Re: can you clarify on the problem statement, it will be more useful in giving a thought over it. What kind of library and errors ? | |
Re: Some good SEO resource, follow it to read more on attracting traffic to your website. follow this link | |
Re: Try placing below code , just after getline (myfile,line); [CODE]if(line.empty() == true) { cout<<"no data in file to read"; break; }[/CODE] it will help in you getting the garbage data in the end. | |
Re: [CODE]cout << *p << endl;[/CODE] It will help you in getting the value of iterator , and in your case its an object of widget. So try calling widget methods on this; eg. (*p).getName() | |
Re: small correction to sundip code [QUOTE]currentLocation = chars_read; [/QUOTE] It should be currentLocation = chars_read - 1; //since in while loop it is post incremented | |
Re: Traverse the array and write that in a text file with extension .csv Write your 2d array entries in comma separated form ending with newline character. for example [CODE]cout<<TestArray[0][0]<<","<<TestArray[0][1]<<newline; cout<<TestArray[0][0]<<","<<TestArray[0][1]<<newline; [/CODE] I have provided just the format for you, for above task you can iterate complete array and write into … | |
Re: To get brief overview about them one can start with this link[snipped] One more good book adding to Narue is by Marl Allen Weiss 'data structure and algorithm analysis in C' | |
Re: I agree with caligulaminus, that with ASCII it will not give problem. Since ASCII need 1 byte for its representation. But if you talk about UNICODE content, then its not advisable to do so. Because UNICODE may use multiple bytes for character representation. | |
Re: Can take help of fscanf function too, which will help in retrieving data as per the format. definition for it int fscanf ( FILE * stream, const char * format, ... ); [B]Read formatted data from stream[/B] Reads data from the stream and stores them according to the parameter format … | |
Re: [QUOTE]So right now I have the user enter in the information but what I suppose to do is to use the following list objects push_front pop_front front[/QUOTE] Above are the methods on STL, So when you ask about their usage. You first need to understand generic STL's like List , … | |
Re: Yes it returns size_t, and i agree with Caligulaminus. If want to learn more about sizeof operator, check below link [URL="http://tajendrasengar.blogspot.com/2011/09/sizeof-operator-learning-with.html"]sizeof()[/URL] | |
Re: What kind of debug assertion are you getting, can you give some details about it ? | |
Re: Where are you planning to capture these event, at which level ? | |
Re: [QUOTE=ravanan;1525769]can anyone explain me how to use the inline function in c++ code with example?[/QUOTE] Sharing one article for the same [URL="http://tajendrasengar.blogspot.com/2010/03/what-is-inline-function-in-cc.html"]inline article[/URL] Above article will help in getting much deeper understanding about it. | |
Re: Move the declaration of int num,j,k=0,diag=0; out of the loop 'for(int cal=1;cal<=25;cal++)//print input' Because they are again and again getting reinitialized. I think this will solve your problem. | |
Re: Yes structure can be passed by reference. As firstPerson said you must take input in structure or you can initialize your structure with values a and b. [CODE] v1.a = a; v1.b = b; [/CODE] Write above code after declaration of var v1 and before calling function adD(v1); | |
Re: I just modified your while loop to perform two purpose : 1) To take input from user. 2) At the same time calculating frequency of occurrence; [CODE]//Mark each number to its correspoding element. int placeholder = 0; while (number != 0) { //myList[placeholder] = number; //placeholder++; myList[number]++; cin >> number; … | |
Re: I have removed your cost of calculating coins head up count totally, just have a look at it. Introduced one new variable nFalseCoinCount , to your code. It will account all your coins heads up count.:icon_biggrin: [CODE] #include<iostream> int main() { unsigned int N,Q,temp,op,A,B,count; scanf ("%u%u",&N,&Q); bool *coin=new bool [N]; … | |
Re: In C++ for reading some static data you can use .ini format file. Which is a format of configuration file. For saving data one can use custom format. And for limited data one can again use .ini format. | |
If i have process P1 which contain two thread T1 and T2, then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core. Which will give more performance ? If we assume C1 thread can consume … | |
I am just looking for information about dump file created by windows on crash. Want to understand its working. Please share your knowledge about this topic, you can post to it or can give me reference links. | |
Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with … | |
Re: you are facing problem of memory corruption, problems can be:- 1) it may be array bound raed. (reading beyond buffer limit) 2) it may be array bound write. (writing beyond buffer limit) 3) it may be accessing free location. One method to debug such code is by doing code review … | |
Re: you said cant read the data from file, so the actual problem lies in reading a file or displaying output. Can you just explain your problem. | |
In c++ pre and post operator are used with variables where one need to just increment or decrement value by 1.For incrementing value ++ operator can be used and for decrementing -- operator can be used. Its use is very simple one can easily say ++i or i++, to increment … | |
Re: I think you can use system() call in windows for that, with system() call one can easily supply dos based command. And as you want to switch off services related to internet. You can use "net start" and "net stop" command for enabling and disabling any system services. So there … | |
I read some time back that memory operation on stack is much faster than heap. With this information the first thing came into my mind was that if we get a way to allocate memory dynamically on stack it would surely help us to optimize memory operation cost. I started … |
The End.