Beginners - January 2011 (Page 19)

Problem with Pointer to Char Array
 
I cannot get my whole char array to print out by calling the cout function on the pointer to the array. The pointer prints the whole array when called before t...
[3 replies] Last: Thanks for your help. I decided to use the string class. (by kevin21388)
outputting decimal values less than 1
 
Hello community. I've got a question about outputting decimal values less than 1 and greater than 0. For example, if you have a variable of type double that...
[3 replies] Last: +1 Zhuge (by jsmith)
What is a Magic Number
 
please can someone tell me what a magic nuber is and its uses in C++...thanks in advance
[5 replies] Last: i tried every search engine i know, but everything is really complicat... (by temityao)
Whats wrong with my class?
 
im making this class(im following a tutorial) and it wont work, i cant se whats wrong x_x.. source code: class System { public: void Se...
[3 replies] Last: lol thanks :P (by TheBreadCat)
Use string as filepath for reading file on a different computer
 
I have my application to copy a file from a different persons computer. It just uses the normal network directory of //<ComputerName>. It gets the person to inp...
[17 replies] Last: Good sir, I am insulted and as such you will from now on see a callous... (by closed account 4Gb4jE8b)
Break statement not in loop...
 
I cannot get the below code to compile (using eclipse) due to two errors. This is my first assignment and I obviously missed something...any help is greatly ap...
[1 reply] : DAMN! Solved it myself. I needed to paste the computePercentages fun... (by OldNewProgrammer)
File write-read problem and some questions
 
Hi, I am trying to write a simple c++ script to learn more about file manipulation. First script is adding some info a file as a structure and second one is re...
[no replies]
QTextStream
 
Hello, ewerybody! I`ve got little problem. In my programm I want to send formatted data to a string variable. I want to do it with help of QTextStream, but...
[no replies]
by Crutoy
Diamond shape
 
Hello , i was doing an exercise in book which asked to draw a diamond shape by displaying '*' using nested for loops. It took me quite a while to come up with a...
[no replies]
by Tanax
Again there's something wrong with addresses..
 
Heya again, sorry for the bombardment of threads I'm creating. Once again I'm in need of your assistment as I only get an address printed out, which wasn't the...
[17 replies] Last: Why inline instead of separate declaration and definition? Becaus... (by Disch)
Is it bad if I don't remember all the...
 
Is it bad if I don't remember all the functions in the cstring (and other) headers, such as strcat()? Or is it not normal to remember all those, but rather to h...
[4 replies] Last: Exactly. (by pwnedu46)
" Ans " for cmd calculator
 
Sup peps ! I made my first calculator two day's ago " in fact its my first program " yet i still ave 1 problem and i do not know why its not working! I wi...
[5 replies] Last: Lol. I remember making the same mistake not too long ago. :P (by pwnedu46)
Organization of a program
 
Is it better to have multiple thousand lines of code directly in int main() on a console program, or is it better to have multiple functions accurately breaking...
[6 replies] Last: Splitting cause slowness? Only if your header doesn't have inlines for... (by rocketboy9000)
by cppnb
separate cin values with : colon
 
HI,i am beginner in c++,i got stuck trying to separate values entered with :. for eg: cout << "Pls enter name\n"; cin >> Name; data << Name; ...
[4 replies] Last: Well,i am trying to store cin data entered into a text file..each data... (by cppnb)
by acorn
is overloading operators syntext just a matter of experience
 
i know there is little chance i will need to use overloaded operators but im trying to remember how just in case i do. the problem is outside of remembering tha...
[8 replies] Last: Here is another reference that includes some code examples that you ma... (by Alrededor)
sfml tutorials
 
im relatively new to programming and i want to start using sfml, the tutorials on the website and wiki are a little bit confusing and don't really explain every...
[no replies]
Recursive function seems to be looping
 
Hi I'm currently creating a program for an assignment that uses recursive functions to calculate a exponentation algorithm using the repeated squaring method...
[3 replies] Last: p = pow(a, 1)? why not just p = a? Edit: Actually, even better wou... (by Browni3141)
Sorting Array.... Without using Sort ???
 
Sorry if this is a really silly question, is there a way of sorting an array, or to be more precise outputting the largest number in an array without using sort...
[5 replies] Last: post your code and a test case (input/output) (by ne555)
by acorn
Const
 
I think i got my constants straightened out. there is so many ways you can use it that it was confusing to me. the only question i have is when would you want a...
[2 replies] Last: thanks jsmith. it made sense to me as a reference or like you said a p... (by acorn)
Finding a different way to clear screen
 
in one of my very first projects i used a function that i learned later on wasnt good to use ever. the function was System("CLR"); i know that it is never...
[3 replies] Last: To answer the OP's question: http://www.cplusplus.com/forum/articles/... (by Duthomhas)
January 2011 Pages: 1... 1718192021... 42
  Archived months: [dec2010] [feb2011]

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