Beginners - April 2012 (Page 7)

Linked Lists in General ( previously Functions as Arguments)
 
Does anyone know a good source of info for passing functions as arguments? Thanks
[8 replies] Last: That's the idea. #include <algorithm> #include <functional> #includ... (by Duthomhas)
Class variables and inheritence
 
So I have been programming for a while but still feel like a beginner in some aspects. My question is about setting up classes and initializing values for them ...
[18 replies] Last: Thank you to you all for this valuable information this was all very u... (by Ken Echard)
Win32 errors with Algorithm functions min() and max()
 
Hello all! I have been learning how to use the win32 api from a book, but I've encountered an error that I can not seem to fix. Before I go any further, here is...
[7 replies] Last: Well, that did it! Thank you, I hadn't thought of that. (by lfnunley)
C++ running bat commands
 
I wanna know how to add cmd command by pressing a bottom? Like: Bottom 1>Cmd - Wmic Anny way to do it? Tnks 4 your attention :)
[1 reply] : In the future please use somewhat correct spelling. I believe you want... (by lfnunley)
Graphics.h
 
Hi this is my very first post on c++.com........ i have been trying to make a box moving game ,,,where the goal is to make it reach a specific pt ...but the pro...
[no replies]
by Xaan
Problem with drawing a circle
 
Heya, I've been trying to draw a circle but I can't seem to manage that. What could be wrong here; void drawCircle(struct circle body, struct canvas pic, c...
[1 reply] : 1: You need to post your code in [code ][ /code] tags 2. You need to ... (by georgewashere)
Overloading ++ operator error
 
//I have written this program to create student objects and increase their school year I'm getting one error about the showYear function. #include "std...
[3 replies] Last: line 44: c.showYear; is missing the '()' (by atropos)
would like to ask for assistance in a program
 
I am working on an assignment to by 5pm today and in need of some major assistance in successfully completing the program. I am having difficulty and create an ...
[no replies]
;
 
;
[1 reply] : I guess the reading(or initialization of this 2d array is working as i... (by clanmjc)
Help Need
 
i have a file max.asm. i want to remove all comments and blank lines from file. i wrote this code,i removed the blank lines and comments that are at starting p...
[7 replies] Last: Thank you very much.....problem solved (by omeraslam)
template specialization outside of class header
 
Is it possible to define a template specialization class outide of the class header? template <> char MyObject<char>::getVar(){return Var;}
[2 replies] Last: You are the freakin man! Thanks alot!! (by jamie7823)
Need help with loop!
 
Hi, I need help writing this loop, I have an idea of how to write it but I'm not sure if it's correct. Here's the question: # of Country Athletes Gold Silver...
[4 replies] Last: Yes, but you need to know how many there are, if you want to print the... (by Gaminic)
at some time, cout stops printing in the console (1,2)
 
Hi all, Everything is in the title. I barely can paste code here since the project is big. It has happened after some modifications in my code but I cannot f...
[29 replies] Last: @OP - has a solution been reached? (by clanmjc)
by shangy
multiple entries
 
//this program runs fine but i struggle to let the user enter a guess number 5 times. Basically a user needs to enter two large numbers and then guess 5 times f...
[5 replies] Last: One of the problems may be that you're reading in "noOfGuesses" instea... (by Gaminic)
netbeans error help
 
hi guys i am in desperate need of help. I am currently writing an AI disseration for uni. My experience with c++ and netbeans is limited and ive come accros...
[no replies]
Code that delete files
 
I'm looking for a code that deletes files (I Mean, I code that can delete C:\text.txt for exemple) Help plz. Tnks 4 your time, Heroi
[9 replies] Last: Assuming "Vs" is Visual Studio: yes it does. (The code above by bluebe... (by Gaminic)
by ppooii
Addition of two numbers
 
Hi, Addition of two numbers Code is below #include<iostream.h> #include<conio.h> class addition { private: ...
[2 replies] Last: Thanks,iam so silly : ) can't think of it.... Will use code tags next... (by ppooii)
const in binary format
 
My GNU GCC compiler does not recognize 00111111b due to the end of "b". I tried "B", and it did not work either. Is there any way that I can express and output ...
[6 replies] Last: [quote=foxatlarge]... "&" does not apply to bitset operation, we shoul... (by Peter87)
by mono
Debug assertion Failed???
 
I am getting this error msg when I debug it. But sometimes run fine but sometimes dont. Debug Assertion Failed C:\....... Line: 932 Expression: vecto...
[1 reply] : If I had to guess, I'd say you're accessing elements outside your vect... (by Gaminic)
Writing Copy Constructor & Assignment Operator Methods
 
I'm just wondering how you would write an assignment operator and copy constructor methods. This has been a big sticking point for me. I know that when you do s...
[7 replies] Last: The three amigos, write all or none: http://www.cs.umd.edu/class/sprin... (by MrHutch)
April 2012 Pages: 1... 56789... 66
  Archived months: [mar2012] [may2012]

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