Beginners - March 2010 (Page 8)

Stuck with my functions and output
 
Hello, I've written most of my functions that I think I need for this problem, but can't figure out what I need to write for my last functions and output. T...
[no replies]
Exception Handling
 
How can I make my program not terminate if a letter is entered here? I am trying to restore the input stream but it's not working. #include <iostream> #...
[2 replies] Last: Doh! lol Thanks! (by yoked88)
Why am i getting an infinite loop?
 
Hey everyone, I'm trying to figure out why i cant take cin our of its failed state. I am getting an infinite loop if i enter a character but i am using cin....
[no replies]
incorrect output
 
This program is supposed to display a polynomial based on user input. Everything works fine until I make a or b = 0. A sample input would be a=0, b=6, c=-3. ...
[7 replies] Last: Thanks for this insight I would of never thought of doing it that way.... (by OnymousIllusion)
√ question
 
Is there any way, without using GUI, can you display a √ ( square root ). Example for the quadratic formula?
[4 replies] Last: I will try that thanks (by OnymousIllusion)
Book Cipher (1,2)
 
Hi everyone. I am faced with a new challenge. I have to create two programs: one that encodes a file using a book cipher, and one the decodes it. I do not want ...
[25 replies] Last: can anyone help me please I have to have this assignment done by thurs... (by th3pr0f37)
How do I use variables from other functions in the MAIN function?
 
I have 3 functions and all of them have information the user inputs, but then I need to grab all that information and compute something in another function. ...
[2 replies] Last: Ok thanks a lot. (by whitesnow)
Reading a Unicode file
 
Hi there, long time reader, first time poster, I am writing a program that needs to extract data from a .CSV file which is encoded in Unicode. Using ifstream d...
[1 reply] : There are a few unicode encoding schemes. Is this UTF-8? UTF-16 BE... (by Disch)
namespaces and invoking C++ from C#
 
It's been a long time since I programmed in C++ and so I am a little puzzled. Looking at some old code of mine I see that I have in a .h file a declaration o...
[1 reply] : If I'm not wrong, every class has its own name space so if you want to... (by nomentero)
Clear Line Command?
 
I know there is a clear screen command, but is there one to clear just a single line? Thanks
[5 replies] Last: Why would they not have it?? They used to have it back in the day. (by Conehead)
Problems with a password checker
 
Hi everyone. I'm a beginner at c++ and I have a program due tonight that I've been stuck on for two days now. I have code written and it compiles with no errors...
[4 replies] Last: I can't tell you where your problem is because you did not use the cod... (by Computergeek01)
by Melee
Class X has no member named Y
 
I'm having trouble figuring out what this error message is telling me. I've got a driver cpp file, that is compiled with its functions (vlifunctions.cpp) and a ...
[2 replies] Last: You need to post code. I can tell that it is unlikley that you will ge... (by Computergeek01)
by LEESI
Decision Structures & loops problem
 
Have a question to answer in a chapter but im not even sure where to start with this one lol, im not looking for the answer just a idea where to start i guess. ...
[2 replies] Last: hey thanks for the reply, that all look awesome actually may be usfull... (by LEESI)
failed result function sqrt
 
can anybody help me? 1. Why in calculating the discriminant is the result failed? 2. How can i do this: If D < 0 program , program stops and prints e.g: "...
[1 reply] : Thank you for using caps in your variable definitions, otherwise I nev... (by Computergeek01)
Merge Sort
 
I am trying to use merge sort to sort a randomly arranged linked list. However, its not working properly. The code seems to compile but the sorting is not done ...
[5 replies] Last: Actually, when i tried this code with integer variables rather than us... (by preetii90)
POINTERS - Ok, I feel stupid but...
 
...I need a little help. I'm trying to copy a file into an array for analysis. The error I'm getting is on line 43. Also, my function at the end...All ...
[7 replies] Last: aha! i figured it out. should have been using ascii dec codes. Than... (by oghmaosiris)
user defined header files
 
im trying to create my own libraries and header files and jst cant seem to get it right i try simple examples but compiler keep thorwing out same error heres my...
[7 replies] Last: lol silly error guys soo this what you got to do....(for code blocks) ... (by blaze745)
Strings!
 
Hey, I'm trying to write a program which does the following: Takes a string, displays it in all capitals displays it in all lower case lette...
[1 reply] : Made some progress, everything works now...however I'm having trouble ... (by Adrioth)
by zootv
How to change one row in a matrix using a loop?
 
Hello. I have the matrix below (3x3)which contains 9 names. How can I change one row in this matrix using a loop and set all names (of that row) to Pete? Thanks...
[2 replies] Last: Thank you. (by zootv)
by ARWA
cannot open the header file fstream
 
hi there ,my program is not considiring with anything that relates to the heder file fstream i dont know why although iv called the header fstream these are ...
[2 replies] Last: thanks alot,its amaizing how small things can lead to big things best... (by ARWA)
March 2010 Pages: 1... 678910... 34
  Archived months: [feb2010] [apr2010]

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