Beginners - August 2013 (Page 38)

by Shadid
derivative calculator need help to improve
 
Hi, I'm working on a program that calculates derivative.I'm only doing simple derivatives now but I eventually want to move into sinosodial functions and logari...
[2 replies] Last: ohh yeah..I'll fix that in case 1..thanks and how do I use tag numbers... (by Shadid)
why doent endl skip line between instance calls
 
this code #include "iostream" class cTest { public: cTest(){ std::cout << "test"; } }; void main(){ cTest qTest1; cTest qTest2; qTes...
[5 replies] Last: much appreciated (by MarketAnarchist)
why wont instance of class call twice?
 
this program #include "iostream" class cTest { public: cTest(){ std::cout << "test" << std::endl; } }; void main(){ cTest qTest; qTest...
[3 replies] Last: qTest; this does nothing well that would explain it! thanks... (by MarketAnarchist)
C++ program that creates a decimal pointer..
 
I have an assignment to "Create a C++ program that creates a decimal pointer, creates a variable set to a decimal value, then assigns the address of the variabl...
[5 replies] Last: Thanks for your help. I appreciate it.. (by Blackhole)
Finding all paths between two vertices in a graph using c++
 
Hi Can anyone help me in providing a code in c++ that finds all the paths(from vertex u to vertex v) in a graph. I am working on directed graphs. I wil...
[4 replies] Last: Thanks dear but still if i get some pseudo code from some one or some... (by Kanwarpreet)
Syntax for nested class destructor and copy constructor
 
class PrimeList { public: struct ListNode { ItemType data; ListNode *next; ~ListNode (); // destructor L...
[4 replies] Last: Ok, it compiled. And from your answer, I figured that for the copy co... (by prestokeys)
by knn9
Is there a C++/OOP alternative to callback functions?
 
I wrote a class that represents a gui window. When an event occurs in the window, like mouse input, what is the C++ way of notifying code outside the class of t...
[5 replies] Last: Well, if you're wanting to go it alone, you could possibly switch from... (by andywestken)
HELP!
 
I am new to coding in C and even newer to using VIM I am currently trying to write a code that will store PID numbers of a child after a fork, I have to be a...
[8 replies] Last: fixed it I was missing a return value statement. (by LiamSalt)
does typedef instantiates a template ?
 
i'm now writing my first project that actually REQUIRES the use of template classes. the soon i finished the class i wanted to define some typenames that wil...
[3 replies] Last: the template you created wasn't meant for simple types after all. Ri... (by Cubbi)
Struggling with arrays and functions!
 
I have a homework assignment that I am struggling with I think I am struggling with the instructions rather than the code but I need some help our instructions ...
[1 reply] : These functions can be written simpler bool testPIN( const int custP... (by vlad from moscow)
Have an error dealing with the std string class
 
Apparently the compiler doesn't like my arguments for std::string::append() The error is invalid conversion from char to const char* ImgType .append(Im...
[5 replies] Last: Yeah that's what I thought. Thanks (by brokenbot)
using void functions for calculation.
 
i want to use a void fucntion called menuselction and use the selection that this function make in my main or i want to use this selection to do other things....
[3 replies] Last: By the way variable choice should be initialized.:) So it is better to... (by vlad from moscow)
Help with a C++ calculator
 
I'm trying to make a calculator in C++, for some reason the code works, but it doesn't seem to detect the Switch statement. I'm using the console, this is the c...
[5 replies] Last: It's working perfectly now :D. Thanks!. (by retrohunter95)
SDL - double-size a surface's pixels?
 
Hello, I am looking for a way to double-size (which actually means quadruple-size, I suppose), an image using SDL (SDL_Surface*). I have a surface which star...
[1 reply] : i personally use this http://sourceforge.net/projects/sdlresize/files/... (by closed account Dy7SLyTq)
P_tmpdir
 
Hi guys, I am new to CPP. I will like to ask for P_tmpdir macro in stdlib.h where does P_tmpdir gets the temporary directory from ? Does P_tmpdir looks into th...
[5 replies] Last: P_tmpdir is still there in current POSIX too, optionally supported h... (by Cubbi)
Don't know how to link ".h"s and ".cpp"s in a Code::Blocks project .
 
HI! I am writing a program that contains some classes and for that reason I need lots ".h"s and ".cpp"s . But an error occurs : redeclaration of a function . ...
[7 replies] Last: Well that explains why it worked while I was at work, because I downlo... (by kevinkjt2000)
Access Violation at Address
 
Hello, I am currently doing a bit of opengl c++ programming and am currently following this tutorial: http://www.antongerdelan.net/opengl/mesh.html However ...
[5 replies] Last: Ok Found the problem, glew had to be initialized after the window has ... (by doctorzeus)
passing an unbounded array to a function
 
I'm trying to take an arbitrary-length array into a function (bubble sort used here as an example) void bubblesort(int (&listy) ){ int length = (sizeof...
[7 replies] Last: The best of both worlds! Andy (by andywestken)
Structure pointer
 
struct Book { string title; int year_published; } book ; Book *p_book; p_book = &book; I see this while compiling: structures.c...
[1 reply] : array name is address to the 1st element, so it should be p_book = bo... (by tath)
restriction
 
am trying to make a menu that have a restriction using alphabet. and want to know how to implement a condition containing (ascii). how do i make a condition...
[8 replies] Last: @metulburr sorry boss ok i will try .. very sorry for asking such stu... (by dharmendra1281)
August 2013 Pages: 1... 3637383940... 51
  Archived months: [jul2013] [sep2013]

This is an archived page. To post a new message, go to the current page.