Beginners - November 2011 (Page 20)

by Skynet
Equations Input
 
How do I ask a user to input an equation and have the code then use their equation and give an answer. Example: User inputs x^2 + x - 2 I want the program t...
[3 replies] Last: The secant method is an algorithm that uses an iterative approximation... (by cnoeval)
c++ terms on visual studio environment
 
Hey, I'm applying for a job (support engineering for a grid technology software) and I was asked to learn some terms in c++ (on visual studio environment). ...
[1 reply] : open up firefox and type: Solution visual studio Project visual studi... (by codekiddy)
String Split Help
 
#include <iostream> using namespace std; int main() { string database = {"elrond", "melkor", "galadriel", "maedhros", "finrod", "cirdan", "artanis", "ner...
[no replies]
Generating random double/float typed numbers
 
How can this be done? Can somebody please explain it to me?
[4 replies] Last: Modern standard C++ has uniform_real_distribution which provides flo... (by Cubbi)
by dean
warning 'will be initialized after'
 
Hey, can someone explain the cause of this warning: ../algorithms/SingleQueueAlgorithm.h: In constructor 'QueueSetIterator::QueueSetIterator()': ../algorit...
[1 reply] : Let's say you have a class like this: class A{ public: T member_... (by helios)
by mobat
Char Arrays
 
solved.
[5 replies] Last: Then make dynamic array: char** gamemap; gamemap = new char* ; for (... (by tfityo)
Problems with
 
I need your help guys! I have to create a file and write something in it (it could be .txt). Then I have to make a program that reads the .txt file and inputs i...
[2 replies] Last: I've learned some. This is what I've done: //-----------------------... (by DarkSoul)
Ogres vs Dwarfs help!?
 
Hi this is my code but unfortunately it just isn't working. So, if you could tell me a error I made or bug in the program that would be greatly appreciated! ...
[9 replies] Last: @whitenite1 Thanks! This makes much more sense. You're a lifesaver. (by closed account iNU7ko23)
Definition of a variable problem?
 
Ok, so right at the beginning of my code, I initialize three global variables, level, exp, and gold. My exp variable, however, doesnt seem to want to work, and ...
[3 replies] Last: Oh thanks, I didnt know that was a function xD It was also saying some... (by jp01cf01)
Banking Simulation Help Pt 1
 
This is a long program. I have included a brief description in the reply field at the bottom after the second part of the code. #include <iostream> #include...
[2 replies] Last: This is a class assignment meant to simulate a bank program. A ten dig... (by mtho121)
Finding out the exact weekday
 
Okay the problem is to find out the exact weekday after adding n days to the current day. E.g if today is Monday, after adding 1000 days it will be Friday (for ...
[6 replies] Last: Nevermind, got it working :)) (by stridexr)
by Thamir
what does that mean ?
 
#define LS_HI_PART(x) ((x>>4) & 0x0F) #define LS_LO_PART(x) ((x) & 0x0F) these are freak notations to me part(x) and ((x>>4) & 0x0F please i need a whole e...
[1 reply] : Look up bitwise operators. >> is right shift, & is bitwise and. The se... (by Athar)
Help with homework
 
Still stuck a little on pointers. I currently have three classes. The Main #include "stdafx.h" #include <iostream> #include <math.h> #include "financ...
[10 replies] Last: exactly, header files may contain declarations only, in your case head... (by codekiddy)
Is this code a memory leak?
 
char *hello() { return (char*)"Hello from hello...\n"; } The function returns a pointer to a char array, which the array should be free after the fun...
[1 reply] : It would be an error to try to delete the pointer returned by hello(),... (by helios)
I have some trouble in beginning
 
I want to convert capital letters to lower case letters by "tolower();". My code: string text; string text_lower; for (int i=0;i<=text.length(); i++) { ...
[3 replies] Last: your code: text_lower = std::tolower(text ); this does not work co... (by codekiddy)
Problem in Nth prime number program
 
#include<iostream.h> #include<conio.h> #include<process.h> void main() { clrscr(); long int n,j=0,i,k,f=0; cout<<"...
[2 replies] Last: Well actually I realized my mistake and now program is working. This i... (by saurabh26)
Accessing a static Db object
 
Dear All, I've created a database class in my project and I'm opening a db connection with that class whenever I need to query Db. However, it's very ineffic...
[5 replies] Last: I have that semicolon, I missed that while writing simplified version.... (by olamalam)
Shortcut Program
 
Hi I am a new to C++ and was wondering if sombody could giveme some advise or point me in the right direction. I would like to create a shortcut program,...
[3 replies] Last: From memory the shortcuts in the quick launch toolbar in XP were store... (by Mooncabbage)
Array sum user input..
 
Q1 using array can i put user input and then it will sum by user...?it work's but the sum wrong.. #include<iostream> #include<cmath> using namespace std; ...
[3 replies] Last: oh thank so very much..now i understand why it become 255 when i plus+... (by ExMatrix)
2d pointer???
 
Hi everyone I am working on this problem of classes shape. I am reading different shapes from a data file.(square(s 10 10 1 1). circle etc) I am making...
[6 replies] Last: ptr = new Shape* overwrites the previous value of ptr so that it d... (by hamsterman)
November 2011 Pages: 1... 1819202122... 65
  Archived months: [oct2011] [dec2011]

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