Programming :: Draw A Circle In C++ Without Making Use Of BGI

Apr 10, 2010

How can one draw a circle in c++ without making use of BGI.

View 4 Replies


ADVERTISEMENT

Programming :: G++ - Draw On The Screen In X Windows Using C++?

Jun 9, 2011

I am looking for a way to draw on the screen in X Windows using c++, the GNU g++ compiler. I don't want to mess with requirements so just how to draw in x windows. Can it be done with g++ or is there something else I need to use.

View 8 Replies View Related

Programming :: Draw To Screen Without Using A GUI / Xwindows?

Mar 10, 2010

I am very new to Linux and I hope someone on here can provide some help.

Goal:
I am am developing an embedded application on Linux 2.6 that will hopefully run without a GUI. There will be no user input just simply displaying information to the user in a graphical form. I will be drawing the screen in C and outputting this to the display.

Problem:
I don't know how to draw to the display? From reading and talking with others, I think I can write to the frame buffer and that will output to the display, but I am not sure this is rite. If it is correct, can someone explain how this is done? Is there another way to draw to the screen without using the windows API?

View 11 Replies View Related

Programming :: QSplashScreen And QPainter - Draw Shapes And Gradients

Apr 7, 2011

Following on from my issues with QSplashScreen, I am wanting to investigate the QPainter class(es) some more.

Code:

How would I best achieve this:

- Draw some shapes and gradients with QPainter/QPen etc
- Create a splash screen out of it
- Display SplashScreen.
I cannot find anything that doesn't involve

Code:

I am comfortable making splash screens out of images, but now I want to try drawing one myself.

View 2 Replies View Related

Programming :: Utility That Draw The Graph Or Flow Chart Of An Application?

Oct 28, 2010

Does any one know any software or utility that draw the graph or flow chart of an application (if application code is on multiple files)?

View 1 Replies View Related

Programming :: PHP Booleans - Print Draw The First Image From A Function Then Hide The Rest Of The Images Using 'display: None'

Jul 29, 2010

I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:

[Code]....

View 1 Replies View Related

Programming :: Making An Awk Script ?

Sep 29, 2010

Making an awk script. If you tell me to read the documentation.. I know.. you're right.

By the way, here is some input

Code:

My awk program has to work in this way:

until the end of the document if the beginning of the line is "START11" while the beginning of the line is different form "END11" print the whole line (print the "END11" line too)

View 1 Replies View Related

Programming :: Making A Graph In C

Dec 1, 2010

I am trying to understand how can I make a graph in C. So I wrote some program.

Code:
#include "declarations.h"
graph root = NULL;
int main()
{

[Code]....

View 6 Replies View Related

Ubuntu :: Getting The Circle Dock Equivalent?

Feb 12, 2011

Circle Dock which is(in my opinion)a very cool Open source application which is essentially a circular, Oval, spiral dock for windows which is implemented in .Net using C#. Ever since I got to use it on windows I have been desperate to find an equivalent for Linux-The closest thing I have found is Circular application menu which is very different. I was wondering if anyone knew of something like circle dock that runs on linux?

View 5 Replies View Related

Programming :: Making A Graphic Animation In C#?

May 3, 2011

I'm trying to create something like this:[URL]...when you press "fire" you see the graphic.My program already does all the math, but what i want is that animation of the projectile moving depending on the entered data.i really don't know how to accomplish that.I'm using Gtk#.what would i need to create something like that??

View 1 Replies View Related

Programming :: Making A Scrambler From Python?

Jul 28, 2011

was making a scrambler from python and this is what i have

# Scramble word re-arrange characters
import random
scrambler= raw_input("put a word and i will unscramble:")

[code]....

View 9 Replies View Related

Debian :: Dpkg Install - Circle Dependances ?

Aug 31, 2011

I have some question about package manual installation - time by time I am facing up with some circle dependances issue: 2 packages could be dependent by each other (f.e. pearl or odbc), so error comes when you try to install it with dpkg -i option, so I would like to know how to install this packages together?

View 3 Replies View Related

Ubuntu :: Mouse Rainbow Circle On Macs?

Nov 20, 2010

Has anyone seen the mouse rainbow circle on Macs? I saw one in an Ubuntu derivative. What program has that in it. My mouse does a hour glass, Macs have a rotating rainbow circle

View 1 Replies View Related

Programming :: Making A 1 Command Line Argument?

Jun 8, 2010

I need to write a script that will take 1 command line argument. The argument will be a username. The script will determine if the user exists on the system and will print an error if it does not. If the user does exist it will determine if the user is currently logged in, if the user is not logged in it will determine the last time the user logged in and display the file in the users home directory that was most recently modified.

View 2 Replies View Related

Programming :: Get Started With Making 'a SIMPLE Dock'?

Mar 22, 2011

This is probably hopelessly ambitious as I'm not a C or C++ programmer (I normally like to stick to scripting languages like BASH or Perl). Basically I'm looking on good advice to get me started with writing a Application Dock with the functionality of the OSX dock but without the overly flamboyant graphics that have characterised the Linux versions.At the moment the closest I've found to what I would like is bbdock. However it falls well short of the functionality of what I would like.

What bbdock does is read a file to create an icon for the openbox dock/fluxbox slit/wmaker whatever that launches an application when first clicked, shows an little arrow when the application is running, and brings the application to the fore when clicked once running.Here's a screenshot of it doing just that.The drawback to bbdock is that it doesn't really look for running applications, only those launched from bbdock. So for example it wont notice if I've launched an instance of pcmanfm from the openbox menu. And therefore it obviously also doesn't add icons for other applications that are running.

What I would like to be able to do is detect new running applications and add a bbdock icon for them. Also to detect if an application already with a shortcut has been run and update it's status to show it's open. Probably have an up and down arrow to move the icons up and down when there are too many to fit on the screen. None of the above needs fancy animation. The fade to gray effect used by bbdock is quite nice and could probably be augmented with a fade in and out to grey to represent another action, say fading to grey and back when launching and greyed when iconified.So, my question is what do I need to get started doing this? Am I best using the pretty outdated bbdock wmaker dockapp style? What functions and libraries am I likely to need to achieve the effects I want? Are there any examples of how to monitor running applications (well windows and figure out what constitutes a new application) that I could look at for inspiration. Is there anyone who's into C++ for linux who would be interested in helping me out to get this small project working?

View 8 Replies View Related

Programming :: Bash: Making A Variable Out Of Two Other Variables?

Mar 18, 2010

I need to find the value of:

Code:
$Namenumber
My script asks for the name you want to look up and I want it to return the value of $Namenumber

I was thinking:

Code:
number=$"$name"number
but this returns

Code:
$Namenumber

but does not actually resolve what the variable $Namenumber is equal to.

View 4 Replies View Related

Programming :: Making Existing MS Excel App Web Based

Jun 7, 2010

I have a LAMP based web hosting account (BlueHost). I have an existing simple MS Excel application which I would like to make it web based. However I am not sure what tools or features of PHP are out there that will aid me with this task. Here are some details:

1. I don't want to create an entire Excel program online. For that there are plenty of existing applications like Google Docs, MS's own online version of Excel, etc.
2. My current excel file uses some of the following excel functions:
a) SUM
b) Product Sum
c) Conditional Formatting (like changing font color if an amount is below a threshold, etc.)
d) Sorting (Date, Amount)
e) Drop Down Box to select pre-defined values

3. Ability to add/delete/modify a entry (row)
4. I don't care whether the application has the same look-n-feel as MS Excel.

As you can see it is a very simple home grown excel application with few basic mathematical functions. Here are some few thoughts that I have currently in my mind:

i) Just start coding intuitively as you would develop a normal web based application.
ii) Do (i) but use some of the PHP's excel oriented helper functions (COMs?) if there are any
iii) Use completely a different set of tools permitting that they run on LAMP environment.

I could have started with (i) but before making a costly mistake I thought I would get some opinion from the community to see if this is the right approach.

View 1 Replies View Related

Programming :: Making A Debian Source Package?

Jan 14, 2011

I'm building a debian source package to upload on my launchpad PPA. Does anyone know what file I should create or edit to make a menu entry for the app? Or a link to some *specific* doc? (The debian doc is quite overwhelming...)

View 2 Replies View Related

Programming :: Making A Project Distribution Folder?

Jun 25, 2010

I'm trying to make my first c project (a simple tic tac toe console game), and I am wondering how to make a final product (copy all source code files to a distribution folder upon compilation). Should I use a bash script or should I use a makefile to make the distribution folder? I'm not terrible familiar with either; I have a basic makefile to make an executable, and that's about all I know of make.

And if I do use a bash script, how do I copy over source code files? I tried cp ./*.c and cp ./*.h, but I think the script read it literally as moving a file named ./*.c (and ./*.h), and couldn't find it.

My makefile is pretty much this:

Code:
objectFiles = main.o io.o board.o game.o
ttt : $(objectFiles)
cc -o ttt $(objectFiles)

View 2 Replies View Related

Programming :: Making The Mplayer To Skip Some Files?

Jun 6, 2010

GNU/Linux kernel 2.6, Slackware 12.0
MPlayer 1.0rc2-4.1.2
GNU Bash 3.1.17

I've got a set of MP3 files on dir .../foo/ and I want mplayer to play them sequencely but skipping some of them. If I run 'mplayer *' this will do but ofcourse won't skip any files. I think a shell script could be written to do that. It would be something like this (using some pseudocode):

#!/bin/bash
#After an example from Intro_Linux by M. Garret.
LIST=$(ls *.mp3)

[code]....

View 3 Replies View Related

Programming :: Making Sure Script Is Running In Bash?

Feb 15, 2011

is this a good way of doing it? Shall I use & when starting the new process? Itested in bash and dash.

testbash=$(ps -e | grep $$ | grep bash)
if [ 0 = ${#testbash} ]; then
echo "new process"

[code]...

View 11 Replies View Related

Programming :: RHES 5 - Making Sed Snippet To Be Portable

Jul 27, 2011

I have an odd issue that I am running into. My objective is to insert the following lines at the end of /etc/inputrc on an RHES box:

Code:
# alternate mappings for "page up" and "page down" to search the history
"e[5~": history-search-backward
"e[6~": history-search-forward

I would like this sed snippet to be portable and thus far it's worked. However, I ran into one box where after I ran the snippet, Subsequent sessions lost the ability to use the letter "e". The original version I was using looked like this:

Code:
mv /etc/inputrc /tmp/inputrc.orig
sed 's/'$endif'/
# alternate mappings for "page up" and "page down" to search the history
"e[5~": history-search-backward
"e[6~": history-search-forward
&/' /tmp/inputrc.orig > /etc/inputrc

Then instead of using s/ I thought perhaps i/ would be better so I re-did it as:

Code:
mv /etc/inputrc /tmp/inputrc.orig
sed '/'$endif'/ {
i
i
# alternate mappings for "page up" and "page down" to search the history
i
"e[5~": history-search-backward
i
"e[6~": history-search-forward
}' /tmp/inputrc.orig > /etc/inputrc

Both of these produce the expected result BUT they both resulted in the loss of the letter "e". As I mentioned earlier in the post, this was working on 'newer' RHES 5 and up but I have the misfortune of having to support some older RHES 4 boxes in a closed lab. This particular box is an RHES 4u6.

View 4 Replies View Related

OpenSUSE :: Whats The Red Circle With An Exclamation Mark In It On Icons Mean

Aug 6, 2011

Whats the red circle with an exclamation mark in it on icons mean?

View 5 Replies View Related

Ubuntu :: Red Circle Image On Desktop Slide Show?

Aug 17, 2010

When there has been no activity on my computer for a few minutes a slideshow of desktop backgrounds begins. Last week a new image was added: a red circle with a red diagonal line. It's like the "Don't go there" traffic sign. I have no idea where it came from.

View 2 Replies View Related

Programming :: Created Python Programs - Making Changes To Improve?

Dec 17, 2008

I have list of programs which I have created during the past few days, all the programs are attached in txt files, and if anyone can do favor, and double check if they work, and what changes I can make to make it look different, or to improve it.

View 9 Replies View Related

Programming :: Making Sure Only One Instance Of Script Runs Concurrently

Dec 11, 2010

I need to write a shell script that will be run from cron every minute or so. The script will use rsync to keep some folders across several machines in sync. I am very new to shell scripting so some answers might seem obvious but they are not to me:

1. How do I check at the beginning of the script if the script is already running and abort if it is? I saw that most processes use a PID file for that but I am not sure this is the right case for that and in fact how to do it exactly

2. Assuming the list of target machines/dirs to sync are supposed to come from some config file. How should I code that? Just use the normal shell tools that I already know (cut etc) or is there a better way?

View 6 Replies View Related

Programming :: Do Not Miss Any Cases While Making The Test Case Doc?

Jul 28, 2010

Few months back I learnt a *few* concepts about bits/bytes and started writing a program for bit packing in C++. Now that program has grown upto 600 lines and I am still working on it. Yesterday I realized I missed some special cases due to which the program was malfunctioning. Now I have modified the program and it is working properly but I think If I would have designed all the possible test cases before writing the code, I would have finished the program long ago.

I. What is proper way to design the test cases before coding?

II. How should I make sure that I do not miss any cases while making the test case doc. ?

III. Does writing test cases prior to coding solve messy code issues or should I consider something else ?

View 8 Replies View Related

Programming :: Test Program Without Making A Copy Outside The Git Working Dir?

Jan 30, 2010

I was windering, if you are writing a C program, I don't think you are supposed to commit the .o files and executables. How can you test your program without making a copy outside the git working dir?

View 3 Replies View Related

Ubuntu :: Create Object Using DIA With Simple Text Exactly Centered In Circle

Apr 6, 2010

I need to create an object using DIA (0.96.1) with the following characteristics: simple text (basically a number) exactly centered in a circle The reason why I need a way to exactly center the text is that I need to export the diagram within a vectorial graphic format and change its font. If the text is "manually" centered the result is not satisfactory.There are few defined objects in DIA that automatically center the text within a frame but none with a circle.

View 4 Replies View Related

Red Hat / Fedora :: Install Mesa-libGL-devel Created Circle

Sep 30, 2010

following attempt to install mesa-libGL-devel?

[code]...

Look like I've created a circle as the last rpm depends on the first? Note that for the second rpm, Xau and Xdmcp are loaded:

[code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved