Beginners - November 2010 (Page 28)

Addition carry problem
 
I simply don't know what else to do to get the number to carry over and open a spot in the array so it can show up. I've got the coding for the rest of the prog...
[2 replies] Last: You seem to be adding your arrays from the zero element to the top. Th... (by Galik)
WndProc
 
Hi. I learned C++ a few years ago from a guy who apparently thought DOS is the benchmark of OS, so I'm working my through a windows tutorial. The tutorial (forg...
[1 reply] : That's a rather pointless exercise. Each window type handles a subset... (by kbw)
pre/post increment overloads
 
Hello, I am having trouble figuring out why my overloads for the pre/post ++ increment are not working. They either return random numbers, or the program crashe...
[3 replies] Last: what is the implementation of your operator+() ? (by jsmith)
Convert periods to spaces
 
I'm creating a Tic-Tac-Toe game. Well, at least the beginnings of it. Currently, I'm trying to read a game board from a file, display it to the screen, and then...
[3 replies] Last: It will be better that you just stick with one convention. Now you ne... (by ne555)
by MikeCW
C++ program with args (eg myprogram.exe -n)
 
I have tried to learn about this but still don't understand it. Lets say I want a program that writes a message to a file: #include <iostream> #include <fst...
[2 replies] Last: Thankyou just what I needed. (by MikeCW)
Read from file into an array one integer at a time
 
After entering a file name, I need to read the contents of that file into an array. I am having trouble reading one integer at a time from the file. In the te...
[2 replies] Last: Thanks for the help! I got it to work. #include <cstdlib> #include... (by zach2123)
by shasa
matrix size
 
iam going to define a 2Dmatrix that its size will be define while the program is running. i use pointer but the compiler(g++ in debian)send compile error.beside...
[no replies]
Passing an Array by Reference
 
I have written the following function to switch letters between two indexes in an array of characters: char* switchAround(char* chars, int a, int b) { if...
[3 replies] Last: ... (by Duthomhas)
Never seen this:
 
This may sound a very silly question. Sorry. In the examples of cURLpp API I see this: int main(int, char **) { try { some code... } some code... re...
[2 replies] Last: Precious. Thank You! (by paolopiace)
Moving an array to another function?
 
Here is my code #include<iostream> using namespace std; #include <iomanip> //------------------------------------------------- int input() { int r...
[5 replies] Last: Made some progress #include<iostream> using namespace std; #inclu... (by johnt447)
by rb1
When does an auto_ptr destruct?
 
In the following code I am trying to create Widget objects using a WidgetMaker class which is a friend of Widget and is thus able to call its private constructo...
[4 replies] Last: P.S. I realised it was necessary for me to do this: ... auto_p... (by rb1)
by Eyecon
Some advice please.
 
Hello, I am new to programming and i would like some help if possible. I have done some research on programming languages and i think that C suits me best. Wha...
[1 reply] : Im currently learning from C++ for Dummies 7 Books in 1 Edition. I got... (by ThePixel)
by ag2013
I'm getting a small output error. Assistance needed!
 
/* This program will find the roots of one of three different functions on one of two intervals based on user input. */ #include <stdio.h> #include <m...
[no replies]
A simple code error I can't seem to find...
 
I am new. Very new. I made this in a couple minutes and I was wondering whats wrong? When you type in a number it should either say correct or incorrect. But it...
[2 replies] Last: Ok.. So this? I tried this and I did not work. I typed in a number. It... (by ThePixel)
Tic Tac Toe Gamplay?
 
Widget360 here, posting again. I am creating the tic tac toe game for a simple beginner tutorial. However I have a question about the actual gameplay scripting ...
[16 replies] Last: I haven't looked into this, as I stopped reading when I saw this code:... (by Kyon)
big loop problem
 
#include <iostream> using namespace std; int main() { double a,b; char answer; cout<<"what operation do you wish to do? "; cin>>answer; switch (answer)...
[1 reply] : Someone recently asked a very similar question here: http://www.cplusp... (by ricomoss)
Problems with my for loop and a binary file
 
I guys, i have a problem with binary files A file is opened in the beginning of the main then a case to give the user a choice: 1.- Show the content of the fi...
[1 reply] : My program needed the next line before returning the pointer to 0: li... (by claudiordgz)
infinite loop with do-while
 
I have a project to do that takes students names and grades from a .txt file and display their names, avgs, and the highest avg. I must do this with a do-while...
[1 reply] : The reason this will generate an infinite loop is because you haven't ... (by ricomoss)
Why am i getting error when i defined it?
 
Hey guys i need help. I made this windows application and i defined the header file but its still giving me an error.. Here is what i have: #pragma once ...
[4 replies] Last: Yeah everything matches.. I made a new form, and it worked well in the... (by spongebox)
vector population from multi-classes
 
So, i have defined a father class of grocery items that have the attributes of the items such as price name and quantity. I was also asked to make a subclass fo...
[3 replies] Last: would it be something like this? cart* p = new "class"; ... (by civiclx)
November 2010 Pages: 1... 2627282930... 42
  Archived months: [oct2010] [dec2010]

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