Beginners - June 2011 (Page 14)

by cal651
arg directory of csv. parse, repeat
 
Hello, I am working on a script (ok so i just gave away that i mostly use perl) and would like some guidance, its been years since in took c++201 in college. ...
[1 reply] : Just curious, but what made you post this in the "beginners" section? ... (by Computergeek01)
Run-time error
 
I am getting a run-time error with this program and can't figure out what is wrong with my code. I basically created a class called bookType and created a progr...
[4 replies] Last: Thanks...that just made me realize I need to add a loop.. cout << ... (by Maese909)
Help: code won't run all the way
 
prog: MS Visual studio 2008 issue: okay, for some reason, my simple code builds perfect without any errors. however, when i run the code it only runs the...
[9 replies] Last: cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n' ); Try... (by Moschops)
Pointer Problems
 
I've got a program that I've got all coded out. It's just to demonstrate the basics of pointers but I can't get it to compile. I think there is just one problem...
[4 replies] Last: Thank you! That was fantastic help. I didn't understand that putting t... (by awalrus00)
Program ignoring Getline
 
I was working on a problem given in my course book. The target was to create a struct to hold the serial number, the name and the phone number of 10 Members ...
[2 replies] Last: Thanks a lot for explaining the problem and how to solve it! (by Nisheeth)
by tonnot
Strategy to pass custom structures to a function
 
If I'd want to use a function with a lot of custom structures, which is the correct way ? - Have I dot write a file with all my structures and include it the c...
[4 replies] Last: solved: I had a #include fileA.h at my .h file and into my cpp file... (by tonnot)
by snakec
accessing class members
 
I'm just started c++ .My question are following : 1:Can anyone tell me How to Access class member(data) via pointers ? 2:can we access the private data mem...
[2 replies] Last: In the same way you declare a int* or char* pointer, you can declare a... (by GisleAune)
by tonnot
How to use a sruct written into another file in my .h ??
 
I have the #include "my_file.h" where I have a struct. Ok, I can't use it into my main.h file, only at cpp file ???? Why ? Any way to fix this problem ? Tha...
[3 replies] Last: You can only declare things to be private inside a struct or class. ... (by Moschops)
by tonnot
Casting of custom class vectors .
 
I have the next : struct one { int a; double b; }; vector<one> myvector(3); I'd want to get the byte (char) data from myvector , myvector , etc. I'...
[6 replies] Last: Vector data are contiguous in memory ? Yes. Why is so difficult to ... (by helios)
by tonnot
Stringstream / streams / buffers .....
 
I have a stringstream. I want to use it to write unformatted data. It works ok, I have a custom class with methods to put and get 'simple' data' Now I'd want ...
[1 reply] : Check this out: #include <iostream> #include <sstream> using namesp... (by m4ster r0shi)
Help with clearing cin
 
I wrote a test program to test istream capabilities. I wanted the program to accept both piped and terminal input. However, cin fails after reading from the p...
[2 replies] Last: Thank you Moschops. I tried to use ignore before clear but nope it do... (by winonus)
Stdio.h
 
kindly help me understand how <stdio.h> works.
[1 reply] : It's a C header file. You write #include <stdio.h> and then the pr... (by Moschops)
Time Issue
 
Hi, I wanna create program that will turn my pc off in selected time, I've created this: #include "stdafx.h" #include <iostream> #include <time.h> using name...
[5 replies] Last: ah, thanks, gonna try it! edit: it works! :) thanks :P (by mekkatorqu)
by tonnot
When use templates or not ? (compiling concept)
 
I have read at cplusplus : "At that moment, when an instantiation is required, the compiler generates a function specifically for those arguments from the tem...
[1 reply] : The compiler generates a function per set of template parameters, not ... (by Athar)
dropdownbutton with images?
 
Hi All ! I am working on button component, and I would like to get up and down arrow keys on the button, and on the click event of these arrow keys to displa...
[no replies]
commenting parameter in function definition
 
class Test { public: void Print(int /* arguement */) // where will it receive, why compiler doesn't throw error { std::cout<<"Still Works\n";...
[2 replies] Last: Thanks Guestgulkan!!! (by ankushnandan)
friend class
 
plz help me to guess out what is wrong in the following code.... #include<iostream> #include<conio.h> using namespace std; class square; class rectangle ...
[3 replies] Last: Don't worry about it, I doubt there's a programmer out there that hasn... (by Ikaron)
by Ernest
while loop problems
 
#include <iostream> #include <string> using namespace std; //inputData(int& last, int& first&, int& Middle&); int main() { string myString; cou...
[16 replies] Last: Right, because string has no member called 'substring'. It does, how... (by anonymous23323124)
passing struct member to function
 
Ok so I've tried searching for an answer to this but I can't seem to find anything like it. I'm trying to write a search function for a linked list as generic ...
[2 replies] Last: Interesting, I hadn't thought of something like that (I sometimes over... (by PhoenixUprising)
increment date...
 
Im have been trying to figure for the last couple of days a way to add a certain number of days to a set date and make that the new set date. Here is what I a h...
[2 replies] Last: I feel like a huge moron after at least 3 to 4 days of trying to figur... (by stickfigure02)
June 2011 Pages: 1... 1213141516... 41
  Archived months: [may2011] [jul2011]

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