Beginners - April 2011 (Page 5)

Problem with functions returns
 
Guys, I'm having some problems with the code below. The first of them is on the return from the "funcao" function to "bisseccao", where I have to cast double o...
[2 replies] Last: Hey guys ! After long hours looking at the code (and with a little he... (by leociongoli)
by WayneC
Pause for screen display
 
When I enter an incorrect filename the program terminates, but doesn't display the cout line. When I step thru in VisualStudio 2010, it shows the couts display...
[9 replies] Last: http://www.cplusplus.com/forum/articles/7312/ If one of my students u... (by Duthomhas)
New to C++; need help/advice.
 
Okay, I'm still new to C++ and I'm trying to make a simple hangman game for my class. Problem is I'm not sure where to go next in my code. Here is my code: ...
[2 replies] Last: Or you can use break; to break out of the loop. (by GodPyro)
by firix
runtime stack overflow
 
hello, How are you doing? I need a little help. example: template<class mynt> class reverseiterator : public _Revranit<mynt, iterator< typename ite...
[8 replies] Last: thanks coder777 (by firix)
"expected ';' before string constant error"
 
Hi I'm building a fraction calculator in C++ & I've ran into the error: "expected ';' before string constant" & I can't figure out whats wrong with it. Here ...
[4 replies] Last: Here's another way to convert an int into a string: http://www.cpluspl... (by Computergeek01)
Error function bidimension ...What is the problem with my code ?
 
I'm trying many times , many ways , but it's difficult !!! What is the problem ? Anyone help me !!! Please ....I'm crazy .... Rsssssss #include<iostream> ...
[4 replies] Last: No if array is empty , I can't choice 2. Compile yes compile but have ... (by Casanova)
pointer to pointer
 
i want to retrive a list of month names through pointer to pointer.. But whenever i free my allocated memory by free() it throws error. i think the reason behi...
[6 replies] Last: Quite right, there are other problems. (by kbw)
Hi I'm new to C++
 
I'm new to C++, and i have created this program. The problem is when I try to compile, it says the the "else" at the end needs a ;. This doesnt make sense. A...
[2 replies] Last: Don't use semicolons at the beginning of if statements, they should lo... (by TheNoobie)
Iterating an enum
 
Hey there, Basically I want to be able to increment an enum that I created. So I have: enum Type{blah, blah2,blah3}; Type myEnum = blah; None...
[10 replies] Last: Thank you guys especially coder777 (it worked perfectly). For referen... (by Chazzmundo)
by SJPxx
Programming without using IDE?
 
Hello. I would like to program in c++ without using an IDE. Can i just write the code in notepad and then use a complier to compile the txt file? If so, how to ...
[16 replies] Last: Personally, for small projects and beginners, and would recommend not ... (by moorecm)
Can't access components of a vector from another class
 
Hey, I'm really new to c++ but I think I know the basics. For my program I have to manipulate vectors of doubles in a class with another class. So i wrote a...
[4 replies] Last: oh ok thank you i thought i declared 2 in my class and defined them in... (by Newton88)
by firix
did not understand a point of following the program
 
Hi, did not understand a point of following the program pch-str + 1 exactly what`s going on here? int main () { char str = "This is a sample...
[5 replies] Last: thank everyone you for your responses. (by firix)
dynamic multi-dimensional arrays - not vectors
 
I have a question regarding the creation and manipulation of multi-dimensional dynamic arrays. I specifically don't want to use vectors - i'm comfortable using ...
[2 replies] Last: Thank-you. (by jazpearson)
by dAND3h
Building a release version
 
Ok, What way should I set the include/linker settings for a release build? If I have alot of folders that contains the game data(like sprites and stuff), where ...
[1 reply] : likely you set the include path for your debug version but not for rel... (by coder777)
by lare26
Change class member data in a global function
 
I am having a problem changing the value in line 47. I can't find the documentation that shows how to change the data. Eventually I will be moving this to the C...
[6 replies] Last: Well, the only reason I ask is so you can slap me with the logic as to... (by lare26)
Winscard.DLL is wrapped in my own DLL (Function Error)
 
Hello Masters.. I got problem when wrapping the Winscard functions in my own DLL.. The goal that i want to achieve is to simplify function calling from my M...
[no replies]
Need help with C++ program!!
 
Question: Create a class called XYPoint that has public floats to hold the x and y values of a 2D point. The class should have a constructor with default values...
[2 replies] Last: // Header File #ifndef XYPOINT_H #define XYPOINT_H #include <iostrea... (by Khaltazar)
by ascii
making me some calculator
 
ive posted on this in the past but i had some time earlier and i basically rewrote this whole program and have some questions. the calculator functions by lett...
[8 replies] Last: heres the latest build of it which now has decimals and im looking int... (by ascii)
Random generator
 
well ok what am i doing wrong o.o any1 know cuz i tried everything that would stop the windows from closing and it just closes no matter what after i press y ag...
[5 replies] Last: #include <iostream> #include <cmath> #include <cstdlib> #include <str... (by rohanshah1)
Working Program crashes when run on different windows machine
 
I use computers, windows 7 desktop, and windows XP laptop, for coding. Just transfer using dropbox and have done this for a few months. I had a functional...
[6 replies] Last: I cleaned up a lot of my code for the blackjack program and it works f... (by RedPill17)
April 2011 Pages: 1... 34567... 55
  Archived months: [mar2011] [may2011]

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