Beginners - March 2011 (Page 15)

comparing unsigned char to hex value
 
I want to compare a unsigned char that has the hex value: 0x01 to 0x01. How would i do that? Tried googling with no success.
[1 reply] : unsigned char c = 0x01; if(c == 0x01) cout << "yay"; (by hamsterman)
by ty98
how do i drow a picter in a console program
 
I need to know how to drow a image. like a circle. Do you have eny ideas?
[7 replies] Last: You CAN use SFML in a console program. The introductory tutorials at t... (by closed account D80DSL3A)
program skipping if/else statments
 
This program needs to display the integer someone enters as a word. ex. 43 = plus forty three of -29 = minus twenty nine. It is assumed the user will enter an...
[1 reply] : These two statements: msd = number / 10; lsd = number % 10; s... (by KAt in ThA hAt)
fstream question in program
 
I have been trying for a while to figure out how to put my program together where it writes to a file the height of a projectile. The exact problem is stated ...
[8 replies] Last: ...vaguely explain roundabout answers? 1. "How you write it into you... (by matsom)
Simple Code failing
 
I have been window gui's with winapi and game hacks, but i suddenly realized that i don't fully understand everything. So i quit hacking and crap like that and ...
[3 replies] Last: Your problem is the for loop. Look here: http://cplusplus.com/doc/t... (by Branflakes91093)
C++ Test Review Help Please
 
I am in a beginning level C++ class, and I haven't been doing so well. The next test is on Thursday, and here are the subjects I am having trouble with. Please ...
[10 replies] Last: Write a linked list (of ints) library: create, destroy, isEmpty, count... (by hanst99)
Template Class - Method Definition Problem
 
Firstly, here is my header: namespace MBB { template < typename BLOCK_TYPE > struct MBB_Memory_bin { MBB_...
[5 replies] Last: Thanks for the link, Ne555. I'll read upon that now. Also, thanks for ... (by closed account zb0S216C)
subtract new - used
 
I need to subtract the trade in price from the new car price. I'm unsure of how to get it and where to enter it so I'm going to toss some of my code on here......
[6 replies] Last: Ah........you're right, I must quit drinking at 9am..........hahahaha (by turbowhat)
function does not take 0 arguments
 
I don't know why i get the error "function does not take 0 arguments". I've tried to make a return but im not sure if it's right in my function or something is ...
[3 replies] Last: You need to pass two arguments (like function(argument1, argument2); ... (by Albatross)
Command Prompt
 
There was a tutorial I was following, describing how to write code in the Command Prompt, it directed me to change the directery I think from C/:windows32 to /P...
[13 replies] Last: Okay thank you (by STRADIGY)
struct and reading from a file
 
First problem is how I would count how many people are in a certain file when the file follows : April,Joe 312033387 12 Matthews,Jocob 459237148 39 Garfie...
[4 replies] Last: Like Hamsterman said, you'll need an array of Nodes: #define NO... (by kooth)
by ty98
how to make a menu in a console program???
 
I need to know how to menke a console program have a menu laike a win32 proram. do you have eny ideas? THANKS FOR REPLYS
[3 replies] Last: In any CLI, you can just display a list of options and accept input fr... (by moorecm)
opengl question
 
This is a texture related question. When I load a bmp image and use it as texture for with GL_QUADS,its ok.But,after glEnd() if I start another GL_QUADS and ...
[2 replies] Last: I expected what you're saying ,since Opengl is defined as a state mach... (by oldnewbie)
Palindrome
 
I am pretty close to being on track with this program, but I have been getting stuck on an area. The program formulas may not be correct, but at the moment all ...
[6 replies] Last: Whoah, disordered posts. Anyways, maybe that's not part of the assignm... (by ultifinitus)
About pointers
 
Hey there. I have the following code: int *i; *i=5; This one works perfectly fine on Code::Blocks. My question is: why it's not necessary to alloc ...
[6 replies] Last: Really, a common C++ developer doesn't need to know how new, delete, a... (by closed account S6k9GNh0)
Insertion sort on singly linked list
 
#include <iostream> #include <fstream> #include <string> #include <iomanip> #include "StudentRecordDataNode.h" #include "Course.h" #include "StudentSingleList...
[no replies]
Notepad program
 
I am having issues with a very simple notepad program I am building. The bolded line has this issue: error: no match for 'operator>>' in 'a_file >> file' ...
[2 replies] Last: Thanks that solved it. I don't know how I overlooked that. (by Caesar1)
case and function problem
 
My assignment is to work with a phone number input using 3 functions besides the main function. When setting a character input, when lowercase, to toupper, how...
[2 replies] Last: I've not seen a whole lot on switches being used, but the assignment a... (by shiyongseng)
program crashes
 
im trying to assign underscores into a string randomly but it gives out an error when i run it. im making a hangaroo game,, thanks! void assign() { ...
[3 replies] Last: Okay ... you are misusing char arrays. Until you know more about me... (by Disch)
by Maerle
linked error
 
what's wrong with this program?? Here is the problem: [Linker error] undefined reference to `incrementMinutes(Time&, int)' ld returned 1 exit status #inclu...
[1 reply] : You have a typo. Where you have defined incrementMinutes , you have a... (by anonymous23323124)
March 2011 Pages: 1... 1314151617... 52
  Archived months: [feb2011] [apr2011]

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