Beginners - August 2012 (Page 14)

by gta100
How to stop user input by typing a specific string?
 
Hi everyone! I am having issues with how to terminate an input stream with a specific pre-defined string instead of a generic Ctrl+Z. Here is my code (INCOMPLET...
[4 replies] Last: Uhh, I suppose you could do it like this: while (name != "NOMORE") { ... (by Phil123)
path vector to character array
 
I have a vector named v, which is a boost/filesystem path vector, with a bunch of filenames in it. I want to load each of them with opencv's cvLoadImage() fu...
[1 reply] : Is it a vector of strings? If it is you can use the .c_str() member fu... (by Computergeek01)
Help!
 
I have syntax error here: // wew.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream" #include "conio.h" usi...
[7 replies] Last: Use notepad++ very good (by Aceix)
strtol
 
I have a number that is between 1 and 3 digits long inclusive and wanted to convert it to a long int ( in C) char num = "493"; char *pEnd; long int a; a =...
[2 replies] Last: oh, so thats why if change it to 3 it only allowed numbers [0,1,2] but... (by hitholdir)
by ajbm6
HELP!
 
I'm new to c++ and I have a problem with my project. This are the clues. Convert an integer to string using the following code: int number = 5; //any intege...
[4 replies] Last: the function and the loop.. (by ajbm6)
problem with signal() and kill() functions
 
Hi everyone. I'm new in c and now I'm studying how the process signals work. I was trying to create a program where the main process create N processes ( N=a...
[3 replies] Last: If fork() returns 0 then you are in the child process, so the parent w... (by mik2718)
beginners
 
im the begginers of C++
[8 replies] Last: Back in my day, I didn't have internet to ask for help. Taking program... (by Volatile Pulse)
by tone
Next prime number
 
Hey there, I'm trying to develop a program to read the next prime number of any number given. I've got this program i've written up so far but am really s...
[6 replies] Last: 1_ Instead of the inner loop, call a function for(int candidate = n+1... (by ne555)
Array of structs - deleting/adding elements and printing
 
Hi, For the below code struct orderSlip { char source ; char destination ; char item ; int position; }; //global struct orderSlip data ; Is there an...
[5 replies] Last: As for deleting/creating objects, I'm not very familiar with C in th... (by Lowest0ne)
If I give a user a choice between 3 objects, how can I use the one he chose for the rest of the program?
 
At the beginning of my program asks a user if he wants monster A, B, or C (all from the same class). How do I then use that object for the remainder of the pro...
[5 replies] Last: I used a pointer because I had to. The benefit is that I know there w... (by Lowest0ne)
Definition of question needed
 
Hi all, Hope you all fine.This is my first topic and very simple one. I just want to know how to calculate the least price of a building model. Ill get base ...
[2 replies] Last: Thank you very much vlad! I was planning to printing each model 1.co... (by vichu8888)
Data file handling!
 
I am making project(game) in c++. i want to store score and display in such a way that the score will be displayed of 5 players who had high score. if new playe...
[3 replies] Last: This is what i did i dont know where do i do changes for I am making ... (by smile58)
by takzee
overloading <<
 
Hi guys , I tried to overload the operator << but I have no idea how it works and no idea why it doesn't work . this is the problem Error 2 error C4430: miss...
[7 replies] Last: Somehow I moved the function out of the class and it works just like s... (by takzee)
Area Cube
 
I cannot understand this coding. Can Someone please explain to me this program. #include <iostream> using namespace std; int findarea(int length, int wid...
[6 replies] Last: Thank you (by prabhanuka)
Stuck in Global Variables
 
I'm doing some of my own examples to practice c++. So I have a doubt why it is using "void" in void conv(); in 4th row. If someone able please explain me why an...
[6 replies] Last: Thank you very much (by prabhanuka)
Payroll Program W/ Employee Class
 
Man I'm learning more and more every day and some of it is tough and some not too bad. I am now using an employee class for my payroll program and I have it ex...
[4 replies] Last: I figured it out! Here is my final product: #include<fstream> #inclu... (by LaC0saNostra)
MenuStrip Action Function
 
Hey there I'm very new to this and may (most probably) got a few things wrong, but I'm doing the best I can so far. I have two forms right now. When I build t...
[2 replies] Last: Thanks for your help, I'll check it out in the morning -yawn- But yea... (by Naximan)
by Madguy
Simple while question
 
if (num1 > num2) { while (num1 > num2) { num2++; cout << num2 <<endl; ...
[6 replies] Last: Could you post all of your code so we could examine it? (by closed account 17pz3TCk)
Problem with easy solution
 
Hello i'm new to programming and wondering what is wrong with this code I wrote. I am on mac osx 10.7 using code blocks. #include <iostream> using na...
[4 replies] Last: Thank you, it works fine now. I knew generally how if statements worke... (by Colvillain)
Armadillo and XCode
 
Hi all! Very simple question, I think, but I have started to learn C++ two days ago... I am trying to use the Armadillo library. I write a .cpp file and I ha...
[4 replies] Last: Ok...so, I could not make it work. However, I switched to Eclipse, and... (by carlosmg1982)
August 2012 Pages: 1... 1213141516... 45
  Archived months: [jul2012] [sep2012]

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