[Solved] Header functions

[ad_1] Assuming that “didn’t work” means “didn’t affect the ScreenArray in my MonitorArray“, it’s because getScreen returns a copy of the array element ScreenArray MonitorArray::getScreen(int arrayPointer) while the new member function most likely works with the array directly. You’ll need to return a pointer to the array element instead: ScreenArray* MonitorArray::getScreen(int arrayPointer) { if (arrayPointer<0 … Read more

[Solved] Is it possible to run scanf like this? [closed]

[ad_1] I think this is what you are trying to do: int main() { int numList[5]; int i; for(i = 0; i < 5; i++) { printf(“Input number %d “,i); scanf(“%d”,&a[i]); } printf(“Your numbers: “); for(i = 0; i < 5; i++) { printf(“%d, “,a[i]); } printf(“\n”); } The method that I used for printing … Read more

[Solved] Cannot group strings correctly if use IEnumerable.GroupBy in C# [closed]

[ad_1] To really make sure it comes out as you want it, you could do it like that: var val = val1 .GroupBy(f => Path.GetFileNameWithoutExtension(f)) //group by filename .OrderBy(group => group.Key); //here’s the “Sort” foreach (var group in val) { var q = group.OrderByDescending(f => Path.GetExtension(f)); //order the filenames for outputting foreach (var f in … Read more

[Solved] basic python syntax [closed]

[ad_1] A C struct can be packed into flat binary data, which is what Python 2 calls a string. The struct module lets you take a string that represents one of these C structs, and “unpack” it into a Python data structure. To do so you call struct.unpack. You need to specify a format string … Read more

[Solved] Need php script just like used by mysmartprice dot com on Go To Store button (URL Cloaking) [closed]

[ad_1] I’m not 100% sure if I got your question right, but this is my guess of you mean: Use PHP’s header method like this: <?php if(!isset($_GET[“p”])) exit(“No parameter \”p\””); $p = $_GET[“p”]; header(“LOCATION: $p”); ?> Save the file as redir.php and then use it as http://mysite.com/redir.php?p=http://google.com/. 1 [ad_2] solved Need php script just like … Read more

[Solved] Unable to output anything. [closed]

[ad_1] Review your syntax for calling functions: S2 = *studentData(S1); I believe functions are called without the ‘*’: S2 = studentData(S1); There may be more like this in your program. Edit1: Passing by reference, returning pointer to passed reference On further inspection of your program, the function studentData receives a Student variable passed by reference. … Read more

[Solved] My is bigger than my [closed]

[ad_1] Is this similar to what you are trying to accomplish? http://jsfiddle.net/ha7fK/1/ I changed the width to 300px for the demo at jsfiddle. Just change 300px to 900px HTML <body> <div class=”width900″> Width of 900px </div> <div class=”widthfull”> <div class=”text”> Width of 100% </div> </div> <div class=”width900″> Width of 900px </div> </body>​ CSS body {width:100%;} … Read more

[Solved] Calling a number in an array

[ad_1] you need to write service to check if current call is ended or not. after disconnection of one call you can dial next number from your array in onRecieve method of BroadcastReceiver. code to check call is disconnected or not. switch(state) { case TelephonyManager.CALL_STATE_IDLE: Log.d(“Call”,”Outgoing Call finished”); break; case TelephonyManager.CALL_STATE_OFFHOOK: Log.d(“Call”,”Outgoing Call Starting”); break; … Read more