Beginners - March 2011 (Page 7)

Sum of Digits?
 
So, I'm wondering how one goes about taking an answer or result, and manipulating the individual digit data, for example: 98 + 1 = 99 and taking the answe...
[10 replies] Last: but i'm thinking i could just have this lot a separate function and h... (by Browni3141)
Routing messages from WndProc()
 
With this: LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam) { // Route all Windows messages to the game engine return Gam...
[12 replies] Last: maybe you're right @ hanst. I haven't actually looked at his other po... (by Disch)
Multiple Linker Errors with a my Design Classes Project - Need guidance please
 
I am in my second c++ class in school and I am stuck on my latest project. I want to be upfront and say this is a homework assignment. My teacher said it is o...
[2 replies] Last: Thanks for the quick reply. Let me see what I can do now. (by brinks56)
Problem with destruction using iterators
 
I have a vector which saves a face of a triangulation which has three points in 3D. I create each face using new (face is a class). When i try to use destructor...
[5 replies] Last: Oh! That was a huge misconception ! Thanx a lot ! ya! that was indeed ... (by navderm)
error C2447: '{' : missing function header (old-style formal list?)
 
I am having trouble with this C++ code. Can anybody help me? #include <iostream> #include <string> #include <iomanip> //prototypes char toDigit(char&); ch...
[6 replies] Last: Modified the code, but guess what still some errors. #include <iostre... (by closed account 49ECpfjN)
by Troffe
User Input File & Validation
 
Hello! I've been struggling for a while, so hopefully you can help! I need to: #1 - validate that the file can be opened (think I've accomplished) #2 - val...
[no replies]
Error while declaring a vector of a vector of strings in my class
 
Yeah...this project got a bit more complex than I would have thought. But oh well. I'm trying to make a trivia game for a programming project. I was going to...
[1 reply] : vectors and strings are in the std namespace. Change your class to th... (by Disch)
Creating login form
 
So I am trying to make a program where before you can enter the actual Program itself it will take you to a second form where you first must login. the code...
[2 replies] Last: I commented out the close command and the form just sits there, does n... (by jonaltv)
Main functions, int & OOP
 
Hi, this is pretty basic, but i have no idea how to fix the bug i have. I can't manage to get a int value in my objects in my main. Is there a way you could t...
[18 replies] Last: Try cout<< "hi" <<endl; (by ty98)
Creating Program with Friend Functions and Function Overloading
 
I am to create a program with a Class Set having the the following member functions: • Set() • void AddElement(int v) • void RemoveElement(int v) • ...
[2 replies] Last: i read up on how to accept the inputs and be able to store them online... (by JazzyJeff)
Linking problem, I believe.
 
I have a assignment which requires the use of multiple files. I don't believe I am linking them together correctly. I'm using visual basic 2008 at the moment. ...
[2 replies] Last: Main cpp file: #include <iostream.h> #include <fstream> #include <... (by Casper3912)
Why won't strings show up as the whole word?
 
Okay, take a look(briefly at the beginning parts)at my script, or if you know why, just tell me :3 why my string wont pop up as a full word, for the battle scen...
[4 replies] Last: singles are for constants No they are not. Single quotes are for si... (by hanst99)
Question about dynamic strings
 
When i compile my code I get an error for this piece of code char *st ; st=new char ; The error is error C2440: '=' : cannot convert from 'char (*) ...
[1 reply] : char *st Is a an 81-element array of char*, whereas char (*st) ... (by hanst99)
why wont my cout words come up?
 
The place they won't come up is in the end, whenever the player uses a potion, in the script i'm going to show. So basically you just need to read it. If it he...
[2 replies] Last: if( potions = 0 ) = is assignation == is comparison (by ne555)
C++ problem...Plz
 
Hi everyone,,,,this problem is from my C class... The question is below,,,,I finished almost of then,,,but I'm confused about the calculation for the cost.. Can...
[4 replies] Last: The points were "attached" to the river? In that case I think that the... (by ne555)
buffers in C++
 
Hi, I have posted a question on the General C++ Programming forum, but since I don't understand the answer that was given to me, I understood that being a be...
[7 replies] Last: You have it right, just make sure you're checking the variable not the... (by Computergeek01)
by owen
how to write reversi in windows forms application
 
i dont know how to write chess board (Visual studio 2010) private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { bd = gcnew a...
[no replies]
by tombaa
please help :)
 
so im trying to do this mathematical equation and it just wont seem to work can anyone please tell me what im doing wrong? thank you :) oh and im using iostrea...
[3 replies] Last: Ah well, I missed something: You can't use the ^ operator like that i... (by hanst99)
error C2447: missing function header (old-style formal list?)
 
#include<iostream> #include<conio.h> using namespace std; int main(); { int array ,t; clrscr(); for (int x=0;x<5;x++;) { cout <<"How...
[6 replies] Last: No thread hijacking, make your own. And use code tags. char readDia... (by hanst99)
by dAND3h
Help with template class
 
Hi, I made a Double Linked List data structure. But I am in a snag for a certain part of my program. I have a player class, with name,age,exp. I can add players...
[3 replies] Last: But also, If I am searching a linked list, is the complexity O(n)? Y... (by hanst99)
March 2011 Pages: 1... 56789... 52
  Archived months: [feb2011] [apr2011]

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