Beginners - April 2012 (Page 29)

What is wrong with this code??
 
#include <fstream> #include <iostream> #include <cstring> #include <string> using namespace std; void raamatu_lugemine(int arv, int arv2); struct Raa...
[8 replies] Last: Ty very mutch,m its up and running. Only thing that doesent want to wo... (by vastrolorde)
indexing documents in search engine
 
hi, i have been given a project in c++ of making a mini search engine. i have to do index documents etc in it, iam giving details here, will some body tell me t...
[no replies]
Advice for my game.
 
http://pastebin.com/9UnCPPW3 Here is the code i realy would like some advice what should i make in this game? I know its short but still i hope you will...
[6 replies] Last: You've made this very hard to add things. Better to break things into... (by Lowest0ne)
Different default values for initialized arrays ... why?
 
I'm playing around, trying to teach myself C++, and read online that an uninitialized array of integers defaults to an initial value of 0. I run the following ...
[2 replies] Last: read online that an uninitialized array of integers defaults an initi... (by Athar)
by minlow
How to initialize payRate * hoursWorked from derive class
 
Dear all, the program cannot display the calculations of payRate * hoursWorked and I suspect that I did not managed to intialize the formula. I have been figur...
[1 reply] : This code looks good. The problem should be elsewhere. It really can't... (by hamsterman)
Creating background Sound?
 
It has been a while since I played around with C++, I get bored, then I eventually get back into it. I am still a noob and a horrible coder so if their is anyth...
[1 reply] : I displayed turnOn.beep(); after the for-loop inside the int main() LO... (by idgafsmd)
Trying to build an Outdated Module, having problems with class declarations
 
So I don't know ANY C++. It's very frightening to me. I know a few other languages, so I can try and guess the basics, but C and C++ are mysteries to me. I'm cu...
[1 reply] : The error message I get is: In file included from ~/v2.0.0-b1/sourc... (by npigeon)
how do i use the pow function in this coding...
 
#include<iostream.h> #include<conio.h> #include<math.h> void main() { void area(int i); void area(int a ,int b); int a,b; cout<<"enter two no:";...
[1 reply] : pow() must be doubles. c=pow(static_cast<double>(a), static_cast<dou... (by Lowest0ne)
stream insertions. please help
 
this is a program that takes in a word and gives the user the numbers that the letters coorisponds to on a telephone. can someone show me how to do the one of t...
[no replies]
What problem with my program?I need your help.
 
i am a beginner in c++ programming. i try to make a program but i'm stuck..i dont know what what error in my programming (error C2447: missing function header (...
[5 replies] Last: thanks a lot...you all very helpful...:-) (by chipsmore)
Help passing array in function
 
I'm having trouble passing my array into a function. I wrote the program with the desired result then tried to put it into a function, The program grabs a str...
[4 replies] Last: Write your function declaration after this line using namespace std;... (by adesh)
by TribaL
Another question.
 
I got my previous question figured out and now I am on a different example in the eBook I am learning from. I need to make a program repeat after the game has f...
[3 replies] Last: The loop needs to have the entire game in its body. Take that parenthe... (by iDontGetIt)
by jwings
Please help me solve this problem in O(n)
 
Here is the question. I can easily solve this problem in O(n^2) but I cannot solve in O(n). There are n people. The entry K of K[1..n][1..n] is 1 when per...
[1 reply] : See: http://webcourse.cs.technion.ac.il/234247/Spring2007/ho/WCFiles/E... (by JLBorges)
by sanyam
Using _inp(),_outp() funtions for Communicating with ports
 
Hi. I'm using Windows 7. I want to learn how does c++ communicate with ports. I googled and found that functions _inp(),_outp() can do that. But I don't know ...
[3 replies] Last: You can find it yourself on the msdn site: http://msdn.microsoft.com/e... (by coder777)
by takzee
switch case return only 1 value
 
Hi there , I'm doing revision that I left in the class due to insufficient time and I found that I stuck at the question again . #include <iostream> us...
[2 replies] Last: Sweet Jesus son of God you are correct ! Big thank you for you ! (by takzee)
Error: incompatible types in assignment....
 
I am having some trouble getting this program to open so I re did it according to some notes taken from another program I found and now it won't even compile! I...
[2 replies] Last: Jikax (113) Apr 17, 2012 at 9:11am and now it won't even compile! ... (by Joshua Spears)
Random numbers not working
 
Ok, I decided to create a small program today to test out some new stuff I had learned, and for some reason, the random number generator always generates 18. I'...
[2 replies] Last: Whoops haha sorry. I'll fix that. (by opiop65)
by EVKiev
Rearranging elements of a matrix
 
Hello. I need to rearrange the diagonal elements of a matrix myArray in an increasing order.Here it is what i have done so far. I have got an error while ru...
[6 replies] Last: @hamsterman That was the question that solved the problem )))Thats why... (by EVKiev)
Function or loop to accept only positive numbers?
 
Hey guys, First post here. I'm working on a numerical palindrome program for class. One function is supposed to prompt for a non-negative number and keep o...
[13 replies] Last: LB, I see what you're saying. I think you missed my updated code tha... (by marblesmike)
by ihato
Event when program ends
 
How to check if program ended (Like killing it in TaskManeger or at Shutdown)? //Something like this /*#includes*/ int main(int argc, char argv){ while...
[3 replies] Last: Try atexit: http://www.cplusplus.com/reference/clibrary/cstdlib/atexit... (by coder777)
April 2012 Pages: 1... 2728293031... 66
  Archived months: [mar2012] [may2012]

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