Beginners - June 2011 (Page 22)

Need Help
 
Hello, I am a student taking C++ , and I am asking for help for my homework, not that I am asking to help me do my homework, but I have a problem with the code ...
[4 replies] Last: IamSebastian first of all your if (studentAssignment = 0 && student... (by david91)
by holtaf
Headers
 
Hi , sorry for newbie quiestion, but i have some difficulty writing c++ app with many files. I declared some class in `frame.hpp` and defined it in `frame.cpp` ...
[6 replies] Last: Thanks guys very much! (by holtaf)
Calling a header file without a function.
 
So, I have a pretty big code, so I decided to split it. I created a new file called Questions.h, and wrote into it pretty much everything. #ifndef QUESTIONS_H...
[16 replies] Last: It is finally working! The thing I did wrong was that I didn't put the... (by brreakerr)
by Owad88
How to rewrite Memo1 to arrays?
 
How to rewrite the value of Memo1 to 2 arrays? For example, When in Memo1 I have: 4 3.2 1 9.4 2 3.0 6 3.3 Memo1 sends the values to two arrays, such tha...
[1 reply] : The first thing I see is that you have only declared a pointer to int... (by demonwolf)
by anl214
variable names question
 
I was wondering if something in all caps is a valid variable name like AONE or PRINT Also, if periods can be put in something like a.2.1 Thanks!
[5 replies] Last: Doesn't C++ allow variable identifiers to contain '$' characters also... (by moorecm)
too few arguements in a function
 
1 #include <iostream> 2 3 using namespace std; 4 5 int breakfast(int x) 6 { 7 using namespace std ; 8 cout <<"How many calories did you at breakfast...
[5 replies] Last: Thanks Draksis I will try that . I literally sat down a week ago and s... (by jmcghee)
expected initializer error before the + token
 
I am getting a error here I am passing the x y z from other functions. Now I am trying to add those together and store it as t. I get a compiler error "expect...
[1 reply] : Syntax mistake. Try t = x + y + z; . (by moorecm)
Difference between vector and Dynamic array
 
Hi friends, Let me introduce my self first, i am krishna alijala, new user to this forum. i need some clarification on vectors and arrays. as of m...
[1 reply] : 1)Vectors: if compiler reserve large memory for small amount data, is... (by Moschops)
what is this operator?
 
Hello I downloaded a video from Microsoft MSDN and it was about "How Do I: Quickly Create Simple Applications using MFC?", in the video he use an operator th...
[19 replies] Last: Okay, you are almost there. In the first pice of code; the scope reso... (by closed account z05DSL3A)
storing a value from a pointer to a character
 
#include "stdafx.h" #include <iostream> using namespace std; int main() { unsigned char las; unsigned char* pBuffer = "Hello"; for(unsigned int i=0...
[4 replies] Last: Thanks MathHead200. It runs when done as you told me to do. (by rbeatajane123)
by Hexa
About Operator overloading please help
 
hi bros and experts i have two question about this chapter of c++ contain. 1-please tell me about the argument, i mean why unary operator dont have arguments an...
[16 replies] Last: you are quite welcome Hexa (by david91)
Another array problem
 
I'm trying to get a program that lets the user put in their own grades. I'm having trouble with naming the grades. We haven't learned about strings or vector...
[2 replies] Last: Also arrays start at 0 and for (int i = 1; i <= records; i++) is a... (by Mathhead200)
Finding specific text in a file
 
I have made a file that contains a list of people. Now what I wanted to do was that if I enter a number, I will get the Person corresponding to the person. ...
[11 replies] Last: oh, i'm don't really know about the template function (a little bit fo... (by chipp)
by rechim
Polynomial division with rest
 
I have a project for school and I don't know how to implement Polynomial division with rest(operator / ) Please help sith function "Polinom Polinom::operator /...
[19 replies] Last: ok.Thank you! i'll try to put them to place. I'll post the solution wh... (by rechim)
by Krahl
user input problem
 
Hi, my code is a binary search program based on an input from the user. The input is either an integer or the character 'x'. What I am trying to do is have con...
[7 replies] Last: I would have thought my 3rd suggestion would work. Not tested though. ... (by kev82)
by jalfor
Graphics
 
I have recently been teaching myself the C++ language and I think that I am quite good with it now, how do I create graphics. I want to make a particle simul...
[10 replies] Last: True, I just like sfml, its easy, and cool, and OO :) (by strongdrink)
definition of constants that i want to use in the programs
 
#define pi=3.14
[7 replies] Last: oh, didn't know that :D the previous post stated #define PI 3.14 ... (by strongdrink)
How to obtain time to sub second accuracy?
 
I'm trying to write a simple metronome program, but I can't find any suitable functions for obtaining or waiting fractions of a second? I'm currently using cloc...
[1 reply] : What platform? usleep and gettimeofday on unix. (by kev82)
I need a bit of help
 
#include <iostream> using namespace std; int main() { int i; int secretnumber; int guess ; i = 0; secretnumber = 873; } { ...
[1 reply] : Re evaluate where you have your "{" and "}" brackets placed. Remeber t... (by Computergeek01)
I need a bit of help
 
#include <iostream> using namespace std; int main() { int i; int secretnumber; int guess ; i = 0; secretnumber = 873; } { ...
[3 replies] Last: About two third of the code is outside the scope of Main(). You should... (by Computergeek01)
June 2011 Pages: 1... 2021222324... 41
  Archived months: [may2011] [jul2011]

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