113 Topics

Member Avatar for
Member Avatar for James19142

Inside of a class template having parameter `typename T` the compiler generates an error concerning 2 functions. `T` does not seem to be recongnized as the template class parameter it was declared as. template <class Return, class ...Args> void executeOnAll(Return (T::*function) (Args &&...), Args &&...args) { for(T &s : *this) …

Member Avatar for James19142
0
1K
Member Avatar for can-mohan

In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 …

Member Avatar for can-mohan
0
359
Member Avatar for veedeoo

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once …

Member Avatar for Geetha_1
3
8K
Member Avatar for fazal004

I have a form on footer that display on all pages. I want the form not display when I click on contact us button in menu and there should be no form on footer at that page, any help from web developers. Regards

Member Avatar for diafol
0
175
Member Avatar for ravi_14

**Bold Text Here**I am trying to make a generic linked list . below is the code for linkedlist . #ifndef GenericLinkedList_h #define GenericLinkedList_h #include <iostream> #include "GenericLinkNode.h" //class GenericLinkedList; template <typename T> class GenericLinkedList { private : GenericLinkNode<T> *head; public: GenericLinkedList(); void traverse(); bool isEmpty() { return head == NULL …

0
175
Member Avatar for VenusCrystal

Hi Guys, Does anyone know if we can have template within another template using mustache js ? If yes, can you please provide details how to do it? Or any other alternative if it cannot be done? I have a block of html code which I want to make it …

Member Avatar for pritaeas
0
177
Member Avatar for PixelandtheWolf

One of my websites is based off of the HTML5 Big Picture Template: [iamepic.today](http://www.iamepic.today) Within this design, I am noticing two interesting effects taking place, one within Internet Explorer 11 and the Other Being Safari 5.1.7. Within Internet Explorer 11, when you scroll through the different sections from top to …

Member Avatar for PixelandtheWolf
0
327
Member Avatar for Mr.UNOwen

Hello, So I'm having trouble figuring out what the correct syntax is for a function with a return type that is a template type and is within a namespace. Anyone see anything wrong with the code below? -------.HPP file: #pragma once #ifndef EC_UTIL_H #define EC_UTIL_H #include "../CommonHeaders.hpp" #include "../core/common/APVertex.hpp" #include …

Member Avatar for sepp2k
0
344
Member Avatar for terryds

First, i'd like to show you my directories --themes -- images -img1.jpg -index.php -index.php My index.php (root) : <?php require_once '/themes/index.php'; ?> And, the index.php in the template : <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <img src="images/img1.jpg"> </body> </html> I think it will load themes>>images>>img1.jpg But, it loads images>>img1.jpg …

Member Avatar for gabrielcastillo
0
213
Member Avatar for nathan.pavlovsky

Hello programmers! I have been working on STL algorithms for some time now as a beginner, and I started doing an exercise, among which is the task of `use the fill algorithm to fill the entire array of strings named items with "hello"`. My code for this is below: // …

Member Avatar for nathan.pavlovsky
0
1K
Member Avatar for nathan.pavlovsky

Hello programmers! After covering the basics of STL, I decided to complete the following assignment: `Write a function template palindrome that takes a vector parameter and returns true or false according to whether the vector does or does not read the same forward a backward.` So, for example, a vector …

Member Avatar for NathanOliver
0
1K
Member Avatar for boney

I have created my own template and am able to list all the posts on the index page. I want to be able to have some space after each post. Like a blank height of 5px. I created a class in css called blank5 => .blank5 {height:5px;} but it doesn't …

Member Avatar for boney
0
163
Member Avatar for sanzteoh

One of my client still preferred the old style of web design, he operates a law firm, and would prefer template and design like these: http://www.rahmatlim.com/ http://www.wongpartners.com/ More like a fixed size of frame in a website, but all templates I can find for law firms now are big size …

Member Avatar for Tu Dinh
0
208
Member Avatar for khan.arshad3

I want please suggest me ho i can display discription properly under logo , it not fully expressed if you see my post, [Click Here](http://www.photobagh.blogspot.com)

Member Avatar for JorgeM
0
151
Member Avatar for jonathan710

So for my homework i needa write a code that requires me to look up on a T key and adding stuff to T values. Could someone help me plz? (ie can i set both the key and value to template type) p.s. sorry not being able to expain the …

Member Avatar for richieking
0
318
Member Avatar for jethro.njini

i have downloaded a number of web page templates and i want to use one or more of them in netbeans. ho do i go about this. do i have to replace the already existing index.html file in my project with the one i downloaded, or where do i copy/import …

Member Avatar for mmcdonald
0
217
Member Avatar for shashidhargm

Hi masters I'm new to Google blog So i just want some instruction regarding blog managing Help me out Thank you

Member Avatar for JorgeM
0
173
Member Avatar for vishal anand.s

hi my name is vishal. i have been trying long to figure out to export data from vb6 using join queries in sql to ms word. here is my sample code i have tried: Option Explicit Dim dIsVisible As Boolean Dim inst As String Private Declare Function ShellExecute Lib "shell32.dll" …

Member Avatar for rishif2
0
1K
Member Avatar for G_Waddell

Hi, Getting some strange behaviour when using Interop to create a Word document from a template. I'm using word to generate a nicely formatted and printable Receipt from Sage 200 based on a Word Template. The code should open Word then create a new document based on the template I …

Member Avatar for G_Waddell
0
251
Member Avatar for kedxu

This is for anyone who might find it helpful. This template... * uses double-buffering, which can help game-makers fix that glitchy screen problem * can be exported as a runnable jar file. If you're like me and had trouble making your Applet executable, this is a possible fix. * Additionally …

Member Avatar for JamesCherrill
0
311
Member Avatar for davy_yg

Hello, what is tpl extension file and what is it for ? I once open a php web script and saw *.tpl extension there. Thanks before.

Member Avatar for diafol
0
151
Member Avatar for sparkthesunoff

I have two containers with the type of *A* A<string, double> s1; A<string, bool> s2; So I wrote the *A* class with the necessary functions and I used a template<class T, class E> for it. It has a function that returns a value of *E*, in my case, it returns …

Member Avatar for sepp2k
0
268
Member Avatar for ZeroZen

Hey folks I've finally figured out how in WPF to template all my buttons so they all behave they way I want. Basically, I want all my buttons, when clicked, to drop down and to the right a few pixels then pop back up. The problem is, I can't set …

Member Avatar for ZeroZen
0
486
Member Avatar for AARTI SHRIVAS

i have started learning joomla and now my team leader say me to covert html temlapte to joomla temlate any one have idea about that how can i achive this thanx in advance

Member Avatar for IIM
0
198
Member Avatar for smepperson

Using Handlebars.js, I am trying to hide the first element in an array. It would be conditional to an option being true/false. Can this be done without a helper? Thanks Horizontal Menu with > as separator {{#if options.display-home}} <li class="home">{{options.home}}</li> {{/if}} /*If display-home true hide initial separator*/ {{#recursive data "menu-breadCrumb"}} …

Member Avatar for LastMitch
0
166
Member Avatar for johnandersen24

The function i am writing below is made to time how long it takes to process a function. // return type for func(pointer to func)(parameters for func), container eg.vector clock_t timeFuction(double(*f)(vector<double>), vector<double> v) { auto start = clock(); f(v); return clock() - start; } This is the function i want …

Member Avatar for mike_2000_17
0
653
Member Avatar for RIJIN

build link error 1>------ Build started: Project: Circular_Link_List, Configuration: Debug x64 ------ 1>Build started 12/30/2012 11:36:28 AM. 1>PrepareForBuild: 1> Creating directory "C:\Users\RIJIN\documents\visual studio 2010\Projects\Circular_Link_List\x64\Debug\". 1>InitializeBuildStatus: 1> Creating "x64\Debug\Circular_Link_List.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> main.cpp 1> ListNode.cpp 1> Circular_Linklist.cpp 1> Generating Code... 1>main.obj : error LNK2019: unresolved external symbol "public: …

Member Avatar for RIJIN
0
2K
Member Avatar for LastMitch

Hi I still learning how Smarty templates works. I can't seem to make the image appear on the Smarty Template. I try to used this `{html_image}` it doesn't work. I used `<img>` instead. <img src="images/{$book->image[tbl]}" width="115"> These are my files. This is my **index.php** <?php require("libs/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); $book = …

Member Avatar for LastMitch
9
1K
Member Avatar for diafol

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) …

Member Avatar for rajppd
0
940
Member Avatar for BobA85

There is an unresolved external symbol in main.cpp when i try to call the insert function. I can’t find the reason why this is happening? Any help is appreciated. main.cpp #include "List.h" int main() { LList<int> number; number.Insert(1); } list.h #include <iostream> using namespace std; template <class T> class LList …

Member Avatar for acecode
0
355

The End.