General C++ Programming - February 2013 (Page 20)

Creating C++ executable trusted by AntiVirus Softwares
 
hi! I am a newbie to software development. I had the following query. Suppose I develop a software using QT 5 open source IDE. Now my question is two-fol...
[1 reply] : AV software usually doesn't like unsigned software, free packers (usua... (by MiiNiPaa)
Output is printing twice with overloaded operators
 
Hey there! I'm having an issue with output, luckily everything else works!! I'm working with Mixed Numbers and operations on them. So, here's the code I'm testi...
[2 replies] Last: For a really weird reason, there are output statements in `Simplify()' (by ne555)
by bombom
PLEASE, Need help with random cootie game
 
I tried to create random cootie game, how many time the player play. And ask do they want to play again or not, some how i cannot run the program. #include <...
[2 replies] Last: And use code tags (by greenleaf800073)
about std::function
 
I have this: class Foo { private: std::function<void()> fun; public: void setFun(std::function<void()> _fun) { fun = _fun; } void onFun() { if( ??? ...
[2 replies] Last: Thanks. (by morando)
OpenGL: Lighting Crash
 
Hi guys, Tempted to post this over on the GL forums but I thought it'd be worth a crack over here. Have any of you GL programmers had a problem with GL_LIGHT0...
[4 replies] Last: Just wanted to let you know that you were right guys. :-) Only other ... (by MrHutch)
Plot the successive positions of two colliding rectangles
 
Hi, I'm doing my Master Thesis in Mechanical Engineering. Currently I'm developing a 2D impact model. I've already developod the code for the contact detecti...
[no replies]
Cant figure out runtime error issue
 
Im trying to use the time.h struct tm *pointer so I can access the values of my computer's local time and date. I have a rather large program that I'm writing...
[5 replies] Last: Guys: he is not using unallocated memory. gmtime() returns a pointer... (by Disch)
Method for fractal dimension
 
Having issues with displaying the output results.just showing blank at the console output screen.Can someone know what d problem is? #include <stdio.h> #inc...
[no replies]
Higuchi method for fractal dimension
 
double lreg(int k, double v1 , double v2 ){ double x,y,cn=0.0,sumx=0.0,sumy=0.0,sumxy=0.0,sumx2=0.0; double d1,d2; cn=(double)k; for(int i=0; i<...
[no replies]
help with a stack..
 
hi.. so we're having this program using an array implementation to a stack, and we were asked to get the sum of all the numbers in the stack.. so here's a porti...
[9 replies] Last: The code you showed is correct. I executed it at www.ideone.com and g... (by vlad from moscow)
trying to make a search function in doubly Linklist but getting error on runtime.....
 
void search(int srch) { if (isempty()) { cout<<"No Record Found"; } else { node *p; p=head; while(p!=NULL || p...
[1 reply] : The condition on the while loop is invalid. Shall be while ( p != NUL... (by vlad from moscow)
Generate a random permutation in an array
 
Hi guys, I'm currently working on assignment which requires to generate a random permutation of the first N integers. For example, if N = 4, one possible answer...
[3 replies] Last: Ill try the search function. Thanks bro (by ken2012)
by jtsf
Stack overflow. Core dump
 
#include <iostream> #include <cstdlib> #include <stdio.h> using namespace std; int main() { int i, score ={0,0,0,0,0}'; string name ={"","","",...
[6 replies] Last: Thank you JLBorges. I got it. My program work well. Thank you for poi... (by jtsf)
by LLINE
Code Flow (loops and arrays)
 
Hi: Thank you for taking time to help me with my problem. I am having problems understanding where this code is wrong as I believe that I am not receiving th...
[2 replies] Last: Pseudo code - my mistake. Problem is solved, thank you for responding... (by LLINE)
by Elidor
Extern Problems
 
Could someone tell me what I'm not seeing here? I'm getting undefined references to DOT_WIDTH, DOT_HEIGHT, and SCREEN_WIDTH. Here are the two main source fil...
[5 replies] Last: if a variable with specifier extern has no an initializer then it is d... (by vlad from moscow)
Template type with rand()
 
Is there a way to generate random numbers with a Template type? I'm trying this but its not working. template<typename T> T random(T a, T b) { T tem...
[2 replies] Last: > Is there a way to generate random numbers with a Template type? C++... (by JLBorges)
does my coding complete with my requirements given
 
REQUIREMENTS : Class Rectangle ------------------------------------------------------ -double x -double y -double diagonal // diagonal = sqrt(x*x...
[no replies]
help plz
 
can anyone tell that how the garbage value can be removed in stacks program
[no replies]
Can someone help me with my calculator?
 
1. Description 1.1. Goal - The purpose of this program is to use the control structure concepts learned in chapters 4 and 5. 1.2. Requirements – Design and ...
[6 replies] Last: @mzadriann This works, but you would still need to add better checkin... (by whitenite1)
vector as a private class member
 
Hi! I get a problem with the vector as a private class member: When I did't initialize the vector in constructor(which means the size of the vector would be 0...
[7 replies] Last: @OP: the code you posted does not reproduce your issue. It has other p... (by ne555)
February 2013 Pages: 1... 1819202122... 43
  Archived months: [jan2013] [mar2013]

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