Beginners - August 2010 (Page 12)

Dev C++ not working fine
 
So I downloaded Dev C++ which is very hard to use since at our Programming class, we use MS Visual Studio 6.0 and it's not a freeware so i can't download online...
[14 replies] Last: okay!i was out..i think you can ask user to enter some value to exit.e... (by Mazd)
calculator hel p please
 
i'm completely new to c++, let alone used to using multiple functions.. my friend reccomended i make a calculator using switches and multiple funcions for pract...
[3 replies] Last: probably break;, return 0;, or just, dont write a case 0 (by Skillless)
by daveD
Array of function pointers
 
Hi, I have a list of integers. I have to loop through list and depending on the value of the integer I have to call a relevant function. At first I was go...
[3 replies] Last: The answer is only **Maybe**. If the cases are ordered sequentially... (by jsmith)
by kaduuk
Check if return value is 1
 
Hey guys, I've been wondering, if it's possible to check the return value in this function: double Test() { double num = 0; if(!(ci...
[7 replies] Last: hey guys, it worked! :) Thanks all of you for replying and helping ... (by kaduuk)
Number Game Issue
 
I've made a game where the user thinks of a number (not inputted) and the computer tries to guess the number. The user then tells the program if the number is t...
[11 replies] Last: I suggest you to try to do a lot of "exercise" programs like these, be... (by Fresh Grass)
why can't I output two files?
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv ) { char * str1,*str2; str...
[8 replies] Last: yes ,youare right.thank you. but.do you notice that the copy.htm?... (by peripheral)
program samples from a book
 
Hello, i'm gradually working through 'C++ programming -program design and data structures' 4th edition by D.S. Malik which i think is really good(and probably...
[3 replies] Last: I agree with jaeger138, I also just started programming very recently ... (by ccdwiu)
by wtf
c++ timer not precise enuogh, or I'm doing something wrong
 
I have: double start, finish, elapsed; start = time(NULL); puzzle.solve(); end = time(NULL); elapsed = end - start; cout << "Elapsed time = " << elapsed...
[3 replies] Last: whoops. XD Good call. (by Disch)
using the library iomanip
 
Hi guys, i have a question regarding the use of iomanip library. say i have a const double num5 = 34.890; but i wanna display the following: num5 = $**34....
[4 replies] Last: i am sorry if its unclear... i meant: const double num5 = 34.89... (by eugenemongoose88)
Factorial, whats wrong?
 
#include <iostream> using namespace std; int factorial(int); int n; string negative = "Input is too large."; string toolarge = "No negative numbers.";...
[2 replies] Last: Thank you, I subtracted the strings, put those conditionals in the mai... (by galadys)
by bobito
Why need a copy ctor inside a vector<T> (3)
 
Hi, can anyone help me why a copy constructor is needed? I was thinking why not use all default constructor to reduce the actions? cout << "CONSTRUCTING ...
[13 replies] Last: Thanks again to the replies @jsmith I agree with you. I think that... (by bobito)
Question on a code segment
 
I have to update an existing code segment, which includes the following part: int num ={0}; int index ={0}; char *s="abbbccdefafgg "; int i; ...
[3 replies] Last: The s - 'a' expression is meant to convert whatever value a is in ... (by filipe)
Reading mp3 tags
 
dgsdhdrsh
[10 replies] Last: Damn alright we'll i have upgraded my code a lot i have around %40 now... (by jackson)
Sound (wave) Detection
 
Hi, thank you for entering and trying to help me. What I need to do is make an application that opens an audio file format(.mp3,.wav,.wma,etc..) that will most...
[4 replies] Last: I am keeping project goals realistic What on Earth is so unrealis... (by Disch)
How to Design Object-oriented Program?
 
um,this question contains so many aspects. So i want to learn some topics about how to design Class or something else
[3 replies] Last: Download tutorial file of this site. (pdf format) It''s very good. (by majidkamali1370)
Assertion given for erase() vector function
 
This piece of code is meant to erase an item of choice from a vector but for some reason every time it runs I get the assertion: Expression:vector iterator ...
[6 replies] Last: Okay, I haven't moved onto streams and conversion as such yet so I'll ... (by jaeger138)
String Producing Strange Result
 
How would I combine user input of multiple words into one string? I'm creating a program that asks users to type an entry which is then added to a string vector...
[5 replies] Last: Well I've fixed that particular issue, it was because I was mixing cin... (by jaeger138)
Making a *Pointer point to a &(*pointer)
 
I'm trying to make a pointer point towards the address of another pointer, the youtube guy XOAX said its possible on his 'pointers and references tutorial' li...
[9 replies] Last: Compiled, and this line cout << "ipPtr points to &iAnotherpPtr (wh... (by Skillless)
by spamme
class :: return value (void)
 
Hello! I want to create a general data type "Parameter", which is used in a list "ParameterList" in class TestData. It works, and I obtain the value in Param...
[3 replies] Last: Depending on what is your final goal, we could come up with a solution... (by R0mai)
by Kyon
Smart Pointers
 
Nowhere documentated lie the smart pointers. I read quite a lot of topics about them, but I never saw a snippet of code. If I understand correctly, they should ...
[7 replies] Last: explicit is mainly to prevent you from accidentally reassigning a poin... (by Disch)
August 2010 Pages: 1... 1011121314... 28
  Archived months: [jul2010] [sep2010]

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