Beginners - September 2011 (Page 23)

Catch programs
 
is there any way to "catch" programs that I'll turn on/off and add their name to std::string?
[5 replies] Last: windows... (by mekkatorqu)
How to make a 2d game (1,2)
 
I am competent in c++ and i have a good grasp on sdl, I thought that once I reached this point making a game would be no problem but then 4 hours and 200* lines...
[22 replies] Last: I'm all for wrapping up the switch into a nice AI class, but why repre... (by gpotw)
how?
 
I am reading a file character by character and displaying it on the screen. char c; int count = 0; if (c == '{' || c == '}') count++; if (c=='/'...
[15 replies] Last: For checking if braces are balanced you can use a stack: If you encou... (by hanst99)
Need more simple way to do this
 
Excercise from CH4 Primer Plus is killing me. I need easier way to init all those variables in candybar struct #include <iostream> #include <string> using name...
[11 replies] Last: Considering he used dynamic allocation, I'm not so sure about that. (by Athar)
Inheritance
 
Can someone PLEASE HELP ME!! I am trying to get access to the sorted array in the Mode class, so that I can find the median of the array. The program runs befor...
[19 replies] Last: I have been working on this program all day and I can't get this progr... (by karatekid)
Integer to Roman Numerals
 
I have a homework assignment to do the following. Your task is to write a C++ program to help you convert a number into roman numerals. Roman numerals are I f...
[1 reply] : I messed around with it a little this morning and got this for number ... (by Esanders323)
by malice
How do you know if you have what it takes?
 
This may be a weird thread, but I really need some advice from experienced programmers. I'm a few years out of high school and considering life career options....
[6 replies] Last: Yeah I'm OK with that, didn't mean to give the impression I wasn't (wi... (by malice)
Saving a username.
 
I'm writing a program that has a few usernames for the user to choose from; they then pick their preference and are called that from then on. It had me think...
[6 replies] Last: Sorry, I must have read it wrong. (by Ben Duncan)
How to display the number of iteration.
 
This is a code of bisection method of root finding. I know this is not c++ it is in fact matlab. However i always get a more sophisticated answer from c++ guys ...
[2 replies] Last: If I understood what you want to do correctly, just keep a variable ar... (by hanst99)
Need help running my program
 
i need help with my first project in c++. I think i have the content bu yet i can't find where to put a close brace }....please help me go over my code #inclu...
[5 replies] Last: Please show us your code, thanks. (by ascii)
by dupur
reading line with cin.get();
 
Hi I am new to programming. I have a problem with the following while loop. I want the loop to break when it gets two or three "ENTER" input from keyboard simu...
[2 replies] Last: Well, I didn't answer because I have no idea what you mean by I want ... (by hanst99)
by Huei
Blackjack (condensing/loops)
 
So for the first project, we need to make a simple blackjack game. This is the sample program output example given. Welcome to the COMP 51 Casino! Let’s Pla...
[no replies]
About dimensions.
 
let's say a = 1, 2, 3; funnyfunc(x) = a*x; then y = funnyfunc(2); if i cout that it will be 2 4 and 6 now what if i want x to be 1, 2, 3 too?...
[4 replies] Last: If you are looking to transfer arrays; you can do this: //swapping ... (by Ben Duncan)
2-Dimensional Array not working?
 
I have this code: #include <iostream> #include <conio.h> using namespace std; int main() { int someArray = {'O'}; for(int i; i < 2; i++) ...
[2 replies] Last: Thank you. I assumed that all variables started at 0. (by Chuckleluck)
by zbar
Classes
 
Hi, I have done some c++ programming and used structures as opposed to classes as I understood those. My problem is understanding Classes. I have read many arti...
[5 replies] Last: Thanks for the assistance that has shed some light, especially to Fram... (by zbar)
by Kendra
Homework Help - Standard Deviation
 
Hey guys. I am new to C++ and up to this point I have had no trouble getting any of my projects to compile. This is HOMEWORK, so I am not looking to be spoon fe...
[7 replies] Last: That is syntactically correct but it won't calculate the standard devi... (by shacktar)
I Have A Few Questions About Setting Up Templates.
 
Hi guys. I was given a project on Friday that involves using templates in a header file to allow elements in an array to be either integers, floats or doubles. ...
[1 reply] : The other file given is the implantation of the first file. This one i... (by strokes762)
What is wrong with these loops
 
I need to know what is wrong with each of the following loops, I am pretty sure they all have the same problem. do { cout << "true" << endl; }while(tru...
[9 replies] Last: Why not have a browse through these books: http://www.freetechbooks.co... (by closed account zb0S216C)
fatal error link 1120: 1 unresolved external
 
I just started taking a C++ class, and I keep getting this message when I try to run my program. fatal error link 1120: 1 unresolved external I cant figu...
[1 reply] : Of what type is TC ? Also, what function is the compiler pointing to... (by closed account zb0S216C)
How to run c++ program without running c++
 
How can i run a c++ program without running c++? I mean i could open it but it crashed right after i entered some values. thank you in advance
[2 replies] Last: Go to the directory where your compiled program (.exe) file is located... (by zbar)
September 2011 Pages: 1... 2122232425... 48
  Archived months: [aug2011] [oct2011]

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