Beginners - June 2011 (Page 3)

Class Operators
 
I'm learning about class operators and am stuck. I'm trying a simple class that defines an x,y point. The code then multiplies the x and y values of that poin...
[2 replies] Last: Thank you. I'm not surprised about the multiple mistakes. One other ... (by joatmon)
by Hexa
how to initializing this array
 
hi bros i have done some operator overloading for New operator of array now look please : i want to initialize pdArray element to some integer value like from ...
[4 replies] Last: http://www.cplusplus.com/doc/tutorial/classes2/ (by LB)
New with some questions for experienced programmers <3
 
(Sigh - Title says for experienced programmers rather than 'from') Hi everybody, I just wanted to say hello and introduce myself, these forums look quite hel...
[11 replies] Last: [quote=SpartanMk]Sigh - Title says for experienced programmers rather ... (by Mathhead200)
by codrgi
delete multiple pointers = crash
 
This is what is going wrong- pick* pointer1 = NULL pointer1 = (pick*)m_pMain->m_port.m_SockArray[casted_port ]; pick* pointer2 = NULL pointer2 = (pick*)m_p...
[5 replies] Last: If you didn't create an object using new , then it's not your problem... (by Moschops)
by asrat
Math Power function
 
Dear Group Members I am new to c++. I am stuck at this code. ------------------------------------------------------------------------------ # include <iost...
[2 replies] Last: Dear bl4ckb3rry , Oh no, How much I tried for variables but I didn'... (by asrat)
by dev200
Got a Problem :(
 
Got a Problem guys :( i try to make a something like a game,but i wanna to make: When i press 2 the name of episode to be a diffrent :( because now whatever i ...
[7 replies] Last: Ok thanks :( (by dev200)
Help With Rock Paper Scissors
 
Hi, I have to write a program to play Rock Paper Scissors against the CPU I have gotten the user input and computer choice to work but thats where it stops at...
[2 replies] Last: Thanks for the help, I think I tried to do it one way and then realize... (by bensa4321)
print address
 
I wrote a program to search for "f0e1d2c3" hex in a file. How do I get the address of it? I use %x and %p, it does not seem to get the right address.
[no replies]
by codrgi
find length of an int string.
 
to find a string length value it is strlen();, what is that for the int value and how do i do something below in c++? int number = 15; if (length_function_he...
[4 replies] Last: if( 3 == sizeof( number ) ) return; (by kooth)
Help With Rock Paper Scissors
 
I i have to make a Rock Paper Scissors Lizard Spock program, and im having trouble getting the computer choice to randomly choose a number from 0 - 4 to make a ...
[2 replies] Last: Thank you for your help! (by bensa4321)
by ycer
problems with an equation solver program
 
Hi i am just starting out with c++ and i have a problem, i tried to make a program that solves second degree equtations of this form: ax^2+bx+c=0. and here is ...
[2 replies] Last: thanks (by ycer)
How can I fix this?
 
#include<iostream.h> template < class T> class CSquare { T width,height; public: CSquare() {} CSquare(T w,T h){width=w; height=h;} T operat...
[2 replies] Last: Thanks kev82.. it works :) (by mexists)
by thamps
Design a Vending machine from Object Oriented Perspective
 
Hi, Quite a new bee in this forum. I have been leaning C++ for some time and wanted to improve my design skills. How do I start to design a Vending machin...
[6 replies] Last: Thanks Mat (by thamps)
by djpr71
Problem using REG_SZ value read from registry
 
Hi, I'm trying to read an install path from the registry and use this to check the existence of a set of files in the file system. Here's is my code (modified f...
[no replies]
Not sure why I can't compile...
 
I made a simple program, and it won't compile. Here's the program: #include <iostream> using namespace std; int returnthis (int a; int b;) { return a + b; }...
[2 replies] Last: Oh thank you, I did not know you could do that. I eventually followed ... (by evilpickles)
by snakec
c++ program execution
 
Hi can any one tell me how to use java code using c++ means i just wrote a function code : void Display() { cout<< "hi how are you"; } but when i ru...
[no replies]
inline function
 
I try to use next declaration of inline function: #include <stdio.h> int main () { ... test(); .... return 0; } inline void te...
[6 replies] Last: Pretty much. (by firedraco)
by tonnot
I'm going crazy, pointer problem
 
I have a * object created as new(); ascii_file * G_w_ascii_out = new ascii_file; I have a function that receive a pointer to this ascii_file : My call; ...
[no replies]
Having a compile problem and would like to know what I did wrong...
 
static *char CharArrayToLower(*char Char) { for (int i = 0;true;++i) { switch (Char ) { case 'A': Char =a;...
[2 replies] Last: that did it... thanks muchly : ) (by Watachiaieto)
by tonnot
Best way to pass a of vector<class> to a method of another class
 
I need your help: My questions are related to my program can be as fast as possible. I have : 1.- I create n instances of class1. 2.- vector to save thi...
[1 reply] : If you want your program to be as fast as possible, don't dynamically ... (by anonymous23323124)
June 2011 Pages: 12345... 41
  Archived months: [may2011] [jul2011]

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