Beginners - October 2011 (Page 58)

System time
 
how can i get the actual system time to cout?
[5 replies] Last: thanks, this works now: void addtolog(string logtext) { time_t r... (by Nelphin)
Vector of array
 
i want to work with a vector of array but i get this error when i initialize it vector<int > ensemble_possibilite(1000); error: conversion from ...
[1 reply] : You can do two things: 1) Create a vector of pointers-to-arrays, lik... (by closed account zb0S216C)
by homsta
What does "->" do in
 
We're learning about Link lists and I was just wondering what this does exactly.
[2 replies] Last: Thanks! (by homsta)
Why is the answer to every operation wrong?
 
This is my calculator project I've been working on. But, every time i try to get an answer, it's always wrong. #import <iostream> using namespace std; ...
[3 replies] Last: Just a healthy reminder: Never use the goto statement. It's bad prog... (by Code Assassin)
C++ Function Problem?
 
Hey y'all I am having a curious problem with a function I wrote. Here it is. #include <iostream> #include <cmath> #include <iomanip> #include <fstre...
[2 replies] Last: You are amazing, thank you!!! (by johnnytwofingers)
by aboo
Claculations not displaying as I would like
 
This is a homework assignment. I am only looking for some direction not for someone to do the work. I am to create a program that will display the current world...
[1 reply] : Thanks anyway I think I figured it out. I inserted // display amount... (by aboo)
how to do? help
 
Write a program in which the user is supposed to guess the number hidden in the code. ( this will be an integer variable called “guess” and can be initial...
[6 replies] Last: i will try. (by aachener)
by gladi
pop Function the element from queue
 
what are the steps to pop the element from queue in a pop function? This is my code http://pastebin.com/gfYWcsfS
[3 replies] Last: awesome website it's useful. are you professional at c++, if so do mi... (by gladi)
File won't open?
 
Sorry to post again so soon, but I'm having a different problem. I keep trying to open a .dat file with my program. The console accepts my input, but then does ...
[2 replies] Last: Yes, my assignment is to read the first word after three different com... (by daveofva)
by kw1991
having trouble with for loop
 
I have a text file with 30 records of peoples names and the dates they worked. A record would look something like this: 12 6 2011 John. The same person will be ...
[4 replies] Last: ok so im using structs for the date and the name: struct Date { int... (by kw1991)
encoding/decoding base64
 
I tried to make a simple c++ console program that encodes an ascii text to base64 text and then decode base64 text to ascii, but is shows nothig... can you plea...
[4 replies] Last: Thank you! (by cristi92b)
Vectors Help
 
Hello all, I am trying to display the vector as well as get an exam average and a class average . The following is as close as I have got. Sorry I am new to ...
[no replies]
what is a .d file???
 
.d files are ubiquitous in the projects I am involved. It seems that they appear after compiling. When I google ".d file", I am told that D programming langua...
[3 replies] Last: They are shared object code, something like .obj files created by Visu... (by modoran)
by buggys
SQL+ Visual C++
 
Hi, i'm having major problems trying to get VC++ 2010 working with SQL Server 2008 and even MySQL I've ran through a few tutorials on setting it up and they ...
[12 replies] Last: k just for reference if neone else has the same problem, add C:\Prog... (by buggys)
please help to me
 
Write a program in which the user is supposed to guess the number hidden in the code. ( this will be an integer variable called “guess” and can be initial...
[4 replies] Last: Try this one: #include <iostream> using namespace std; int ma... (by cristi92b)
Question On Classes
 
I'm making a simple game and I have a battle class with the battle system in it. If the player's health reaches 0 I want it to goto mainMenu; but that's in ...
[8 replies] Last: Oh, I understand it now! I was pretty tired when you posted that bit o... (by BusinessSloth)
c++ problem
 
hello guys ... can you help me to answer those problems, i'm new in programming. PLS... HELP ! Filename:MP25.C Write a program that would compute t...
[5 replies] Last: MP23.C this my code #include <stdio.h> #include <conio.h> #include<ma... (by Jay Mark)
Accessing a function in a nested class
 
How can I access a function in a nested class, like the example below: class A { class B { functionB(arg); } functionA //Need...
[2 replies] Last: Okay, thank you sir. (by Tarou San)
by sarah1
Trouble with calling functions
 
Hey everyone, I just had a quick question in regards to syntax. I have 6 functions. All of the functions work but I'm having trouble calling the functions. For ...
[1 reply] : #include <iostream> #include <iomanip> using namespace std; const c... (by keineahnung)
Best Place to Learn C++ Online?
 
Hello, I am a new C++ programmer (started in mid-June), and I have learned all my "skills" from learncpp.com. And while thumbing threw the index to see what to ...
[4 replies] Last: Obtain a book such as C++ Primer/Primer Plus (5 th edition). Online t... (by closed account zb0S216C)
October 2011 Pages: 1... 56575859
  Archived months: [sep2011] [nov2011]

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