Beginners - April 2013 (Page 68)

multithreading with timer in visual C++
 
hi, I use class form visual c++ 2010 for controling robot and receive information from sensor in the robot. I want to send the command every 0,05 mikroseco...
[no replies]
Why isnt my code working?
 
Hi there. I am learning C++ by myself and I am currently facing some issues with my code here. I use Dev C++ freeware software to compile my codes and it is giv...
[10 replies] Last: Thank you gentlemen for your help. this is my final code : #include ... (by Dilliwala Wella)
Application which runs your program with multiple user defined parameters
 
Hi, I am currently learning C++ as part of an Engineering degree. The programs we are currently writing work with cmd line arguments, and when submitted will...
[1 reply] : launch.bat: myCoolProgram.exe first_parameter second_one > Out1.txt my... (by MiiNiPaa)
Carpeting cost program.
 
Well, this is my first time asking for help because I'm not sure what to do. Pretty much need help on formatting, how to choose from 1 of 4 package options (goo...
[no replies]
PC guesses a number in 3 tries
 
I've came up with this idea from card trick but I don't know how to do it . Player will think of a number, and PC will have to guess it. So computer makes t...
[2 replies] Last: I managed to push them back somehow but that doesn't solve anything, I... (by uzferry)
How to output a pattern
 
Hi I want to output the following: ********** ********* ******** ******* ****** ***** **** *** ** * I have tried many thing but i couldn't get it t...
[2 replies] Last: There are many ways to do the task. For example #include <iostream>... (by vlad from moscow)
why return reference to local variable works?
 
Doesn't it release the addr when finish running a function, and why i return a reference to a int type back to the main works, and a reference to a string doesn...
[13 replies] Last: @]Andy Zehn An object of type std::string keeps its data in dynamic... (by vlad from moscow)
"Segmentation fault (core dumped)" error
 
why does code 1 gives segfault error whereas code 2 doesn't, both are basically same, do anyone have any suggestion? 1. #include <iostream> using namespac...
[4 replies] Last: thank you I missed to allocate memory (by mksakeesh)
File I/O problem
 
My first ever post on this site! For a couple of weeks now, I have been writing a random class generator for the Xbox game Call of Duty: Modern Warfare 3. In ...
[8 replies] Last: Thank you so much for all your help :) I am such a noob at c++ so I ap... (by imulsion)
Lottery Problem
 
The code is written to solve a lottery problem. In this problem the user must guess 2 digits and: 1. If the user input matches the lottery in exact order, the a...
[no replies]
by Daleth
Unsigned narrowing to int
 
I got this template function for getting the size of an array , and I want to use unsigned since, obviously, the array size will never be negative and I want t...
[3 replies] Last: Yes, size() is the function. And constexpr is a (single) keyword ... (by JLBorges)
Class Structures
 
Hello, I am new to this site but heard there are some people on here who can be of some great help, so I though I might throw a question out there. I am new to ...
[10 replies] Last: You rock ! That was it . Thank a million ! (by Hillcyd)
Random Number for moving Target
 
Hi all I ran into a problem with my program, Its a golfing program that calls from a sub program. That part of it works but I have to add a moving target and wh...
[1 reply] : Your srand is seeding rand() again and again. I advise you to put that... (by Daleth)
2D Array issues...
 
Topic Removed... Thank you for your help.
[5 replies] Last: It's all good. Now you know. Did you see my message after the code bo... (by Daleth)
by fmdub
error C2228: left of '.function' must have class/struct/union
 
I am trying to use iterators to navigate through a list representing table rows. Lines pointed to in output dialog are in select() attached below. The clas...
[3 replies] Last: ... (by ne555)
by Zexd
Input
 
I wrote this function: void Input(char* string, int n) { int i(0); do { cin >> *(string + i); i++; } while(cin.get(...
[1 reply] : cin.get(int) returns cin, cin.get() returns the integer (a promote... (by Lowest0ne)
Double-Ended Selection Sort Help
 
I'm sorting a vector of random integers using a double-ended selection sort function. I've never done this before and wrote this code based on an algorithm. I'v...
[4 replies] Last: Ok yea I just did. Found something that worked. Thanks. Probably shoul... (by jarellh94)
trouble with notepad
 
Hello, i'm trying to make an address book program that stores data inside of a notepad document. The issue I am having is that it is unable to store multiple na...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by ne555)
use '-fpermissive' (Code::Blocks)
 
When I try to compile Code::Blocks note me (if you use '-fpermissive' G++ will accept your code). I have looked all over for this flag but I cant find where to ...
[1 reply] : [quote=man]-fpermissive Downgrade some diagnostics about nonconformant... (by ne555)
padding and printing 2d Array HELP PLEASE
 
I'm currently trying to build a cipher program that reads input from the user and find the nearest squared number to be used as the dimension of the 2D array. I...
[no replies]
April 2013 Pages: 1... 6667686970... 83
  Archived months: [mar2013] [may2013]

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