49,766 Topics

Member Avatar for
Member Avatar for new programer

Hello all, what is the difference between [CODE]*grade++ *(grade++) (*grade)++ ++*grade *++grade *(++grade)[/CODE] please with examples... I didn't understand manipulationg pointers very well help asap

Member Avatar for Ancient Dragon
0
78
Member Avatar for Burnout

Hi, I've been revising object orientated programming, and decided to have a look at accessing parts of my code in other files. The problem is, I get error messages such as "Player1" not declared, and I can't figure out how to declare them. For example, in my main.cpp file I …

Member Avatar for pspwxp fan
0
126
Member Avatar for Geek-Master

I have been reading about pointers, which IS confusing. I'm sure there is a purpose, but I don't know why I need them yet. For example [CODE] [COLOR=Red]var1 = 23;[/COLOR] [COLOR=Blue]// assigning 23 to var1[/COLOR] [COLOR=Red]var2 = var1; [/COLOR] [COLOR=Blue]// assigning the value of var1 to var2[/COLOR] [COLOR=Red]var3 = &var1;[/COLOR] …

Member Avatar for new programer
0
489
Member Avatar for pink16

im just a 1st yr college student.can u help me this problems? Compute the power of a number given the base and exponent. Do three versions of this program using a while loop, a do-while loop and a for-loop

Member Avatar for jonsca
-1
91
Member Avatar for dchunt

Say i have this 10,000,000 (10 million) byte file. I want to perform multiplication,addition and few other operation on all those bytes(total of 5). And after it is done say if i want to repeat the addition and other operations on the same file like a loop,then How many such …

Member Avatar for jonsca
0
832
Member Avatar for yanseung

Hello, Please help me to resize BMP image to bigger and smaller. Actually I'm trying to build PC wallpaer image with some function. And changing wallpaper has no problem but I want to change any image to screen size. Since desktop screen has some infomation section, bmp image should resized …

Member Avatar for Excizted
0
453
Member Avatar for sara_sara

I see a runtime error wz message "Unhandled exception at 0x009f5900 in trial4.exe: 0xC0000005: Access violation reading location 0xcdcdcdd5." each time I run the following code. // trial4.cpp : Defines the entry point for the console application. // [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; #define NULL 0 …

Member Avatar for Excizted
-1
95
Member Avatar for pac-man

Hi guys, I understand the difference is that the params of ctor 2 are declared const with n being passed by reference. However, I don't seem to understand what difference having these params (n and a) declared constant with n being passed by reference makes? I mean, I'd understand the …

Member Avatar for Excizted
0
129
Member Avatar for manosha

hI 2 all, plz I need help in this program I need to draw a right-angle triangle, but empty from inside. this what I did till now: #include <iostream> using namespace std; void main () { int n; int i=1,j; cout<<"Enter the length"; cin>>n; while(i<=n) { j=1; while(j<=i) { cout<<"*"; …

Member Avatar for jonsca
-2
92
Member Avatar for rgpii

I am attempting to program a doubly linked list template. My program is setup with the class node defined in a header file,the list itself in a header file and finally the main in a separate cpp file which calls the list header. The list header calls the node header. …

Member Avatar for Agni
0
117
Member Avatar for xzero_x

Write a program that will correct a C++ program that has errors in which operator, << or >>, it uses with cin and cout. The program replaces each (incorrect) occurrence of cin<< With the corrected version cin>> And each (incorrect) occurrence of cout>> With the corrected version cout<< For an …

Member Avatar for SgtMe
0
318
Member Avatar for rajif desmara
Member Avatar for WaltP
-1
37
Member Avatar for jan1024188

I want to know how to write a program that moves for example C:\ex.exe to D:\ex.exe.... What header to use? stdio.h? what function to use? Can i get a link of source(this program) ?

Member Avatar for luigi10011
-2
20K
Member Avatar for jagan605

i recently started typing the code for the program to convert a binary number to its decimal form and i got stuck when my compiler reported this error. this is what i have typed till now. [CODE]#include<iostream> using namespace std; #include<math.h> main() { int n,s=0,k=0,a,b,c; cout<<"\n\n\tPROGRAM TO CONVERT BINARY TO …

Member Avatar for jagan605
0
198
Member Avatar for Excizted

Heyloo ^_^ I've stumbled upon this code :D [CODE]#define VERSION_MAJOR 1 #define VERSION_MINOR 1 #define VERSION_PATCH 2 #define VERSION ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_PATCH)[/CODE] I've been searching for some time now, unable to understand what << 16 and << 8 does, and why. I converted VERSION …

Member Avatar for Excizted
0
149
Member Avatar for doraemon79

Hi boys, I am working for a job interview and I was writing a nice piece of cod in c++, partially copied and pasted. This is supposed to work but now i am obliged to use dev-c++ last version for windows, usually I just use gcc on linux and I …

Member Avatar for doraemon79
0
2K
Member Avatar for Excizted

Hello. I'm wondering if I'm duplicating this class by doing the following. [CODE]SimpleClass *point; SimpleClass sc; sc.somevalue = something; point = new SimpleClass(sc);[/CODE] This post is quite tiny, I'm not being lazy, but I couldn't think of anything else needed for this question. Thanks :)

Member Avatar for mrnutty
0
95
Member Avatar for ShadowScripter

Hey, I've been working on a project for a while, and had some difficulties at the beginning with the d3dx9.h and lib files, then after some threading here I got the help I needed, or so I thought. It worked well until I decided to make a new project, using …

Member Avatar for Excizted
0
928
Member Avatar for eduard77

Hello I am rather new in visual c++ and I learned to code but I didn't find in any book how to ad an interface to my program. So please tell give me some references where from I could learn how to add a proper interface in visual c++. Thanks

Member Avatar for Excizted
0
162
Member Avatar for shock1

Write the definition of a function printGrade , which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character ) to standard output . Don't forget to put a new line character …

Member Avatar for Narue
0
338
Member Avatar for overpower8

Hello. I have a program that reads from file, modifies its content and saves. But there's a problem - when i write only one block of data, two of them are been written! [CODE]class person { ... }; ... person User; fstream File; File.open("file.dtb", ios::in|ios::out|ios::binary); // Adding 1 record: File.seekp(number, …

Member Avatar for overpower8
0
108
Member Avatar for randomkid73

Hello, I have done some research and keep getting results to hide the console window. What I would like to do is to hide the output of a command. For example, I have a segment that renews the PC's IP connection, so I get a long stream of the new …

Member Avatar for marco93
0
110
Member Avatar for localp

I need to OCR a image and get the text of it .. i wanted to do this in java but , i found out that its hard to implement it that way. so i am trying to do this in C++ .. is there any possibility to do this …

Member Avatar for localp
0
36
Member Avatar for nguyen duy khoi

this is the small game using mouse device, I write it in turbo C++, it is a example about using asembler in Turbo C++, but when I write it in Visual C++ 6.0, It haves many error, I think it is a big difficult. Could you help me solve this …

Member Avatar for ankurnit
0
219
Member Avatar for timtianchen

I am coding a program that requires a dynamic 2-d matrix. it is a finite element analysis program using stiffness method to give you some context. Can someone suggest a good free library for matrix operations? Thanks!

Member Avatar for timtianchen
0
78
Member Avatar for samsons17
Member Avatar for mrnutty
0
80
Member Avatar for Silvershaft

Is there any way to hide the command line window where the program runs on? I got a little program and I want to it to go hidden if user writes hide. Is there any way?

Member Avatar for Excizted
0
189
Member Avatar for ASHAR VIRK

I am a new student in this field tell me tips for getting skill in this field

Member Avatar for Excizted
0
76
Member Avatar for GDICommander

Hi, everyone! I'm having trouble with a linker error (I'm using Visual Studio 2008) and I would like to have some tips on solving this problem: This is my code: Bill.cpp [CODE] #include "Bill.h" #include "../Exceptions/InvalidArgumentException.h" Bill::Bill() { } Bill::Bill(string shopName) { if (shopName == "") { throw(InvalidArgumentException("The shop name …

Member Avatar for GDICommander
0
169
Member Avatar for CppBuilder2006

is there any GDI or GDI+ function or method that copies part of client area? something like this: [CODE] char p[100000]; copy(hdc, p, rectangle(10,10,100,100)); paste(hdc, p, x, y); [/CODE]

Member Avatar for kevintse
0
125

The End.