Programming :: Make The Program Check If Either On Of The Input (either $Title Or $Author) Is Not Filled Up
Jan 11, 2010
Title : Author : Price
France : Mark : 40
Persia : John : 50
how i arranged my database. I am trying to write aprogram which does a search either using Title, Author or both.
[Code]....
but i am still unclear on how i am able to make the program check if either on of the input(either $Title or $Author) is not filled up, and if one of it is not filled up, use the other one which is filled to do a search.
View 6 Replies
ADVERTISEMENT
May 2, 2010
after upgrading from Karmic Koala 9.10 to Lucid Lynx 10.04, i notice something different with title bar on every window opened.
for example:
"Google - Mozilla Firefox" is not at the middle of the window title. and on Lynx it's on the left.
View 6 Replies
View Related
Mar 19, 2010
I would like to create a small C tool. I encounter a problem of how to make a function to check an input chars contains numbers (started from the second element).
Some samples:
char *mychar= "a3547"; (The result of function checking this is true)
char *another_char = "t6548"; (The result of function checking this is true)
char *next_char = "appl3"; (The result of function checking this is false)
char *new_char = "b1aa3"; (The result of function checking this is false)
View 4 Replies
View Related
Jul 27, 2013
I need a script that dose the following checks if files exists by read input from a file then compares them to the files listed in the directory if they don’t exists the script would report back which file dose not exists. I also need to format the output so that files are grouped in different groups, group A, B, and C and etc based on file name. I would like the output of that do not exists files to be sorted based on second number in the file name than group according. I understand some of the basics of bash scripting something along of the lines of a loop and if statements might do the trick. Below is what I have so far. I don’t car so much about the script reporting back the file exists I prefer to only know if the file is missing and is less than 3 days old. Problem is if a file dose not exists in the reports file the test compares against the wrong file.
Group A
Foo22000.tar.gz
Foo22010.tar.gz
Group B
foo25000.tar.gz
foo25100.tar.gz
Group C
foo26000.tar.gz
Code] ....
View 2 Replies
View Related
Aug 14, 2010
I am creating a 15 integer array which is input from the user and outputted for the.
Ex.
Enter the array values: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Your values are: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Code:
View 4 Replies
View Related
Apr 11, 2010
i have to write a program which checks the information inside a text file to make sure it is all integers and then convert the integers to roman Numerals. My program seems to have a bit of a problem and im not sure where exactly the problem is....
Code:
#include<stdlib.h>
#include<string>
[code]....
View 8 Replies
View Related
Apr 13, 2011
I started to run a C++ my program in Linux and I don't know how to test my program that works fine with a text file. This is a project for my uni and to explain more clear, My program is a sample database for modify or add and search and it read data from a binary file and also write into a binary file. I have got an input from my lecture and she said after compiling in Linux I must write:
1-to compile:
Code:
g++ (files with cpp)
2-to see the output:
Code:
./a.out
3-to test with input:
Code:
./a.out < input.txt >
My problem is in step three. What I must write in the command part after" step2" to see the output?
View 3 Replies
View Related
Sep 25, 2010
I have a file with two fields of numbers that I want to use as input for another program.
Code:
The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.
View 9 Replies
View Related
Apr 7, 2010
i am trying to write a program which will read input from a text file, check if each line contains any alphabets and then display a message imforming me if there is an alphabet in each line. My text file is formatted in this way...
[Code]....
View 2 Replies
View Related
Jun 3, 2011
I am writing a simple C program which has to find whether the system is connected to network/internet or not..
View 10 Replies
View Related
Feb 22, 2010
I want to check whether a USB is plugged in its slot from a C program. I want to make use of /proc interface for the same. During my reading i found that /proc/bus/usb/devices will tell how many USB devices are currently present.
So whether i can open this file and use stat call to identify whether the size is 0. If size is 0, i can assume no USB present. Else i can assume USB is present.
Whether my understanding correct. If USB inserted, how can i check the folders present in the USB stick.
View 2 Replies
View Related
Nov 13, 2010
I have Soad Linux installed. E17 environment really works fast for me. But I have a question, how do the one make window manager to be more feature filled? For example other e17 Linux distributions has a full path of file directory on the window tools frame so you can simply click on any directory from this list like "Home/Media/Movies" and you are brought back to the selected directory (Home for example). I managed to find how to enable it, but that section of windows manager doesn;t seem to work well, it is too small horizontally so in order to see other directories the one has to click small arrows and scroll. Resizing doens;t allow to make it bigger, how could I fix that?.
Also how do the one make the mounted mediums list on the left, similar like in gnome windows manager? I found a control panel which lets you choose between KDE, Gnome and LXDE (I think) for e17 But changing between them doesn't seem to change anything. Yes I rebooted the pc so it could take the effect, but no changes were made.
View 1 Replies
View Related
May 19, 2010
I would like to know how to make a script that can check that i input 3 letters and 3 numbers in some field.
i am completely noob in this programming scene, but think its quite interesting.
View 13 Replies
View Related
Apr 6, 2011
basically i have to create a simple program with will continually read input from the user until they enter a blank linei know how to read in certain input but not sure how to get it continually in a loop
View 2 Replies
View Related
May 5, 2010
I would like to use Japanese kana (hiragana, katakana, kanji) on Ubuntu but everything that I've tried to get it set up and running isn't working. The Spanish that I have set up is working perfectly so far.
I've read, the SCIM input program should start up automatically when loading a program, it doesn't. When I have it loaded I cannot seem to get the input working.
View 9 Replies
View Related
Sep 6, 2010
how to make a script that will check service/s status whether running or stop and also will run stop services?
View 9 Replies
View Related
Jun 30, 2010
I want to know how can I make a GUI program from a shell program I coded in C a long time ago. Can anybody point me to good tutorials?
View 4 Replies
View Related
Jul 16, 2009
I am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...
View 4 Replies
View Related
Aug 18, 2010
Using PyQt4, is it possible to make a program where you can separately write custom QWidget subclasses and let the user add/remove them to your main app?
View 7 Replies
View Related
Jun 7, 2010
I'm trying to do a shell script which are suppose to run a program as a specific user at system boot up. The problem is that I don't know for sure how to make the script add the users password to the prompt when it's necessary.
Basically the program would be run like this:
sudo -u extrema program_name -r /srv/program_name -d
and in this example the password is, "hidden".
How would I make this script run this program as user extrema with the password "hidden" at boot-up? I know how to put the script in the rc.X directory and so on, its more the syntax of the code.
View 4 Replies
View Related
Feb 21, 2010
First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:
Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today
[Code]....
When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?
View 8 Replies
View Related
Nov 30, 2010
How to coded version info and other information likes author and company name into the ELF binary?
I prefer the put the version info during build step.
View 5 Replies
View Related
Jun 27, 2010
I need to make some C program under linux to make some scripts that can talk to my Server's Parallel port by sending some quare signal as high or low, so what i can do ?
View 4 Replies
View Related
Jul 28, 2010
I want to make a program that maintains a list of tags that can be attached to a set of files. Store the tags in the files. The main problem is that there is no way to get a list of all the tags without reading each and every file. And also what if you have an unused tag? Have a file that contains tag "keys" and file list "values". This seems like it would be fast and effective, but what if one of the files gets renamed?
View 12 Replies
View Related
Feb 12, 2011
Usually I open 5 terminals. And since each of those 5 terminals prints it's tile as: "username@username-laptop: ~" It becomes very hard to see what is what. So, I would like my terminal to always change it's title automatically to the program that I am currently using.
So, if I type "irssi", the title of my gnome-terminal-window, should change to: "irssi" for example.
View 2 Replies
View Related
May 15, 2010
I changed the 'Title' of a mp3 file using mp3info code...
Where comes this "Title" that Nautilus displays?
How can I change it?
View 4 Replies
View Related
Mar 1, 2011
Does the "Exhibit A" section at the bottom of the MPL need to be filled out within the license text itself? Is just including the "boiler-plate" license comment from [URL] in all source files and a verbatim copy of the MPL sufficient to cover a project?
There are blanks within the "Exhibit A" section that look like they should be filled out, yet it doesn't make sense that the license text should need to be modified in addition to the boiler-plate license comment.
View 1 Replies
View Related
Aug 21, 2010
So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.
This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt
That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt
changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.
View 3 Replies
View Related
Aug 19, 2010
I want to put check menu & check list in utility dialog.i dont know how i do this
View 1 Replies
View Related
Apr 4, 2010
I am trying to get the title of all the windows that i open,but cant make it right... code...
the problem is,that it will write the current windows many times,until i open another window,and so on.
View 1 Replies
View Related