49,761 Topics

Member Avatar for
Member Avatar for ankitrastogi82

Hi Folks, I want to avoid a class from being inherit but instantiating it should be possible. Can anyone tell me how can I do this in C++? Is it possible or if not are there any tweaks for it ? Thanks.

Member Avatar for Bench
0
114
Member Avatar for ElieK

#include <stdlib.h> int main(void){ system("shutdown -r -f -m \\192.168.1.104 -t 60"); return 0; } This command closes a computer on the network, i tried it and it works fine. All i need is to my program to run it so I can run it with the IP adress i will …

Member Avatar for Bench
0
157
Member Avatar for radskate360

Hey all I am writing this program and I am trying to read in a group of names from a file example: Peter Mike Juan Valentino Stephanie I need to read each name one by one and look at for example the first one P then compare it to see …

Member Avatar for iamthwee
0
167
Member Avatar for Naseem89

Hi anyone I am a new member, and want to learn the c + + from the outset Please, Where can I find free electronic books for the education of c + +

Member Avatar for Naseem89
0
115
Member Avatar for gattispilot

I thouhgt I had this solved. But the value is 1 and it looks like if K is pressed then it changes to 0 and then back to 1. The value of start is defined as 0 at the first. There are if start=1 statements but none but this for …

Member Avatar for Ancient Dragon
0
93
Member Avatar for Matt Tacular

I need a way to get a number from the user, break that number up (eg. 1128 into 1 1 2 and 8), and then manipulate each number. Here is what I tried to do, failed horribly: [code]#include <iostream> #include <string> #include <cmath> int main() { string str; int a …

Member Avatar for hinduengg
0
101
Member Avatar for krnekhelesh

Hi, I was using borland 5.5, and I tried introducing graphics using the followig code [CODE]#include<iostream.h> #include<graphics.h> $void main() { int driver,mode; driver = DETECT; initgraph(&driver,&mode,"\\tc\\bgi); circle(25,35,12); closegraph(); } [/CODE] But I get the error [I]graphics not supported with windows[/I]. So I tried [B]TURBO C++ 3.0[/B]. And it worked perfectly …

Member Avatar for krnekhelesh
0
579
Member Avatar for gattispilot

This is Orbiter: Ok what is wrong? I have start =0 at the beginning. then this: [code=cplusplus] case OAPI_KEY_K: // start if (start=0) start=0; else PlayVesselWave3(MySoundID,START,NOLOOP,255,22100); start=1; return 1; [/code] So start should be 0 until K is pressed. If K is pressed then the wav is played and start …

Member Avatar for gattispilot
0
196
Member Avatar for jenymaru08

Please help me what is linked list in C++?i need to know this because we have a report about this topic....i really dont have any idea on this.. please kindly give me a detail about linked list and if you have any recommended site that explaining what is linked list …

Member Avatar for WolfPack
0
72
Member Avatar for parthiban

Hi all , I have one doubt when i read a book to understand type conversion concepts . Here's the listing used in that book to demonstrate : [code=cplusplus]// strconv.cpp // convert between ordinary strings and class String #include <iostream> using namespace std; #include <string.h> //for strcpy(), etc. //////////////////////////////////////////////////////////////// class …

Member Avatar for Bench
0
111
Member Avatar for game_fan

Hi, this program is supposed to get data from an input file, have the user add new data, then output the new data in an output file. There are also supposed to be inheritance classes for the different titles. The 2 derived classes should be a fiction one and a …

Member Avatar for Bench
0
118
Member Avatar for m_meena

hi, i m building the code in VC++6.0. (win32 unicode debug) i m getting the following error in the RPC call error C2664: 'UuidToStringW' : cannot convert parameter 2 from 'unsigned char ** ' to 'unsigned short ** ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or …

Member Avatar for Ancient Dragon
0
52
Member Avatar for mauro21pl

Hi Quick question. Is it possible to find the source code for the predefined functions in C++ Tnaks

Member Avatar for krnekhelesh
0
80
Member Avatar for avaholic1973

I am working on this c++ app for class and have hit a wall. I have been trying to get the average to display with decimal points for accuracy but have had no luck. Here is the code. Thanks for any help. [code=c] //************************************************************************* // Include Files //************************************************************************* #include <iostream> …

Member Avatar for ndeniche
0
116
Member Avatar for driplet

Hi guys: I am using Borland C++ Builder to make a window application. I need to use a list box to display the items I selected. Besides, I need to chang the order of the selected items in the box. Could any body please give me a clue how I …

Member Avatar for WolfPack
0
537
Member Avatar for bapef

ok here is an example of the type txt file I am trying to read 12345678901234567890123456789012345678901234567890 Bugs Bunny Jr. 1234 1001.01 Dr. Wiley Coyote 2345 1002.02 Taco Speedy Gonzales3456 1003.03 Billy the Goat 4567 1004.04 Porky Pig 5678 1005.05 what I am trying to do is skip the first line …

Member Avatar for Tight_Coder_Ex
0
5K
Member Avatar for krnekhelesh

I read that vectors and arrays are almost the same. Could you explain this to me?

Member Avatar for JRM
0
269
Member Avatar for jhayrald

i am new in c++ and i quite need help in writing the code for this peoblem.This program needs to list the numbers from 0 to 25, their squares, and the fourth power. The output should be in the neat 3-column format. Number Square 4th power 0 0 0 1 …

Member Avatar for ndeniche
0
543
Member Avatar for bluebird

9. Which of the following operator has the highest precedence? (1)* (2)== (3)=> (4)+ [B] Ans : 4 If I have to answer that question, I will choose the answer *. Does + has higher precedence than *? Please explain me. [/B]

Member Avatar for Salem
0
193
Member Avatar for mauro21pl

Hi again You gonna hate me, so many questions :). I will try with that one. I am working on tokanization ,it's work for many delimiters except the space. Does anyone know how may I make it work. Its have to make excutly what function strtok() does. I have to …

Member Avatar for Ancient Dragon
0
74
Member Avatar for unclepauly

I've been learning about aggregating COM objects. I dont understand why we 'need' 2 IUnknowns (ie the delegating IUnknown and the Non-delegating IUnknown). Surely the same effect can be achieved with just the 1 usual IUnknown? Eg, The outer component implements interface IX and aggregates interface IY, which is implemented …

Member Avatar for unclepauly
0
167
Member Avatar for complete

I have an MFC SDI application and I want to send a message from the MainFrm class to the View class. How do you get a view class from an associate MainFrm class in MFC?

Member Avatar for Ancient Dragon
0
108
Member Avatar for complete

I am used to VC 6.0 and the class wizard. Now I am using Visual Studio 2005. How do I launch the class wizard from a menu command. I have found that if I double click on a dialog box, the class wizard comes up. But how do I do …

Member Avatar for Ancient Dragon
0
165
Member Avatar for kodiak

Hi, I was inspired by cygwin to code my own little shell that allowed you to use ksh or bash commands(haven't decided yet.). Should I go about doing this by using the system() function, or some other way?? Thanks, Kodiak -

Member Avatar for kodiak
0
113
Member Avatar for adotl

Im starting a course next year which will cover a C++; I was wondering whats the best software to start coding in C++? I noticed my college use NetBeans which is an IDE which may be a start? Any help appreciated.

Member Avatar for jbennet
0
137
Member Avatar for mauro21pl

Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there …

Member Avatar for mauro21pl
0
107
Member Avatar for egboy

I hope any one help me find a tutorial for programing microcontroller with C or C++ i need this really.

Member Avatar for egboy
0
316
Member Avatar for Akilah712

Hi, I am working on a program that reads through a file, gets the words, and finds all the anagrams in the file. For example if the input is Pans stop pots pots Sits it's snap I have no trouble reading the words from the file. I create a signature …

Member Avatar for iamthwee
0
285
Member Avatar for kodiak

hi, i need help with the system() function. I need to open up a command line instance, change directory to a certain file, and open a file there. Problem is, every time call the system() function, it calls up a new command line instance. I need to do as i …

Member Avatar for Bench
1
2K
Member Avatar for minigweek

[B]char *(*c[10])(int **p); [/B]Ok, what does the above mean ? I compiled it fine. But I can't figure what it means :( Also, how to make sense of any such questions ? I know pointers, and have a concept of it. But this one really baffled me ! Can anyone …

Member Avatar for minigweek
1
115

The End.