- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
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"; … |
|
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, … |
|
if u pass a std::vector by value to a function, does all of it's content get copyed? thx |
|
Re:
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 … |
|
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 … |
|
Re:
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 … |
|
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 |
|
Re:
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 |
|
Re:
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.. |
|
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 … |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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? |
|
Re:
hi all, plesae any one can send me c++ code for radix-2 Fast Fourier Transform.. my email:[I] << email id snipped >>[/I] |
|
Re:
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] … |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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) { … |
|
Re:
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++...:?: |
|
Re:
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 … |
|
Re:
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 … |