Beginners - January 2010 (Page 4)

Inputing variable into string.find
 
Hey guys, could i check with something What i would like to do is to be able to input a number and using that number as the index , it will start finding whe...
[3 replies] Last: #include <iostream> #include <string> int main() { std::s... (by mcleano)
read txt file step by step
 
Hi, I have a txt file with time series data. So want to write a code which reads from the file but in pieces i.e. It reads the data to a certain point then i...
[2 replies] Last: 10x I'll check it! It seems to be very useful info! :) (by studentffm)
by dardar
Working with OPENCV
 
hi all. i need to work with CvFitLine , but i can't find any examples of what it does. basically i need to take a set of points (lets' say 3) , draw a line be...
[1 reply] : I found some sample code: 5th post in google "CvFitLine example". It's... (by gcampton)
Initializing a Dynamically Allocated Array . Why doesn't it work?!
 
C++ Primer says: We can value-initialize the elements by following the array size by an empty pair of parentheses: int *pia2 = new int (); // array of 10 u...
[2 replies] Last: btw: I use Dev-c++, I'm wondering if this is the cause. While it ... (by gcampton)
STL list C++ pop_back
 
is there any way I can check to see if num is equal to my last of list? thanks ----------------- void delFlight(list<Flight> &l, list<Flight>::iterator iter)...
[1 reply] : nvm i got it, thanks (by newNode)
by vlad61
order matters?
 
sorry if am asking too many questions but the following works perfectly: #include <iostream> using namespace std; int main() { int a,b,result; ...
[4 replies] Last: What you can do however is use a pointer: #include <iostream> ... (by mcleano)
Visual C++ 2008 express edition
 
hey everybody look im a begginer programmer and i got stuck on the first tutorial because in the output field of visual C++ 2008 express edition i could not ...
[3 replies] Last: watch it http://www.youtube.com/watch?v=JlcPIjCTxLk&feature=PlayList... (by blackcoder41)
Merge programs
 
Hi, can anyone merge this two programs into one. I only need to input one number to get both results. Thnx #include "stdio.h" #include "conio.h" int main()...
[1 reply] : Please use the forum code tags in the future to make your code more re... (by kevinkjt2000)
by vlad61
spacing
 
is there any code that dictates how many spaces i want in a program instead of manually pressing spacebar on your code? example: ---*** --***** -*...
[3 replies] Last: uhh so i am trying it now and i was wondering if i am correct in sayin... (by vlad61)
Problem! Factorial and Multiples
 
Hey! Help me with this, i dont get it! i need to find the factorial and multiples up to a 100 of n. Just fix mistakes please! its in spanish #include "stdio....
[5 replies] Last: @pablorod: olredixsis fixed one of your problems now just change the r... (by kevinkjt2000)
How to use find() and substr() member function
 
Hi, I am having trouble using find() and substr() to extract 2 names out of one string. eg. cout << "Enter full name (last,first)"; string name; cin >> na...
[7 replies] Last: <cstring> is equivalent for <string> No, cstring gives you strcmp... (by firedraco)
by Taz
Array elements elimination
 
Hi everyone. I have an array with n elements and a number k. I need to eliminate elements from the array from k to k positions until I have one element left in ...
[11 replies] Last: Surprised I didn't get corrected on this. Using mod to loop the array ... (by syneris)
by kaduuk
Finding the problem in my simple calculator
 
Hey everyone, I'm quite new to C++ and recently I've written a simple calculator. It can do simple additions, substractions, divisions and multiplications. U...
[11 replies] Last: Sorry, I didn't realize that. Thanks for poniting it out! (by kaduuk)
Accessing Data of a Pointer to Pointer?
 
As far as I understand, and I'm probably wrong, in int main(argc, *argv ) argv is a pointer to a pointer of an array of strings. I want to do something like ...
[4 replies] Last: Array indexes start at 0, in C++. I see that the for loop in the orig... (by moorecm)
Problems :error C2664, datatype
 
Hi! (I think the problem are about pointers, only a tips, but in fact i have no point what the problem can be) I wondered if someone could help me with thi...
[6 replies] Last: Haven't solved it yet. But that is probably because I haven't enough s... (by Puckosmucko)
Error
 
error C2448: function-style initializer appears to be a function definition What does this mean? And where can I look up errors on the numbers given (like C...
[6 replies] Last: Ah lol thanks, thought it would be already ok, cuz I made a global var... (by Zeldami)
Length of Array of Structs
 
Hello. I couldn't find a good answer to this question, so I thought I might ask it here. I am trying to get the length of an array of structs automatically (how...
[4 replies] Last: I see... Thank you so much! (by fveritas)
c++ problems with array+function+pointers
 
Hi! well here is the problem i have this code: #include <iostream> using namespace std; int main(){ int a, b,i,j; a=b=0; int **m; cout<<...
[2 replies] Last: thanks yes that was the problem je (by Garethsoul)
What libraries should I focus on?
 
To be an essential programmer, what libraries should I really focus on & get used to. When I ask this question, I'm basing it off the general, ambiguous libr...
[4 replies] Last: Each library tends to have its own individual purpose. If they serve t... (by closed account S6k9GNh0)
Idiot-proof Yes/No Input (1,2,3)
 
When faced with a yes/no choice, the user can sometimes use something completely oddball at you such as "Yeah, sure," "Ok, why not," or "Heck no," which will th...
[49 replies] Last: We decide when a thread is finished with. Sorry :) (by chrisname)
January 2010 Pages: 123456... 24
  Archived months: [dec2009] [feb2010]

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