Beginners - June 2011 (Page 33)

Getting the size, in memory of a vector
 
Hello, I'm trying to create a function that estimates the memory that a vector will occupy in memory when run (windows 7 64-bit). Initially I thought the ...
[3 replies] Last: T = type of element contained in the vector v = the vector itself n = ... (by anonymous23323124)
How to Use Queue's Correctly
 
Hey everyone. I'm working on a project and need to use queues, specifically I need to check if a user input number matches a number already in a queue, and the...
[10 replies] Last: How come while ((n=='d') || (n=='D')) { if (x == a.front()) { ... (by ecstasyaeternus)
by Guluck
Create Directories in a for-loop (recursively)
 
Hi everybody, I'm creating a program with Microsoft Visual Studio 2010, it's a console program. My computer is running on XP. In the program I'm creating ...
[no replies]
Need advisment concerning a 'parse' error.
 
I can't for the life of me find a reason for this error in the suspected line or any preceding it. I haven't been able to run the algorithm even once yet so the...
[1 reply] : Don't put the type in front of every reference to the variable. Only w... (by Zhuge)
Difference
 
I've been using C++ tutorials for about a week. I wanted to start off with something basic but helpful. So I went on to do some extremely simple programs. While...
[2 replies] Last: @Capt I guess you are unknowingly including the definition of the fun... (by Adee)
tictactoe game in a class ...have some problems with my code
 
This is the .h part: #include<string> using namespace std; #ifndef GAME_H #define GAME_H struct Player { string name; char symbol; int currentScor...
[1 reply] : You need to make sure your functions are spelled properly and if you a... (by AdventWolf)
Array Issue
 
Hello all, new to the forums here, and yes I have searched around on the internet and on this forum for this topic. So I have this program that's a homework ass...
[8 replies] Last: Audie, thank you so much! that solved almost all my problems! :D (by SithDagger)
Else ifs not 'catching?'
 
I've searched all over the place, but I can't seem to figure out just what is going wrong. The 'if' and 'else' work normally, but the 'else ifs' seem to be igno...
[5 replies] Last: Thank you all so very much, its a huge relief to know that it's a simp... (by Clueless in WA)
Reusing OFSTREAM Object
 
I get an access violation reading location error when I try to reuse an ofstream object. I made sure to close it and clear it within its scope, and I still get ...
[no replies]
Array and outputting problem.
 
#include <iostream> #include <iomanip> #include <string> #include <fstream> #include <sstream> using namespace std; int main () { char answers ; char stud...
[1 reply] : You are assuming the text file that you read is 21 characters wide in ... (by webJose)
i wrote this code and it works but now i'm wondering how it works?
 
so i'm trying to find the primary numbers under 500 and this code works but I don't understand why when looking at it because when i in the for loop is lets say...
[4 replies] Last: o wow my bad, i was programming in python at the same time and got mix... (by jmbauer)
More Pow Problems
 
This doesn't make any sense to me. The pow() that is causing the problem is pow(10,45). When I take that term out and replace it with (1) or any other number t...
[6 replies] Last: +1 @ ne555 I'm surprised you were the first to mention that =P (by Disch)
Need help with this assignment.
 
Hi, I am going to make a function that searches for a word or some letters in a list of names and presents every name that includes those words or letters.I rea...
[2 replies] Last: #include "stdafx.h" #include <iostream> #include <string> using name... (by Ephasis)
C++ Alternative to Java net package
 
Hi, I'm a software engineer working on an iPad project that communicates to a server. I must admit my usual languages are Objective C or Java, but my client...
[no replies]
.cpp and .h files
 
From what I can understand, it seems, by convention, a class would be defined in a .h file and implemented in a .cpp file. The programs that would use these cla...
[14 replies] Last: Thanks. It's always good to learn new C++ technicalities ;) (by anonymous23323124)
Pow function
 
cout << "\n\nWhat is the ellipticity of the objects? Enter 6, 7, 8, 9, for gravitars of ellipticity of 10^-x.\n\n"; cin >> e; double E = float pow (10, -...
[2 replies] Last: The problem will be this: double E = float pow (10, - e); The compil... (by anonymous23323124)
by Taylrl
I simply want to be able to manipulate some data
 
Hello! Though I do have some previous programming experience I am very new to C++. I have been through some online tutorials and all of the concepts are now ...
[1 reply] : Excel files, as in ".xls" and ".xlsx" are NOT single files. Make a bra... (by Computergeek01)
skipping to an unknown position in a file
 
Howdy, all. I have a basic I/O question. I need to grab data for later processing from a known file. What's not known is the starting and ending positions ...
[1 reply] : - Get Input - While Input != "ALPHA": Get More Data From File. -... (by Computergeek01)
Review: Restaurant Bill
 
Hello I am currently learning C++ programming on my own and am doing these programming questions in this textbook that I have and am asking if you could look ov...
[2 replies] Last: ohh ok I did test it, but i just wanted to know if it was how i was su... (by illlojik)
Is template deny the principles of strong type?
 
according to wiki Weak typing allows a value of one type to be treated as another, for example treating a string as a number. This can occasionally be usef...
[16 replies] Last: You all act as if this is uncommon. (It isn't, alas.) (by Duthomhas)
June 2011 Pages: 1... 3132333435... 41
  Archived months: [may2011] [jul2011]

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