Posts
 
Reputation
Joined
Last Seen
Ranked #451
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
~30.2K People Reached
Favorite Tags
Member Avatar for justinlake888

hello... I am trying to convert 2 digit numbers to words: example 11= eleven. I saw some other entries on this but they dont include case or switch so far I have: [code=cplusplus] #include <iostream> using namespace std; cout<<"Enter a two-digit number: "; cin>>number; if(number>99) { cout<<"Number out of range"; …

Member Avatar for hermel
0
2K
Member Avatar for kux

ok, I've checked the forum and I don't think this topic was touched. What I would need is an open-source or at least free static analysis tool for C++ code. Does anybody have any suggestions? I mean, searching the web C++ lacks A LOT at this chapter, compared to Java, …

Member Avatar for IssamLahlali
0
253
Member Avatar for kux

if u pass a std::vector by value to a function, does all of it's content get copyed? thx

Member Avatar for kunal kislay
0
2K
Member Avatar for something else

Right I must first say, this is not homework, if it was, I might have a clue what I am doing. I am currently doing some research and as part of the understanding of the data we have produced I am trying to convolute it. For this I want a …

Member Avatar for msiddi13
0
393
Member Avatar for kux

take a look at this code: [CODE] template <class T> class C { public: class A { protected: int x; }; class B: public A { protected: void write() { cout << x << endl; } }; }; [/CODE] when I try to compile with g++ i get: test.cpp: In …

Member Avatar for kux
0
142
Member Avatar for VMG

Hi everyone, I'm trying to link a class with a library. The script is: /bin/sh ${BOREALIS}/common/bin/libtool --mode=link --tag=CXX ${BOREALIS}/nmstl/bin/wtf g++ -g -Wall -o $1$app $1.o -L/home/vincenzo/software/borealis-projects/LoadDistributionTool -lwld I get the error: Linker errors follow. This mode is untested; type "wtf 0" for the original output. cannot find -lwld in /usr/bin/ld …

Member Avatar for acastella
0
107
Member Avatar for kux

ok, so visual C++ is not C99 compliant, but I was wondering how can I access fixed bit length integer types as the one defined in stdint.h (intN_t). thx in advance

Member Avatar for ArkM
0
115
Member Avatar for inktri

I'm trying to write a DNS server and I need the IP/name mappings to delete themselves after a given number of seconds. How can I accomplish that? Thank you

Member Avatar for kux
0
423
Member Avatar for nnhamane

Can anyone tell me what is the main purpose of Dll? As we can get the data from Dll, can we put the data in Dll? I am not talking about code, talking about single Dll. If you know about Dll then please share your knowledge..

Member Avatar for kux
0
110
Member Avatar for kux

I have a document/view aplication that opens a bitmap I use the following OnDraw override to draw the bitmap on a window and OnOpenDocument to opening the image from file The bitmap handle ( HBITMAP bmaphandle ) is taken from the Document object that does LoadImage in it's OnOpenDocument method …

Member Avatar for kux
0
165
Member Avatar for flexy82rpq

i've wrote a program with a header file and a cpp file. when i try to compile i am getting errors that i can't fix, (i'm just a beginner). Code Below: [B][U]the .H file[/U][/B] [code=cplusplus] //Flexie Muirhead #: 26075046 //Assignment #2 #include <iostream>//allows program to output data to the screen …

Member Avatar for kux
0
118
Member Avatar for drdolittle

Can somebody explain whats wrong in the following code ? I am trying to pass a matrix and the called function is a double pointer. [code] #include <iostream> void func(int **); int main(int argc,char *argv[]) { int A[2][2]={1,2,3,4}; func(A); } void func(int **A) { } [/code] Best, Pradeep

Member Avatar for grumpier
0
121
Member Avatar for cooljeff1379

Hi all, I'm a C++ programmer and now about to use Visual C++. May I know the difference in terms of functionalities? will my code written in classic C++ run on Visual C++? thanks.

Member Avatar for kux
0
364
Member Avatar for empathy

hi i am trying to count the occurrences of different words in a string array. while(end of array) { while(end of array) { compare ith element with all other elements inc counter } increment the element number } but i guess something is terribly wrong here as i am not …

Member Avatar for kux
0
219
Member Avatar for jbrock31

Hi everyone. I decided to try and learn C++ on my own and i have ran into a problem and i just need slight kick in the butt. :) I am just learning structures and i am practicing using some of the examples at the end of the chapter in …

Member Avatar for jbrock31
0
139
Member Avatar for rmlopes

Hello, I am writing an application that uses the Loki library and I get undefined references inside loki if I use the DefaultSPStorage with std::vector<int> (it happens the same with int or using HeapStorage instead). I am developing on Mandriva 2008. Can someone please help me? Thank you in advance …

Member Avatar for rmlopes
0
216
Member Avatar for busnerrors

Hi I'm fairly new to vectors in C++ and I'm having some problems with them. I have a vector of vectors but I don't know why it is causing a segment fault in my program? [CODE] vector < vector<int> > grades; int temp; for(int i = 0; i < 30; …

Member Avatar for busnerrors
0
124
Member Avatar for dmanw100

Is there an easy way to open an fstream using a string? My code is as follows: [CODE]bool openArray(std::string *arrayFileName, int *width, int *height,int *myArray) { std::fstream BoardFile; BoardFile.open(*arrayFileName);[/CODE] I obviously cannot use this method since *arrayFileName is not char* but is there another way to do it?

Member Avatar for kux
0
143
Member Avatar for nareshvlsi

hi all, plesae any one can send me c++ code for radix-2 Fast Fourier Transform.. my email:[I] << email id snipped >>[/I]

Member Avatar for Salem
-2
164
Member Avatar for Kanvas

I've been trying to work it out for more than 10 hours already and still can get pass this The basic skeleton is like this [code] class BST { public: .... void insert (const device & aDevice); ..... private: ..... }; class device : public BST { ..... }; [/code] …

Member Avatar for sidatra79
0
179
Member Avatar for JustinJose12002

How can i grep a file using c++..? I have a file. File having a keyword. i want to get the count of that. i am tring to do int count ; count = system("grep -c keyword file1.txt"); cout << count ; /// this is giving me system command return …

Member Avatar for Ancient Dragon
0
6K
Member Avatar for Kanvas

how do you make a node of pointer of a device? (device is just a class that i made up, i need to use pointers in LL so i can "share" one object with multiple LLs) [code] struct node { device * devicePtr; node * left, * right, * next; …

Member Avatar for kux
0
234
Member Avatar for panpanf

Is there any open source c/c++ compilers what can be debugged easily? I wanna know more info about the common knowladge about c/c++ compilers.

Member Avatar for dmanw100
0
232
Member Avatar for Liszt

I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible …

Member Avatar for Liszt
0
81
Member Avatar for novice420

im trying to create a simple LAN Chat Program (as projectwork for school)....usage of filehandling is a must in all projects...since all the school computers are connected by LAN...i am creating one FILE and trying to input and read that file and display it on the screen to make it …

Member Avatar for Salem
0
197
Member Avatar for cplusplusgeek

Could there be any better ways to determine whether a number is prime or not particularly with respect to code execution. [code]#include <iostream.h> #include <conio.h> void PrimeTest(int); main() { int num; cout<<"Enter number: "; cin>>num; PrimeTest(num); getch(); } void PrimeTest(int n) { bool isPrime=true; for(short i=2;i<=(n-1);i++) { if (n%i==0) { …

Member Avatar for sidatra79
0
180
Member Avatar for alin_yuhee

i want to make a simple game with c++ but i really do not know how to do it:-/ ....can somebody help me to do that because i really want to know how to make a game by using c++...:?:

Member Avatar for William Hemsworth
0
110
Member Avatar for madf26

Sorry outright if I have posted in the wrong forum. My laptop has turned against me in the last few weeks. Ex of errors I get on a daily basis: 1. Windows internet expolorer out of memory at line 2 (sometimes 26) 2) microsoft visual ctt runtime library, runtime error …

Member Avatar for grumpier
0
229
Member Avatar for manzoor
Member Avatar for e_agam
0
75
Member Avatar for c++ prog

hi, my problem is about socket programming. My code below only connects the client to the server, and it works just fine. However, I should create a 2player game which of course require the interaction of the 1st and 2nd player. The problem here is that they really don't interact …

Member Avatar for c++ prog
0
125