49,761 Topics

Member Avatar for
Member Avatar for CoolGamer48

Hey, What will happen if you link to the same lib twice using #pragma? Will this cause an error, or if the lib is already being linked to, will the second #pragma be ignored? Thanks.

Member Avatar for William Hemsworth
0
46
Member Avatar for mhil_joy

guys.. please give me some idea on how to program tic tac toe using user to user.. thank you.. god bless you all...

Member Avatar for Nick Evan
0
98
Member Avatar for bpacheco1227

I am a C++ beginner and I am stuck. I can't get the random number generators to run properly, specifically the random number generators are all coming up with 1 . The point system is not running properly either, I'm sure it has something to do with my do-while loop. …

Member Avatar for bpacheco1227
0
169
Member Avatar for xyzt

hello I need to do something like this: for ex. if the N is 12 then, i will produce strings like "001" "002" "003" "004" ... "012" if the N is 6 then, I will produce strings like "01" "02" ... "06" is it possible to do that with standart …

Member Avatar for Duoas
0
90
Member Avatar for &rea

I am trying to use Elements (a property of matrix) that will save all the elements as an array so I could access the different elements but now I don't know how works this property. I have written that [code] L->Elements(cli::array<int>(1)^get()); [/code] and I get these errors: [code] error C2143: …

Member Avatar for &rea
0
111
Member Avatar for radnik

I made a little program in which i read double values from file and store them in vector of vectors. So i have one vector pairs which is collection of coordinates (numbers from one line in txt file) and vector trajectories which is vector of vectors pairs (collection of all …

Member Avatar for jencas
0
117
Member Avatar for Prathvi

Dear all, I have to create a customized SoftInputPanel for my program. My question is that ==>Is it possible to create our own SIP for Windows Mobile? ==>Pls give some info for the same

Member Avatar for Prathvi
0
89
Member Avatar for Azurea

Hey guys. I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a " [Linker error] undefined reference to `__cpu_features_init' ld returned 1 exit status " error. Even with simple programs with just sending information to [I]cout[/I] I get this error. Something …

Member Avatar for Azurea
0
167
Member Avatar for Aamit

[code] Day: printf("\n1:Mon\t2:Tue\t3:Wed\t4:Thu\n5:Fri\t6:Sat\t7:Sun\nEnter value-> "); scanf("%d",&x); char dd1[5]="MON"; char dd2[5]="TUE"; char dd3[5]="WED"; char dd4[5]="THU"; char dd5[5]="FRI"; char dd6[5]="SAT"; char dd7[5]="SUN"; if(x==1){ strcpy(dd,dd1); } if(x==2){ strcpy(dd,dd2); } if(x==3){ strcpy(dd,dd3); } if(x==4){ strcpy(dd,dd4); } if(x==5){ strcpy(dd,dd5); } if(x==6){ strcpy(dd,dd6); } if(x==7){ strcpy(dd,dd7); } //printf("%s",dd); if(x>7 || x<1) { cout<<"\nPlease Enter Valid Option\n"; …

Member Avatar for mitrmkar
0
143
Member Avatar for &rea

Hello, I have got a matrix and I want to get his elements so I can work with them in an unsigned int[][] or in a similar way. I have proved to get them with the method Element but it returns an array and I think it don't do what …

0
70
Member Avatar for &rea

Hello, I want to make a matrix like this: [code] System::Drawing::Drawing2D::Matrix^ L; L=gcnew( System::Drawing::Drawing2D::Matrix::Matrix(rect,plgpts)); [/code] rect works properly but not plgpts plgpts is an array of Points. So I make that: [code] cli::array<System::Drawing::Point>^ plgpts; plgpts=gcnew(cli::array<System::Drawing::Point, 3>); [/code] and I have this errors: Error C3149: 'cli::array<Type,dimension>' : cannot use this type …

Member Avatar for &rea
0
151
Member Avatar for abhi11shukla
Member Avatar for WillMcc

Okay, so I'm a bit confused... here are my instructions for making a program: 1. Input each test result (i.e. a 1 or a 2). Display the message " Enter result" on the screen each time the program requests another test result. 2. Count the number of test results of …

Member Avatar for VernonDozier
0
139
Member Avatar for ederX

Ok, im pulling my hair out now...Im new to c++ but this one error is eluding me. Probably due to the fact that I'm still trying to understand pointers. Can anyone point me in the right direction to fix this error: [CODE]request for member ‘outputData’ in ‘*(employee**)(& emp)’, which is …

Member Avatar for VernonDozier
1
615
Member Avatar for mikelle

// the output is coming out incorrectly. any suggestions? //here is what i have // Lab 4 read and calculation file/input // This program will read the data in the input file // used by grosspayMinustaxFileCode #include <iostream> #include <fstream> using namespace std; int main() // this is the error …

Member Avatar for VernonDozier
0
88
Member Avatar for scream2ice

hi, does anyone know if there is a code in c++ that allows print on paper instead of monitor? i mean instread of using [B]'cout<<'[/B] to see what you want on monitor, use a code to print your info on paper.......cheers

Member Avatar for Duoas
0
1K
Member Avatar for QuantNeeds

So I finally I got this to work, but my problem is that it gets very messy when I try to print it as a chart. I have to print the output in a neat tabular format that minimizes the number of lines of output while remaining readable. When I …

Member Avatar for QuantNeeds
0
211
Member Avatar for uompearl

Hello I have a C++ program which is supposed to encrypt plaintext via keyboard input using AES-CCMP algorithm. The problem is that whatever plaintext I enter, it displays same ciphertext. The code listing is about 1500 lines. How can I post my code so that programmers can help me out?

Member Avatar for VernonDozier
0
106
Member Avatar for sweety0

[TEX=how to find the shortest path between undirected countries] Heloo! i m again sending my code with few more modifications. please tel me how to find the shortest path between undirected countries. thanks.[/TEX] [CODE= C++] #include<iostream> #include<fstream> #include <string> using namespace std; class Node { friend class list; friend class …

Member Avatar for VernonDozier
0
117
Member Avatar for SteveDB

Well, apparently, I jumped the gun a little. My code for the program I wrote still doesn't work. It compiles fine and throws no errors, but when I run it, only my main menu list runs-- over and over, regardless of my input, and the esc key no longer works. …

Member Avatar for SteveDB
0
119
Member Avatar for abilifyx

i was wondering if it was possible to make a mmorpg using C++, with out being to proficiant in javascript and html and either what software i would need or where to start.X

Member Avatar for Jishnu
0
132
Member Avatar for Jennifer84

I have a little problem with two panels that are on top of eachother with the exact same Size. What I am trying to do is with 2 buttons to choose wich panel that will be visible and not visible. So what should happen is that only one panel can …

Member Avatar for Jennifer84
0
176
Member Avatar for Zolookas

Hi, i am quite new to C++ and I am making quite complicated linux app: i need it to show wheather usb device (phone) is connected. I have a procedure which would check if phone is connected, but i need to somehow run in background to constantly (lets say every …

0
89
Member Avatar for waldchr

Hi I am relatively new to c++ but have written a program that would benefit from a little background music. I need it to be mp3 format. I am using dev c++ on windows XP. can anyone help?

Member Avatar for waldchr
0
204
Member Avatar for &rea

Hello, I have been using C++ for not so long and today I have find a problem that I know it is not difficult but I haven't done it before so I have no idea. I have a matrix(System::Drawing::Drawing2D::Matrix^ L) and I want to apply this property OffsetX. since now …

Member Avatar for &rea
0
53
Member Avatar for ninjaneer

I feel it's time to cast my line in here... I'm just about to embark on some GUIing myself and I have but one requirement thus far: I must be able to use cWinThreads or inherit from cWinThreads in order to control my processes. My program will be used to …

Member Avatar for Ancient Dragon
0
250
Member Avatar for Thew

Hello, I have some problems [U]always[/U] when I'm trying to work with pointer-to-function. I need to create some that can be called from another class. But maybe I don't know how to make it. This is the code I've written: Editor[.h] [CODE=C++] //... // UIRWin is the class that I …

Member Avatar for Narue
0
215
Member Avatar for dreweight2001

Hi. I need help regarding my homework. My professor has asked us to design a C++ program that will run in batch mode using Linux redirection. Input will be read in a data file. If characters in data file are valid, we may assume that the rest of the required …

Member Avatar for joshmo
0
137
Member Avatar for Prathvi

Hi all, I am here with a problem. I am reading a file from Internet. For Example index page of "www.google.com". Once i read it I must write it into a file & I'll use this later. The problem is that The read file is written completely into file. I …

Member Avatar for Ancient Dragon
0
207
Member Avatar for Percey

Hello, I am trying to create some bidirectional communication with a printer, and I am having a little problem. I was originally working with a HP Color LaserJet 2820, which does not support bidirectional communication, so the error that I was getting (ERROR_NOT_SUPPORTED), makes sense. I've since switched to a …

Member Avatar for mitrmkar
0
335

The End.