Beginners - June 2010 (Page 4)

by lpjz50
Set Mouse Position Using Toggle
 
Hi, I am trying to make a C++ project that will put my mouse is the center of the screen and make my mouse stay in the center of the screen. So its not mova...
[no replies]
by mark12
determining how many odd numbers from n1 to n2
 
hey guys, can anyone help me?. i need a program that will count how many odd numbers there is from 1-100 using only ifelse statement or for loop...
[4 replies] Last: @DexterMorgan Homework exercises, I presume. He's too lazy to make hi... (by Kyon)
visual c++ express dose not compile correctly
 
When I am using vc++ I compile and everything is fine but once it is finished compiling it cannot find the compiled .exe file. I checked the directory and there...
[2 replies] Last: Actually I got it to work. I was using a blank project. I tried it wit... (by adam8797)
by jol
Crash on close
 
Here's my program. What it does is irrelevant. The problem is that it finishes all of its operations and then immediately crashes. Another problem is that it...
[3 replies] Last: This is probably not something I would have discovered for a long tim... (by Disch)
input all files from a folder
 
Is there an easy way to create a loop that reads files until there are no more files in a given folder (without knowing the file names or how many are in the fo...
[4 replies] Last: This is unrelated to traversing directories, but to pass arguments wit... (by helios)
how to use stl in a window application project
 
hi.. i'm trying to use stl in a windows application project .. i used to use it in my console project with ..#include <vector> as example .. but when i tried...
[2 replies] Last: Please don't use using namespace std; Either prefix your identifi... (by Galik)
Cofactor of a 3x3 matrix
 
I need to write a function to calculate the cofactor of the x,y th element in a 3x3 matrix. int cofactor(int data ,int x,int y) { int cof...
[10 replies] Last: Ah, nice! [quote=manasij7479]The pow needs the math header file tho... (by m4ster r0shi)
Assign the values of one array to another or return it to the main().
 
How can I assign all the values of a two dimensional array to another empty one of the same order? Just using new_array = old_array; does not work. Should I...
[8 replies] Last: [quote=manasij7479]The returning works well. I did not think of declar... (by Galik)
netpbm...library
 
hi.. now i'm trying to use a library with name netpbm to read and write .pgm files .. but i don't know how to use it .. all what i do .. download it from...
[1 reply] : Did you download the source? In that case you'll need to build it firs... (by fafner)
Pythagorean
 
Hello Forum, I'm trying to write a 'simple' program that attempts to sort through the data the user has and outputs the missing variable in the pythagorean ...
[4 replies] Last: I was mainly referring to the fact that you had to include it manually... (by Kyon)
Commenting out cout (print) code causes different result
 
Hi I have written a code (posted below) and when I comment out this line: cout<<pi<<" "<<pj<<" "<<qi<<" "<<qj<<" count = "<<count<<endl; I get a differ...
[3 replies] Last: Hi, What happens at line 50 when line 22 evaluates to true, but lin... (by fauntleroy42)
class operators
 
Hallo! My question is the following: When I define a class, I can define, for example, an operator+ as a member function of that class, but I can't define an ...
[5 replies] Last: Your answers helped me to understand. Thank you. (by joseph63)
make a program
 
i wrote the calculator program. now i wanna have a calculator like the windows calculator. how can i make a shape kile that??!!!!!!! which software is need?
[3 replies] Last: Not much, there are tools which allow you to design the GUI with a dra... (by Bazzy)
by elyson
Problem in writing the binary of a file after reading it into memory
 
Following a guide in this site, I wrote a program to read in an exe's binary and then output it. But after I output the memory content of the file, some of the ...
[2 replies] Last: Ya, following your advice solve the problem, thanks. (by elyson)
Bubble Sort
 
I copied this code from a book and find it not to function properly. I checked it several times and still it doesn't work. Can you correct this one: #incl...
[3 replies] Last: But wait... I guess it must be t < size . But it helps me to figure o... (by mainframe639)
Saving a long int to file?
 
Hello everyone, This is a pretty basic question, but I've been having no luck whatsoever in getting this to work. Basically, I need to output long integers ...
[5 replies] Last: You should open it in binary. reinterpret_cast are evil if you're not ... (by RedX)
Class not recognized in main program
 
Hello all! I'm having an aneurysm right now, and I'm hoping y'all can help. I'm working through internet tuts and Sam's Teach Yourself right now to help me le...
[4 replies] Last: And you should put some include guards in the header or you might run ... (by RedX)
by Xenesh
adding String to 2D array
 
Hey, im working on a little program to record player stats and names. Basically im new to C++ and i have no idea how to put a string into a dynamic two dimensio...
[2 replies] Last: hmm, haven't worked with either (im really new), thanks for the info (by Xenesh)
by gcr114
program rerun loop skips while loop
 
okay, i have a program that does the following: has a user input amount of items purchased asks for input of all prices of items (all this in a while loop) ...
[4 replies] Last: i got it figured out, thanks anyway! (by gcr114)
Storage-class specifiers: static and extern
 
Hi there! According to c++ standard, this code is correct: static int b; // b has internal linkage extern int b; // b still has internal linkage Wh...
[8 replies] Last: There are many rules that define if a name has external linkage , in... (by closed account z05DSL3A)
June 2010 Pages: 123456... 26
  Archived months: [may2010] [jul2010]

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