113 Topics

Member Avatar for
Member Avatar for bloominninja

So im having issues with a sorted list template, heres how I implemented it enum RelationType {LESS, EQUAL, GREATER}; template<class ItemType> struct NodeType { ItemType info; NodeType<ItemType>* next; }; template<class ItemType> class SortedType { public: SortedType(); ~SortedType(); bool IsFull() const; int GetLength() const; void MakeEmpty(); ItemType GetItem(ItemType item, bool& found); …

Member Avatar for bloominninja
0
335
Member Avatar for mbhanley

Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck. What I am trying to do is update a block of php code that is in my sidebar …

Member Avatar for mbhanley
0
2K
Member Avatar for Dman01

Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); …

Member Avatar for Dman01
0
197
Member Avatar for dlannetts

Hello, Not sure if I am putting this in the right section or not but I'm sure someone will let me know if I'm not. I have recently made a email template, coded from html, I've done it in a visual editior provided with my email client. As you would …

Member Avatar for pritaeas
0
197
Member Avatar for sandz24

#include <iostream> #include <vector> using namespace std; template< typename T > using matrix = vector< vector<T> > ; I saw this code snippet while searching for templates. I was wondering why there's a word "using". What is it for? Thanks :)

Member Avatar for sepp2k
0
164
Member Avatar for Ritesh_4

Hello, I know CMS like Drupal, Joomla, Wordpress and others offer many templates, and I want to know whether it is possible to build a template which could be used on Drupal, yet at the same time on the others, thus making it CMS independent? Any tutorials/links on this if …

Member Avatar for pritaeas
0
149
Member Avatar for saito200

Hi people! :D I'm new to html and css, aside of an artist. I am trying to create a template for art tutorials. Basically I want to have a series of rows, with a floating image to the left or right, and an explanatory textbox on the other side. The …

Member Avatar for saito200
0
148
Member Avatar for heavyman
Member Avatar for JorgeM
0
187
Member Avatar for nmaillet

I'm trying to create some custom styles/control templates for WPF. The only control that seems to be giving be any issues (so far) is the ScrollViewer: <Style x:Key="{x:Type ScrollViewer}" TargetType="ScrollViewer"> <Setter Property="OverridesDefaultStyle" Value="True"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ScrollViewer"> <Border Background="#404040"> <Border BorderBrush="#808080" BorderThickness="1" Margin="4"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="Auto"/> …

0
151
Member Avatar for sburks92131

I would like to enter some text into a text box field in a Word Form and have the text printed next to it in barcode format. This is so I can have both human readable and barcodes available on the form. I have the barcode fonts that I need …

Member Avatar for deceptikon
0
104
Member Avatar for me!

I wanna make the frontpage of a JOOMLA website look like a blog with the image to the left and the intro text to the right with a readmore link on the bottom. So far I got it, however the code below grabs the first image of the article and …

Member Avatar for me!
0
502
Member Avatar for pendo826

I have errors for the template can any1 see anything wrong??? //Array.h [CODE]//Header file for Array.cpp. class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; public: //Functions. template<class Datatype> int m_size; Datatype* m_array; //Consturctor. Array( int p_size) { m_array= …

Member Avatar for jaskij
0
238
Member Avatar for Mike Askew

Firstly I will say im a complete and total novice when it comes to XSLT and XML so this could be a very obvious mistake on my behalf. [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="TestNode"> <RenamedNode> <xsl:copy-of select="."/> </RenamedNode> </xsl:template> </xsl:stylesheet> [/CODE] When …

Member Avatar for StephNicolaou
0
197
Member Avatar for jbutardo

Hi, I have attached a printscreen version of my excel template here, Now I just want to know, using vb.net code, on how can I import this data from a specific cell, including the header itself so I can insert it into mysql database. Thanks

Member Avatar for jbutardo
-1
146
Member Avatar for jbutardo

Hi, I have a program that needs to create a downloadable excel template with the following headers on the first row named, name, age, gender. And I also want the template to only have 1 sheet on it. how can I create a sample template using vb.net code? Thanks

Member Avatar for jbutardo
0
1K
Member Avatar for jbutardo

Hi, I just have this program that needs to create a downloadable template for the excel file that will be used later in my program, now I have this templates in my server and I think that i'll just import this file first and then put it in the data …

0
141
Member Avatar for Allander

I'm trying to pass a list from a function to another using templates but get this error message: [QUOTE]/home/mattias/CodeBlocks/SpelBeta/src/player.cpp|64|undefined reference to `void Ground::bulletsCollition<Bullet>(std::list<Bullet, std::allocator<Bullet> >)'|[/QUOTE] Here is the code: [CODE] //In the function calling the template function (*blocks).bulletsCollition(player_bullets.getList()); //In header that the getList is declared #ifndef BULLETLIST_H #define BULLETLIST_H #include …

Member Avatar for mike_2000_17
0
11K
Member Avatar for surajrai

Hello, I am going through few documents of my new project. It says it is a AT.NET (AT = Application template) based application. The architecture the project seems to be very complex and its a 7 year old product and still new developements are going on. Can anyone explain what …

0
118
Member Avatar for mzimmers

Hi, all - I'm relatively new to iterators, and to template functions, so I suppose it was inevitable that the first time I tried to combine them, I'd run into a problem. Here's the function: [CODE]template <class T> int getVectort(ifstream & s, long nbrCells, typename vector<T>::iterator iter) { int rc …

Member Avatar for mzimmers
0
613
Member Avatar for taylor0934

I am having trouble starting, I have the default constructor. Just set Head, Tail, Pred and Succ equal to 0. The copy constructor I am having problems with, don't know where to start. [CODE]enum Direction { front_to_back, back_to_front }; template <typename EType> class PQueue { private: struct Node { EType …

0
85
Member Avatar for airmvp23

I've been round and round with this subject, but here goes again. Basically I need to Click a Form Button and submit that click into an iframe located on a separate page. The history behind this is that I am using Joomla for my main platform, but needed a more …

0
93
Member Avatar for tvm78

So I'm trying to write a program that is due tomorrow. I am trying to overload operators and dealing with template classes. I have everything written already but keep getting this error whenever i try to compile the driver file: NOTE: proj4.cpp has #include "box.h" and box.h compiles fine, but …

Member Avatar for NathanOliver
0
270
Member Avatar for Paradox 99

Hi, A bit of searching reveals that a few people have asked this question before, but I can never see the solution revealed. I have a gridview and I've added a column with a template field so that I can put a checkbox control in it. Finding it is no …

Member Avatar for catherine sea
0
205
Member Avatar for kaizerkiller

What I want to do is to put links, like product categories along with its product subcategories, on the left and right panel but I don't know how to do it. :sad: All I know is how to modify the header, navigation, content and footer. But I got a hard …

Member Avatar for kaizerkiller
0
116
Member Avatar for praveen_dusari

hi, Iam developing the website in ipad,using html5 database and html5 concepts...i am facing trouble in integrating my website which is developied in php and xslt..here we are using soap to get the articles and displaying it using xslt and php...here iam loading those articles in html5 database in php …

Member Avatar for kws.mumbai
0
153
Member Avatar for theharshest

I am new to Django. When I tried creating a template, I got the following error. Please help. [CODE]>>> from django.template import Template, Context >>> t = Template("The name is {{name}}") Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> t = Template("The name is {{name}}") File "C:\Python27\lib\site-packages\django\template\base.py", …

Member Avatar for Enalicho
0
186
Member Avatar for zigpy_siva

Hi, we are using the XML Template of MS Word, and trying to use XPath(in a tool not code, but the same is not working in code also) to read the data from the xml file. attached the sample code, xml file and the XSD used to generate the word …

0
102
Member Avatar for milan2011

Hi everyone, I want to implement an ADT Queue class (pointer base) use Template with following public interfaces: enqueue,dequeue,dequeueAll,peek,and size. I have 2 problems: 1.not sure how to dequeueAll which is removes all elements from the queue with Postcondition: size( ) returns 0 2.for dequeue and peek I need to …

Member Avatar for milan2011
0
977
Member Avatar for Nitin Daphale

I load the the grid(Grid is editable), having Price-Quantity-Amount columns. I want to change Amount when I change Quantity.I want to do it at clientside. Any suggestions? [CODE] <asp:UpdatePanel runat="server" ID="UpdatePanel1"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnOk" /> </Triggers> <ContentTemplate> <asp:GridView ID="gdv_QuotItems" runat="server" AutoGenerateColumns="false" OnRowDataBound="gdv_QuotItems_RowDataBound" EmptyDataText="No Items To Load."> <Columns> <asp:TemplateField HeaderText="Price"> <ItemTemplate> …

Member Avatar for Nitin Daphale
0
242
Member Avatar for learningcpp

Hi All, Can you please help me to understand why the following code is behaving this way? I think both outputs should be 1 ( 1 means const T), but its not!! [CODE] template <typename T> struct IsConst{ enum {isConst = 0}; }; template <typename T> struct IsConst<const T>{ enum …

Member Avatar for learningcpp
1
3K

The End.