Beginners - July 2010 (Page 11)

allocate memory
 
hi i want to allocate memory for 2D array . is that right to say: signed long int * data; data=new signed long int ; but it doesnt compile....why? t...
[2 replies] Last: thanks bazzy that was exactly what i need. (by sourena)
Application loses its control when opening MS Word by msword8
 
Hello experts, My application is using the msword8 to open a Word document. If the Word document doesn't containt any Macro then there is no problem. H...
[2 replies] Last: Ah yes, sorry COleVariant m_True((short)TRUE),m_False((short)FALSE)... (by hieuhan)
Text document in folder
 
Hi, I am new to programming and trying to read/write to a text document, that is within a seperate folder. I have no idea what the code is for this, and woul...
[2 replies] Last: Thanks!, I will give that a go now EDIT: Tried it, couldnt get it w... (by MadMatt)
why winbgim.h not work will with codeblocks?
 
hello my friends is the header file winbgim.h is special for complier minGW? if this right, why when I add it in a project in a codeblocks the complier gi...
[7 replies] Last: m4ster r0sh my dear friend i thank you very mach using getch(); sol... (by abu Alhassan)
by zelli
eofbit lost?
 
hi all! i want to have a look at several sequences of information, (highly probable) stored in c-strings in lines of a recuring scheme in a *.ytc. therefore ...
[5 replies] Last: @zelli You don't read anything from the file. So you will never rea... (by Galik)
by Wander
VERY Basic GUI in Console
 
I just tried my hand at making a very simple GUI in a console window. My code seems like it would work, but it's not. The value starts out as a "1", which means...
[6 replies] Last: How would: if (left == true) do anything? And, yes they are stand... (by Wander)
error C2668: 'Name::Name' : ambiguous call to overloaded function
 
Visual studio 2008 is being ridiculous.. Can you please assist with this error? It's telling me it doesn't know which constructor to call for my base class Name...
[8 replies] Last: By defaulting it, it means that any code that currently uses the sin... (by Disch)
Detect Console Keypress
 
I'm aware that this type of function is OS-dependant, but I'm hoping to find the best way to implement this functionality (particularly on Windows, but if the...
[4 replies] Last: You need to #include windows stuff to use curses on windows, since the... (by Duthomhas)
by Suzie
Using external dll
 
Hi. I want to use an external dll function which searches the screen for an image. It isnt a dll found native in a windows system. I have succesfully done ...
[8 replies] Last: Thanks again. I'l get my head back into the tutorials and try to un... (by Suzie)
sales tax problem...
 
#include <iostream> using namespace std; int main() { float x; //price of item double y = 0.06; //sales tax float slstax; float total; co...
[2 replies] Last: i do suppose that WOULD make more sence ty :D (by TreyBrehm)
need practice programs to write...
 
i am going to get started becoming a better programer and would like some assignments to work on, to test myself! if anyone has a sugestion to where i could fi...
[1 reply] : See: http://www.cplusplus.com/forum/articles/12974/ (by firedraco)
tables?
 
How do I display the entered data in table form? And is the code even right? //Include Files #include <iostream> #include <iomanip> #include <conio.h> ...
[3 replies] Last: use std::cout. Take a shot at it. You may have to fiddle with iomanip... (by kempofighter)
Function is Overreacting
 
I've created a function that creates a new deck for a Blackjack game I'm making. When I had the algorithm in the main function it worked but when moved to a fun...
[2 replies] Last: Thanks for the quick reply and lightly altered code :) (by MottMan)
by Wander
Text File - Deleting
 
I've searched this forum and other forums and I can't find anything that tells you how to delete text from a text file (while using a program). Anyone know how ...
[2 replies] Last: Well, as of now, I have almost nothing to my program except for like, ... (by Wander)
1st C++ Program From Tutorial Won't Compile With GCC
 
I've just tried to compile the first program from the tutorial referenced on this site, which is this: // my first program in C++ #include <iostream> us...
[2 replies] Last: Thanks for telling me that... so will that do the same with C programs... (by jwesleycooper)
by aag61
calling a running process
 
Hi, First I want to say I am new to C++ so please bare with me. I am trying to access a running application from within my current C++ application. I have...
[4 replies] Last: thanks but when i try this with notepad already open it does not work... (by aag61)
static_cast - reinterpret_cast
 
Hi all; What is the difference between casting void* to T* via static_cast or via reinterpret_cast? I mean are there cases when reinterpret_cast is more hel...
[1 reply] : when casting from void* it doesn't matter. static_cast makes it so ... (by Disch)
What is the value of 'a' in a = a++ + a++?
 
#include <stdlib.h> #include<stdio.h> #include <string.h> #include <ctype.h> #include <math.h> main() { int a=3; a = a++ + a++ ; printf("%d",a...
[4 replies] Last: +1 spaggy +1 bazzy -300 Skillless Answer is undefined in both c... (by jsmith)
by Goofy
do I undeerstand THIS?
 
THIS has two meanings at the title , The pointer and this source code. //assign2.cpp // returns contents of the this pointer #include <iostream> using nam...
[3 replies] Last: Also, although not necessary, it is better to do: alpha(int d) : date... (by mcleano)
by xbsd
Simple vector issue
 
Hi, I am new to C++. I am trying to create a vector that can hold strings. I have a while (cin >> entry) statement to capture all string inputs in a vector co...
[4 replies] Last: use getline() function instead of cin. I guess it will solve the probl... (by kraj)
July 2010 Pages: 1... 910111213... 31
  Archived months: [jun2010] [aug2010]

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