Beginners - July 2011 (Page 20)

pow not declared
 
denom= 1- pow(b, e); It gives me an error as it says pow() is not declared; I thought functions did not have to be declared, so is there an error in the wa...
[2 replies] Last: No, thanks (by Anon1010)
Reading in a string with spaces
 
Greetings I have written a program that is to read in data from a file. One line of input appears like: item# itemname: qnt price ...
[3 replies] Last: What kind of logic can be used to tell if it's a two word name ? If th... (by hamsterman)
by acorn
Is the c++ FAQ still useful
 
I started reading the c++ faq and It was actually teaching me some language stuff I didnt know. so I considered the book. however when I started reading the fee...
[1 reply] : I don't know that book. How old exactly is it? Languages don't change ... (by hamsterman)
feet meters yards conversion help!!!!!
 
I am very new to this and am taking classes online and this is my assignment, I'm not trying to cheat cuz below you see i have tried it myself and i have also ...
[1 reply] : That 'if' is random.. What exactly is the problem. You seem to deal w... (by hamsterman)
Deleting a File.
 
I tried to delete a file in the system using function remove()(fstream.h). and that file is presend in some other location in the computer. So I tried using c...
[7 replies] Last: Try http://msdn.microsoft.com/en-us/library/aa363915(v=vs.85).aspx (by hamsterman)
C++ Caching requirement
 
Hi experts I have a requirement to cache the result of webservice call for a finite duration, I want to know which data structure should I use to cache the res...
[1 reply] : struct data{ string a, b, c; }; std::map< std::string, data > cach... (by hamsterman)
regarding do while loop
 
I'm using the do-while loop in one of my programs but the thing is that the other codes after the do-while loop won't work. It's like there are no codes beyond ...
[5 replies] Last: Could it be that it just loops for a long time because 5th perfect num... (by hamsterman)
best option for cross-platform graphs
 
I need to create 2d histograms for a project I'm working on. they don't need to be particularly fancy but I was hoping for an option that will compile in window...
[1 reply] : Do you want to generate an image or to display it ? Do you want it to... (by hamsterman)
Access to vector<list<string>>?
 
Hi, In my progressions of learning C++, i came up to a problem when using push_front to lists (of strings), in a vector. One way is to do something like this: ...
[5 replies] Last: Hm, nevermind - that actually worked as expected. I now battle some ou... (by gustafborgstrom)
help please (1,2)
 
im currently studing c++ in collage, and am having a huge issue with my current homework. the assignment is to take a input of two fractions and the programing ...
[25 replies] Last: Now you declare and define getfract to take 2 arguments and pass 3 to ... (by hamsterman)
Code Skips?
 
#include <iostream> #include <conio.h> #include <string> // Includes filestream #include <fstream> using namespace std; // Objects can vary from class class e...
[2 replies] Last: what he said, and also provide some explanation about what you want th... (by hamsterman)
Question about Allegro
 
Okay so I recently started learning Allegro's code. Although I have been able to find out many things by messing with files, I still don't know how to do the f...
[1 reply] : What is the problem? Are you able to actually count the number of coll... (by hamsterman)
Communicating between Computers via IP addresses
 
Hello again, I was wondering what I would need to do in order to have a program communicate two computers; I was thinking something along the lines of entering ...
[1 reply] : Try looking into boost.asio (by hamsterman)
Problems always exists!
 
main.cpp #include<iostream> #include<fstream> #include<stdlib.h> using namespace std; int zarat(int,int); int zarat(int z1,int z2){ int a,i;...
[8 replies] Last: Both programs should compile fine (except that main should be int (sec... (by hamsterman)
Error handling
 
Hello. I would like, in the near future, to develop small applications for analyzing some of my physics research. Since some of these applications will be sha...
[6 replies] Last: but is there's no error handling like VB? (by chipp)
by benboi
i am noob, i have a problem here.
 
This is simple problems for you guys but for me, im only first year college im studying this. this is my problem. My code is this: #include <iostream> us...
[4 replies] Last: [quote=Framework]I think you mean parentheses. Yes. I meant parenthes... (by dams)
Global Class Objects?
 
Im making a game engine right now and i need to make an object called "engine" from the Engine class available to all the other classes i made in other source f...
[12 replies] Last: Make sense? Not really. Why would you put header guards in a cpp file... (by hamsterman)
Help with template function swap
 
I have a program with a double-list class and we are supposed to add a template function swap to, that should swap anything(including members of the class). I u...
[1 reply] : swapVars should work fine. What exactly is the problem ? (by hamsterman)
Badly need help: (Unresolved external symbol) & (More than one instance of overloaded function matches argument list)
 
This program is supposed to read an input file stream and transfer the file to an output stream. It's also supposed to catch all instances of "cin <<" and repla...
[4 replies] Last: sounds good. you know what they say; if it works, don't touch it ;) (by muratagenc)
arithmetic warning
 
I'm trying to compile my program but it keeps giving me this warning that wont allow it, I was wandering if anyone could give me some ideas on how to fix it? h...
[1 reply] : Can you write the code without the 00XX numbers? and in tags? Also, ... (by GisleAune)
July 2011 Pages: 1... 1819202122... 54
  Archived months: [jun2011] [aug2011]

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