..here my problem is i should check whether the speed ranges overlap or not and if they overlap i should display a message saying the speed ranges cannot be overlapped.
Minimum Maximum Rate
1 15 10
16 25 15
...
Hello , can anyone tell my what does the #pragma can do in the c language . what are its uses and why the above program is not giving the output 'inside v1'& 'inside v2' in the following program ...
# include<stdio.h>
void v1();
void v2();
# pragma startup v1
# pragma exit v2
int main()
{
printf("inside main\n");
return 0;
}
void v1(...
Basically looking for a small program that will do nothing but activate the F6 key every x seconds for the active window, x being whatever number I enter, and the program stops with the hit of like ctrl+z or something. What would be a good way to do this?
...
Hi.
I would like to make my own program but I have no idea how.. for example I want to make a typical 'Hello $user' program.
So..
├── hi
│ ├── hi.sh
│ ├── hi_to.sh
hi.sh
#!/bin/bash
~/hi/hi_to.sh $1
hi_to.sh
#!/usr/bin/php
<?php
echo "\nHellO ".$argv[1]."\n";
?>
Run it in terminal:
me:~/hi
→ ./hi.sh User
He...
I'd like to plot this vs. time, with the actual dates (years actually, 1997,1998...2010). The dates are in a raw format, ala SAS, days since 1960 (hence as.date conversion). If I convert the dates using as.date to variable x, and do the GAM plot, I get an error. It works fine with the raw day numbers. But I want the plot to display t...
axis.Date(1,sites$date, origin="1960-10-01")
Error in as.Date.numeric(x) : 'origin' must be supplied
Why is it asking me for the origin when I supplied it in the above code?
...
Hello, I've got the following question:
Is it possible te disable everything in windows except the program it's running?
I need to program an application on a touchscreen (fullscreen), where people can fill in a survey.
The only thing they should use is this program. (for protection of the survey anwsers and other secret stuff :p )
And...
Hi all, I have written a code and Now I want to implement this on cuda GPU but I'm new to synchronization so please help me with this, It's little urgent to me. Below I'm presenting the code and I want to that LOOP1 to be executed by all threads (heance I want to this portion to take advantage of cuda and the remaining portion (the porti...
In what ways can a flag be used within the program design?
How can you use multiple flags?
...
Hello everyone,
Summer is here! And it is time for me to find a summer programming project as I am very fond of taking learning into my own hands.. My question to you is this, I am looking for methods to extract various data from various websites. I know there are programs out there you can buy but being that I am trying to learn I wan...
I want to write .bat script which works under all flavours of Windows, no matter if 32 or 64 bit.
In this script I want to run some file.exe. That file is located in C:\Program Files\ under 32-bit systems or C:\Program FIles (x86)\ under x64 systems. I can write:
"%ProgramFiles(x86)%\file.exe" under 64bit systems
or
"%ProgramFiles%\fil...
So I am starting a consol programm from .bat file. I want it to run as a process but not showing any windows. How to do such thing?
...
[Edit1:]
For the seqName, I declare it as a global parameter at the beginning of the file as
char seqName[20];
[Edit2:]
Aren't those number of passing to the program during the actual execution? I got the following message just by using the valgrind tool. The command I input is:
jl@ubuntu:~/work/dsr_analysis$ valgrind --tool=memchec...
I write two pieces of c programs like following, during memcheck process using Valgrind, a lot of mem leak information is given.
int
GetMemory(int framewidth,
int frameheight,
int SR/*, int blocksize*//*,int ALL_REF_NUM*/)
{
//int i,j;
int memory_size = 0;
//int refnum = ALL_REF_NUM;
int input_search_...
Hi everybody,
I am in a situation, in which my program needs to do processing and then wait for some interval, let's say 5 seconds and the do the same processing again.
I don't know how to implement the logic.
I have developed a logic, the code is below:
private void ProcessEmail()
{
PprocessEmail:;
//Do whatever ...
I'm looking for a simple way to make high level designs of the structure of a program I'm working on. Something along the lines of class dependencies and connections, but I'm using it for planning, not for analysis, so it needs to be some sort of drawing app rather than a code analysis tool. I've been using Openoffice Draw but it's somew...
I have a developed a C++ application using 32 bit and it create a executable file. This project has uses some external library like window socket 32bit, Qt GUI and boost library. The dll is located at same directory with the executable.
I wonder how can i run this application on window 7.
MY window 7 version is Home Premium 64 bit. Th...
A couple of friends and I are working on a project for our final thesis that will run in the Iphone, and we're looking at the prospect of purchasing an Apple Developer Program License.
I'd like to know if we could purchase a license between the three of us, and still be able to deploy to the iphone individually. That is, each of us wo...
Hello, I'm trying to test the OpenCL functionality of building a program from pre-compiled binaries. So far I've managed to create the binary file, but I'm having trouble to load it. I'm trying to adapt this code for use with the C++ bindings:
FILE* fp = fopen("oclLLtoUTM.ptx", "r");
fseek (fp , 0 , SEEK_END);
const size_t lSize = ftell...
In my application I have a number of Activity classes. When I run on emulator (or install to a device) a corresponding number of program shortcuts show up in the programs menu. Why does this happen and how can I avoid it?
Many thanks.
...