Programming :: Small Projects In C++ Using Advanced Features
Feb 4, 2010
Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,
What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also
View 4 Replies
ADVERTISEMENT
Mar 7, 2010
I am looking for an editor to fill a specific request for a mostly non-computer person. He uses a computer to write manuals and other books for classes he teaches. He has come to ubuntu so he can more easily access updates, gimp, etc. than he felt he could in Windows.
1) I need a text editor that can be kept open without bogging things down, or can be loaded fast enough to make him think it is "TSR" (made usable in either case by a keypress on his MS internet antique keyboard)
2) Spell check as you type with editable dictionary (he can add words that will no longer show as incorrect). Ability to select spelling suggestions easily (left click a misspelled word is his current method).
3) Ability to highlight words that most of us would call syntax highlighting but for words having NOTHING to do with a programming language etc. I would call it ability to edit the keyword file(s) to make his own languages to be highlighted.
Already rejected:
* anything with millions of complex keys to @#%$^%#$ remember that don't make sense
* gedit
* geany
* kate
* openoffice
* treeline (though he does use it for other things)
* tomboy (the cuss words there are an art form)
* anything emacs/vi or similar (see #1 reject reason at top)
* some gtk-nano clone he has no idea where he found
View 9 Replies
View Related
Feb 3, 2011
I need to create a SW project both for Windows (written with MS Visual Studio 2005) and Linux. Currently I have a build script for windows and another for Linux. I would like to build the project for both platforms on a single PC. Is there a way of building VS2005 projects with Linux (not using Cmake)?
View 2 Replies
View Related
Sep 14, 2010
Have you ever seen a hobbyist electonic Kit? They have projects that try to teach what each type of component does. Is there such a thing for Bash? It would tend to be aimed at tasks that are suitable for bash and not attempt to go over the line of what is better suited as a compiled program. Intuitively I think maybe something that timestamps files; when you download them, or anything else that would keep a home PC better organized is practical.
View 5 Replies
View Related
Jan 16, 2010
I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:
Code:
#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();
[code]....
But I don't know how to compile it. I was trying (naively) something like:
Code:
$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt
But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]
View 5 Replies
View Related
Mar 25, 2010
have a previous background in internet programming languages such as XHTML, DHTML, CSS and javacsript. I would like to start programming and managing my linux system (like an expert) and starting on linux projects also. My question is which is the best programming language to learn: C, C++ (may b even C+), python, Perl etc... I'm learning BASH right now cause I know its a necessity for linux systems. but what would you guys suggest after that I learn.
View 2 Replies
View Related
Mar 11, 2010
I am developing a system in Python that includes an engine and multiple front ends. I am doing the engine and a curses front end together and will add additional FE's later. My problem is that I don't know how to get my front end to import the modules from the engine. I have them set up in Eclipse (using Pydev) as separate projects, but in the same workspace.
I've been a developer for years, but this is my first Python project, and I'm also fairly new to Eclipse. I guess my question is, How do I set up the references to other projects of my own making?
View 1 Replies
View Related
May 26, 2010
Essentially, I am reading the book "Absolute Beginner's Guide to C (Second Edition)", but the biggest problem is that it doesn't have problems nor projects to practice programming. Unfortunately, I do not have the greatest of an imagination to create my own ideas for problems to solve. Does anyone know of any sites that have good problems/projects to work on when I learn throughout the book?
View 6 Replies
View Related
Jul 28, 2011
Somehow I'm not really managing this thing, which would d be a nice way to useariables.What I am doing is setting up compound variable in ksh. What I have is a "config" file, which has fields delimited by a semicolon
Code:
cat ${CONFIGFILE} | grep -v "^#" | grep -v "^$" | while read line
do
[code]...
View 14 Replies
View Related
Jan 26, 2010
I'm used to write simple programs on codeblock which run on consle. i.e.console applications. When I try to compile programs which need graphic features, I get stuck as many libraries 9especially header files) are not in MINGW/include folder so I have to search on the net and add those files into include. My question is, by default, to enable graphics features on code block which "folder" should I download and incorporate it into codeblock? I tried to follow examples on glut, opengl, that is you have to download glut and add it somewhere on codeblock. Now I just want to have graphics functionality especially which need graphics.h file, searched on the net and find that sometime you have to download BGI, sometimes you have to download SDL, etc.
I hope you get the picture of what I'm trying to understand, it seems that by default codeblock doesn't come with graphic functionality e.g.graphics.h file, now what shall I download, and where do I add it so that I can draw graphs etc on codeblock. [codeblock has /include folder in C: Program FilesCodeBlocksMinGWinclude], now whenever I download new feature e.g. glut has its own version of include, lib folders etc. Is it necessary to add those include, lib on inlude, lib of C:Program FilesCodeBlocksMinGW? or it should work on its own original path? suppose I download glut on C:Program FilesCodeBlocksGlut. Now, what folder should I download to have graphics on codeblock?...
View 1 Replies
View Related
Jun 3, 2009
I can't remember what it's called, but this feature of VC++ basically catalogs all the functions of a project, lets you right click on a function and go directly to it's declaration or definition, do not pass go, do not collect 200 dollars. it also gives you an info bubble of the variable types as you're typing a function's name.
this is a very convenient feature, and I'd like to use it with KDevelop, or really any full C++ IDE for linux. does such a thing exist?
View 1 Replies
View Related
Aug 12, 2010
I'm trying to create a user account for my children in Ubuntu 10.04
When creating their account, I have turned off the 'Connect to ethernet and wireless' option of the Advanced Settings.
However, when I log into their accounts, they still have full access to the internet through both the wireless and ethernet connections. Is this option for some other purpose?
Is there an alternate way to limit internet access for childrens' accounts in Ubuntu? (I'm used to MS Family Safety as a filter for internet access - is there an eqivalent for Ubuntu?)
View 2 Replies
View Related
Oct 4, 2010
i'm learning C now, later C++. using DJGPP isn't so nice on MS-DOS yet, no LFNs etc. and other limitations that is only one terminal, no multitasking etc.is there a small IDE for linux console? (i'm using a celeron 333 atm). for C it would be sufficient i guess?what i would need is a wide documentation, help on .h files, includes etc.on MS-DOS i use RHIDE. later on i might use eclipse or code::blocks. read another thread about c/c++ IDE.
View 14 Replies
View Related
Dec 29, 2010
I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:
Code:
#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {
[code]....
View 1 Replies
View Related
Jul 12, 2009
I'm trying to figure how to create an small array of 3x3 arrays such I can do
Code:
SUM1(i) = SUM1(i) + SUM2
where i goes from 1 to 8 and SUM2 is a 3x3 array.
View 2 Replies
View Related
Feb 9, 2011
I have this problem.I need to do this:I got a small version of Linux installed in some small devices. These devices come from the provider with this small version of Linux installed.This devices should send data to some other machine in the internet. I have tested wput for this purpose with a PC which has an Ubuntu version 10 and it works fine. However, when I try wput in the small device, I get an error. It seems that the wput might need some libraries to work with the small version of Linux installed in the small device.The fact of using wput or not is optional. I just need being able to send files through ftp with this small version of Linux.The thing is that to be able to run wput in this small version of Linux, it seems that many of the needed libraries were missing. So what I did was just install all the needed libraries. But still the wput program fails in its first line.
View 14 Replies
View Related
Mar 18, 2010
I'm not fluent in awk and would like to improve so seek critiques of this effort: stylistic, functional, whatever ...
Code:
#!/usr/bin/awk -f
BEGIN {
FS = "="
tab = " "
[Code]...
View 23 Replies
View Related
Jun 1, 2011
I've set the following as my prompt:... can't post the string due to the 15 post rule. how helpful....
Everything looks fine initially.
1- It sets the username and host in back on green text.
2- It then changes to an off-white an prints the command number for the terminal.
3- Next, it prints the working directory.
4- Finally is prints a ">" character and a space. it looks like this (hostname/un edited & image enlarged slightly to make it easier to read.)
The problem occurs when I try to "up arrow" to reuse and/or edit a prior command. It prints the prior command fine, but if I arrow over to edit the command sometimes the first character can not be deleted from displaying
I'd love to post 2 screen-shots I took to show the problem but.. 15 posts?
View 1 Replies
View Related
Feb 23, 2011
I am would like to learn how to keep my system clean of unneeded and unwanted file clutter as I am trying to get the most out of my older home built pc. I am running fatdog64 puppy linux off of a usb stick right now, but I would like to have a small standards based setup on my hard drive to use as a base to build a custom kernel for my pc. I sure miss my old GEM desktop
View 1 Replies
View Related
Jul 20, 2010
I have a few small still images of around 300 bytes each that I created under Windows many years ago, I'd like to:
1) change the colour of some pixels on each and
2) make them the exact same size but I do not want to learn Gimp to do this since I have no other use for it.
Could someone show me the sequences of commands in Gimp GUI that will do the job?
View 4 Replies
View Related
Jun 2, 2011
I have a small project that I am trying to do for my job to help us out. Basically, I need to make a tool that lets me view all the sectors of a hard drive in hexadecimal format to make sure they are all zero after a low-level format. I need it to be very minimal, and display the data in a way that I can scroll down and skim through the sectors. Doesn't have to be pretty, just functional.I need it to do more things down the road, but this is the first hurdle I need to overcome. I would like to create a GUI interface so it looks nice, but first I am only concerned with the sector viewing function. I am not entirely sure where I should start.
I see there is a tool called dd I could use to read the hard drive and I am wondering if I need to use that, or if I can just open /dev/hda as a file and be able to view all the sectors that way.Also, just to clarify, I am wanting to write this tool for linux,specifically DSL. I need it to be a very small distribution that can be loaded quickly from a usb drive, cd, or over the network with PXE.
View 15 Replies
View Related
Feb 17, 2011
this is my first post and I would like to get some help from you , so what should be the answer for this question ?:::::::::::::the question::::::::::::::::THE UNIVERSITY APARTMENTSThe University Apartments provides apartment rental to university students at affordable rates, with optional facilities:Apartment Type A, 2 bedrooms and equiped with kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM300.Apartment Type B, 3 bedrooms includes one master bedroom with attached bathroom but does not have kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM200 and students staying in the master bedroom will be paying an additional 40%.
Each apartment may house a maximum of 3 students. Students are required to check out from the apartment unit when the current semester ends.Create an application to manage the university apartments rental:1. Register new student and assign apartment moduleRegister and assigns an apartment to the student for 140 days from the date of registration. The module should retrieve the date automatically from the system clock and calculates the expiry date for the apartment rental. Before an apartment is assigned, the system should allow the selection of the type of apartment (i.e. Type A or B), then check for the number of occupants in the apartment. If the apartment already housed 3 students, it should recommend another apartment unit that is still available. Upon registration, student should pay a RM100 for the utility charges, rental deposit for one month and the rental for the current month.
2. Update apartment status moduleWhen a student moves out from an apartment, the apartment status is updated.3. Reporting moduleGenerates a report of apartments with full occupancy and another report for apartments where rooms are still available. 4. Search module Enable the administrator to search for a student's apartment unit using the student id as the search key. The search result should produce the student�s information and the details of the apartment that the student is staying in.The application should be developed using object-oriented concepts using Student class and Apartment class, implementing the appropriate data fields and methods for the classes. Data may be stored in collections i.e
View 10 Replies
View Related
Mar 15, 2010
I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw after being resized.
I get slightly better behavior with the SGI sample program mentioned in the same book, 'checkers.c'. Again, the initial size is too small, but at least it will resize and redraw the checkerboards entirely inside the resized window. What is going on here? Is this some bug in glut? I can't see anything obviously wrong in their glut initialization, which looks like:
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (350, 150);
[code]...
Then again, since I am such a newbie to glut, I am not sure I would recognize what, if anything, they did wrong. what ARE the valid and useful command line parameters I could have passed to the main() above?
View 12 Replies
View Related
Oct 10, 2010
am running Centos 5.4 and would like to write a small perl script to collect some info from mysql.
so I went
yum install perl-DBI
yum install perl-DBD-mysql
then
nano perl.pl
---
#!/bin/perl
use Mysql;
[Code].....
Why can't perl find Mysql.pm? I guess because it doesn't exist as I ran find / -name Mysql.pm, and also could not find it.
shouldn't that file have been created and thus exist after I install perl-DBD-mysql?
View 6 Replies
View Related
Oct 2, 2009
i want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand
View 14 Replies
View Related
Aug 29, 2010
I want to write a small program that shows some stockquotes and indexes etc on the desktop. Does anyone know how to get the quotes from google, yahoo etc? Do I rip it from the webpages or is there some other way?
View 3 Replies
View Related
Jul 9, 2010
I was trying to run small shell script, but could not run. I got the error like in subject.
This is exact way i was trying to do.
View 6 Replies
View Related
Feb 4, 2010
I am working on linux administration. I need to backup my project folders regularly. Which is the best method i can choose to backup. I know that I can schedule it through cron. Is there any other best way.? If not where can I get good document about cron. I am using suse linux enterprise server 10 sp3.
View 6 Replies
View Related
Dec 27, 2010
Are their any open source AI projects out there? i just read an old text on neural networking in C++ and would love to paw through someones code.
View 1 Replies
View Related
Aug 14, 2010
i study in the network department in SUST (sudan university for sience and technology) and we are going to be asked for doing the graduation project next term..i need some about WIFI projects or any related thing that is simple and applicable.
View 4 Replies
View Related