Beginners - July 2014 (Page 9)

How to draw this in C + +?
 
Hi, I was doing some c + + and I'm doing the typical game of battleship, my question is, to draw the ocean, so it would be like -->http://subefotos.com/ver/?7...
[3 replies] Last: #include <iostream> #include <iomanip> using namespace std; vo... (by AbstractionAnon)
Need help with input & output files
 
I am working on a program to decode an encrypted file. The problem is an error I continue to get on line 29, I have it noted. I am not sure if this is the reas...
[2 replies] Last: Thanks for the reply, but it doesn't seem to apply to this issue! (by treed2010)
function is not behaving!
 
I have parced and hacked this function every which way, but can't figure out why it gives the wrong result for the middle statement. If you see something I don'...
[4 replies] Last: they're defined elsewhere I would advise against using global variab... (by giblit)
Run-time errors
 
I'm reading Programming: principles and practice using C++ and I'm trying get the error() function to work. error() is suppose to terminate the program w...
[4 replies] Last: You're right, Peter. My program threw an exception, runtime_error , ... (by dbrandts)
C++ newbie
 
I'm new to C++(no duh right?). Just wondering if there's a way to run the same code multiple times but have it act differently on each run around? For instance...
[8 replies] Last: Also Bill Gates didn't become the richest man in the world by giving ... (by Codermik)
reversing stacks
 
I don't understand where my coding is wrong. These are the errors I am getting when I debug: Error 2 error LNK2019: unresolved external symbol "public: bool __...
[1 reply] : You have given the prototype for operator== , but you never define it... (by Lowest0ne)
by wharp2
If/else....
 
ok so I don't know why my program is doing this but what happiness is when I enter the package I want and the number of HR used it alway goes through the right ...
[6 replies] Last: what do you mean cleaning up? Just because it's working doesn't me... (by AbstractionAnon)
Airline Reservations help
 
Hello, I am having all types of issues with writing this program. I don't really know where to go from here on fixing it and I just read over the requirements ...
[4 replies] Last: I'd try walking through the code on paper or through a debugger and fo... (by wildblue)
Quadratic solver with complex roots
 
Another quadratic solver but this time with imaginary roots included. Ignoring the fact that the imaginary part gives the wrong answer (although advice would b...
[2 replies] Last: Ahh I didn't know about that! Thank you very much, more stuff to learn... (by SomeCodingNoob)
by Genia
vectors
 
Guys, i have two codes that fill up vectors and then afterwards another piece of code should use the numbers in vector for further processing. When I use 1st co...
[2 replies] Last: Here is the code that i use to process the dara from peak_pos vector: ... (by Genia)
Looping problem
 
Im having a problem with my loop. If someone gives me a credit card number less then 13 or greater than 16, i want it to loop and ask the user to enter a new nu...
[16 replies] Last: i didnt read you whole code just the line you said.. i think becuase ... (by xenovia12)
language learner
 
please suggest the sequence to learn languages...I know c++ intermediately... I am a undergraduate. ... going for computer science and Engineering degree.....t...
[2 replies] Last: since you know already c++ intermediately why dont you continue it, c+... (by xenovia12)
Update textbox value from another cpp
 
I gotta fetch textbox value from another cpp file. let's say one.cpp is having the following code snippet which exactly creates the textbox. CreateWindow...
[1 reply] : How do you get the value of that textbox in the "same cpp"? Lets use... (by keskiverto)
Prng into static class.
 
How do I make this a static class. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { srand(time(0...
[3 replies] Last: Or he could use a namespace. //header namespace SomeNamespace { voi... (by Peter87)
HELP
 
I am struggling to find the issue. #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char argv)...
[10 replies] Last: Don't forget to change your thread be SOLVED(Do not ask me, I don't kn... (by lsk)
by Arcie
cin.ignore() confusion...
 
Ok, this has been throwing me off in my programs for a while now. I don't understand why sometimes it works just fine and sometimes it creates a need for a keyb...
[1 reply] : try making cin.ignore(1, '\n'); to cin.ignore(1000, '\n'); (by imtehnewb)
Error with cin in while
 
Hello, I'm kind of new in C++ programming and I'm starting with data structures (in this case binary trees). But when I read information from console I keep get...
[4 replies] Last: Wow! Thank you so much... I feel stupid now.. ;) Jaja Thanks. (by Jmromeroes)
Changing from a Bubble Sort to a Return Void Function. Need help!
 
My teacher had us create a program using a Bubble Sort. I did that assignment correctly, but now his new assignment is to use that program and make changes. I h...
[8 replies] Last: Use pointers in your function to reference the array elements. Tha... (by Codermik)
Why doesn't my while loop work?
 
I was trying to make a program that would let me create and revise a new character's name and class using a while loop, but I think my loop is flawed somehow. C...
[2 replies] Last: It works. That was a simple fix, but I couldn't find it until you poin... (by HomerSimpson)
If statement troubles
 
Hello, I've created my own calculator code; however, when I run the program the only operation that works is addition. How do I fix this? #include "stdafx.h"...
[5 replies] Last: [quote=OP]I tried adding another equals sign. I tried 5 * 5 and receiv... (by programmerdog)
July 2014 Pages: 1... 7891011... 43
  Archived months: [jun2014] [aug2014]

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