Beginners - January 2011 (Page 24)

by lmwamh
Getting 2 Errors
 
...
[4 replies] Last: Thank you for your help! (by lmwamh)
Sorting multiple columns
 
Can you guys take a look at the below and give me some guidance? I need to sort the netpays and recieve a " a function-definition is not allowed here before '{'...
[10 replies] Last: omg youre right. I amended it and now it works. THANK YOU. I am off to... (by cplusplusrookie)
by acorn
function pointer
 
Im not trying to use every c++ feature but i am trying to use them at least a few times so i can remember how to use them if i need to. Im working on fuction po...
[4 replies] Last: ok guiys i think i got it. the one about recording moves was interesti... (by acorn)
How can I determine the number of letters in a word?
 
I'm currently attempting to make a hangman game. The game will be a computer vs a person. I would like the program to be able to look through a list of word...
[5 replies] Last: indeed i do, it was one am my time, my apologies :P (by closed account 4Gb4jE8b)
by Kyon
Prime factorization
 
I once again struck on a problem with prime numbers, this time, it's about Prime Factorization. I wrote a little recursive code to print out the complete list o...
[2 replies] Last: ..How did I ever look over that? :/ Thanks. (by Kyon)
Swapping values using *pointers
 
I'm trying to swap to values using pointers to point to the address of my variables. Please note that I know you have to use &theseed when seeding the values....
[5 replies] Last: thanks guys, I've learnt that I had forgotten to use the * when tellin... (by Blessman11)
unreachable code at beginning of switch statement|
 
hey , plz help me here is the code while((c=Menu())!='6') { switch (c) { case '1' : cout<<"\nentrer le nombre d'etud...
[5 replies] Last: Ty so much , it worked . im stupid :) (by dexterof)
problem with strings ND header file
 
I have this problem with strings and my constructor. MV C++ tells me that strings in the constructor (within the security class) of my security.cpp file are not...
[2 replies] Last: Thanks a lot for the info!!! (by honeyoak)
Sorting netpays
 
I need to sort the netpays in ascending order and am really lost. Can you guys give me a nudge in the right direction? #include <iostream> #...
[6 replies] Last: It's because no such object as "employeeid" exists at that level. W... (by Moschops)
Could someone explain exception handling?
 
I've been wrestling with this for days now and I need to know it before Monday. And it's pissing me off that it's not getting stuck and just reading about it in...
[1 reply] : - What is exception handling used for?: Exception Handling is used... (by Computergeek01)
OR operator in loops?
 
Whenever I seem to use || it just glitches up the program, and if either variable is true, it will keep looping. As in while(Bool1==false || Bool2==false...
[5 replies] Last: if you want it to loop when they are both false, and break when at lea... (by quirkyusername)
How to generate random numbers without using rand() function?
 
In a statistics book there is an algorithm of generating pseudo-random numbers with uniform distribution [0,1]. It says: I. Enter an initial variable X positiv...
[1 reply] : Use this to get the fraction part of the division -> http://cplusplus.... (by m4ster r0shi)
issue with header file (1,2)
 
i'm trying to make a header file called timed_text.h, which looks like this: #ifndef TIMED_TEXT_H #define TIMED_TEXT_H #include <iostream> #include <st...
[21 replies] Last: Yes, inline and template functions go in headers. My guess: when you... (by ne555)
Need assistance with assignment
 
I do not expect anyone to do all of my homework, After seeing some of the other forums, I noticed that there is alot of people that want others to do their work...
[2 replies] Last: Wow, there really are a number of ways you could go about this. This f... (by Computergeek01)
set time value to a variable
 
#include "includes" int main() { time_t rawtime; struct tm * timeinfo; char buffer ; time ( &rawtime ); timeinfo = localtime ( &rawtime ); st...
[5 replies] Last: NVM SOLVED IT (by Abanoup)
find frequence used word
 
Write a program that determines the frequently used words in a text file. We’ll define frequently used to mean that a word accounts for at least 1% of all the...
[12 replies] Last: Ah yes. I "borrowed" some text from an article here. I do thing this c... (by wolfgang)
Running your program
 
Hey, I'm new to C++, and I am used to Turring, were when you click "run", a new winodw pops up and executes your program. I've been going through the tutorials ...
[1 reply] : You need to add a stop to the end of your program. See: http://www.cpl... (by wolfgang)
Can't create Object of Class
 
Hey folks, First of all: Thank you guys for this amazing board! SO far the tutorials are grate and worked for me but here is a little something that I just c...
[4 replies] Last: Ah nevermind. I figured it out. This time I just forget to create an O... (by Dudovitz)
by Kryon
VC++ 2010 Express vs Pro
 
Hey guys. I'm new to programming and I'm just curious if there is a big difference between the express and pro editions of VC++ 2010?? Obviously the pro editio...
[10 replies] Last: Yes, but Visual Studio 2010 Professional is not Visual Studio 2010 Ult... (by Metallon)
problem with floor and round
 
Hi all.I have some problems with round, floor, ceil and so on.I want my program to output only integers, and it doesnt work with round ceil and so on and i dont...
[7 replies] Last: It works perfectly.Thank you a lot for the help :) (by Jennifer)
January 2011 Pages: 1... 2223242526... 42
  Archived months: [dec2010] [feb2011]

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