92 Topics
|
|
Hi all, I am just going through C++ basics now and I read that enum types cannot be input directly with cout and cin and such.And also that type coercion from int to enum is not allowed.But when i do this, [CODE] enum SumEnum{ENUM1,ENUM2,ENUM3} SumEnum VarEnum; scanf("%d",&VarEnum); printf("%d",VarEnum); [/CODE] It … |
|
I just stumbled over this: [ICODE]mysql> select "abc" = 0; +-----------+ | "abc" = 0 | +-----------+ | 1 | +-----------+ 1 row in set, 1 warning (0.06 sec) mysql> show warnings; +---------+------+-----------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: … |
|
I was wondering if anyone could help me compile code which will actually work for my comiler. I've found many examples and two good references for... keyboard [url]http://www.codeproject.com/KB/system/keyboard.aspx[/url] and mouse [url]http://msdn.microsoft.com/en-us/library/ms646260[/url] ...but have never actually gotten a working version to run and therefore haven't been able to fiddle around with … |
|
Hello there, My teacher in programming require to make a phone book style using C language and I almost done this project and I trying to sort up some minor problems. Would somebody our there help me? (please try to run this program by your own to see what I … |
|
I'm still new to Microsoft Access so I don't have a great understanding of its workings but have spent the past couple of months working on a project to manage the company's telphone bills. I'm essentially compiling the usage from every company phone each month into a final table by … |
|
Hi All, Can you please help me to understand why the following code is behaving this way? I think both outputs should be 1 ( 1 means const T), but its not!! [CODE] template <typename T> struct IsConst{ enum {isConst = 0}; }; template <typename T> struct IsConst<const T>{ enum … |
|
Hi all, im looking for some help help, i have this css which looks great, im happy with how the input type text boxes are displayed and the textarea looks neat too - What I cant figure out is when I add a combo box, check box or image I … |
|
Hey Guys I was wondering if anyone can help me with this assignment like completely walk me through it? I would really greatly appreciate it....... I have tried doing it and have came up with nothing. I have been having a lot of trouble understanding this material this school year. … |
|
Hello, I'm a beginner in these to programming language. Here I want to know how to display the actual value of variable of enum holds. Like this in C++: [code] #include <iostream> #include <conio.h> using namespace std; int main(void) { enum Difficulty { Low = 1, Medium, High }; Difficulty … |
|
[CODE]int main() { static short multiplycounter; static short dividecounter; double decimal; int rdecimal; cin >> decimal; rdecimal = int(decimal); cout << setprecision(10) << decimal << endl << rdecimal << endl; if(rdecimal % 1 != 0) { while(rdecimal % 1 != 0) { if(rdecimal % 1 == 0) { break; } … |
|
Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't … |
|
hey guys i really can't solve this problem, hope you can help me. the problem is, i use this codes to get the data type of a column from an access database Form12.ListView1.Items(j).SubItems.Add(myData.Rows(i)!DATA_TYPE) but what displays in my listview are numbers like (130 , 3 so on..). How can i … |
|
hey guys i really can't solve this problem, hope you can help me. the problem is, i use this codes to get the data type of a column from an access database [code] Form12.ListView1.Items(j).SubItems.Add(myData.Rows(i)!DATA_TYPE) [/code] but what displays in my listview are numbers like (130 , 3 so on..). How … |
|
I am trying to create an abstract data type for matrices. I have a function matrixInit to dynamically allocate memory for the structure and for the array. matrixCopy copies one matrix into another. there are functions to subtract, add and multiply matrices that return a pointer to memory where the … |
|
When you make sprites does the image file type have to be .png or can it be .jpeg etc.?? cheers for helping me out |
|
I think it's more difficult to ask than answering the question. I wanna ask my question with an example: You know that we can bind an object to a DataSource, and that object could be of any type. So suppose I've bound an object of type "MyClass" to DataSource of … |
|
Hello. It's been a while since I was on here. I'm writing a Java class with a generic type parameter. Among other things, it maintains an internal ArrayList of the same generic type as itself. In a perfect world, the code would go like this: [CODE=Java]import java.util.ArrayList; public class MyGenericClass<T> … |
|
HI Can anyone tell me that how to configure php.ini For $_FILES['name']['type'] I am trying to upload a flv video and it is uploading successfully but it is not showing me the type. But if i upload a .mp4 extension file it is giving me the type also and can … |
|
i write a function in c++ that take the name of obj file ... can you help me by tell9ing me how to read data using "in" and why his problem occur |
|
Hi, i need help or advice on how to start a code i have to write. This is the details of the program with an example: [url]http://www2.cs.uh.edu/~acl/cs1410/prog6.pdf[/url] Any help or advice on how to go about this would be greatly appreciated. |
|
Anyone here could tell me the differences between incremental backup and differential backup. What's more, recommend several great ways to understand it... Thank u all. |
|
hi frineds can anyone help me to write a program on creating a calender with enumerated data type |
|
[COLOR="Red"]3.3 - Objects vs Types: Strings, char, int.[/COLOR] Strings used to be an array of char in C-style coding. Now they're objects in C++. Does this mean that int and char are not objects? |
|
Ok, so I'm trying to make a constructor for a text-based game for a monster. Here is the code for it: [CODE]public class Methods { String name; //characteristics of monsters int bodyPoints, mindPoints, attack, defense; public Monster(String name, int bodyPoints, int mindPoints, int attack, int defense) { this.name=name; this.bodyPoints=bodyPoints; this.mindPoints=mindPoints; … |
|
When i run this, i get an error message saying TYpe expected and it points to the line having a.drive(100)... Any help please? Newbie... [code] class Car { public Car(){ int odometer=0; System.out.println("Car constructed!"); } public void drive(int miles) { System.out.println("Driving....."); odometer+=miles; } public long odometer; } class Guzzler extends … |
|
In the filtered text box what are the FilterType are having ? i am using .net framework 2.0, it will not come for filter text box property. reply me the result |
|
Hey, sorry if this question seems basic however I am relatively new to C++ and have done some searching around but to no avail. I then came across this community and thought I would try it out :) Basically, using Visual C++ 2008, I have a custom data structure, lets … |
|
Hi i'm creating my Data Access Layer and I want to return my object but not all the fields so this is the code i'm using [CODE] Public Function BasicSearchProposals(ByVal searchvalue As String) As IEnumerable(Of DCProposal) Dim dc As New PPDataContext() Dim proposals = From p In dc.DCProposals _ Where … |
|
Hi everyone. I'm having trouble emitting a call to a delegate whose type is unfinished at the time of the emit. I'll elaborate: I'm trying to dynamically (i.e., with a [inlinecode]TypeBuilder[/inlinecode]) create the following class: [code=C#] public MyClass { // Delegate type. The 'firstArgument' will be 'this', i.e., this is … |
The End.