- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
25 Posted Topics
Re: What type of error do you get when running the commented code? Here is an example of how to use fscan() http://www.tutorialspoint.com/c_standard_library/c_function_fscanf.htm For what I can see: inputf = fopen("text.txt", "r"); if (inputf == NULL) { printf("cant open it"); } while (inputf != EOF) { fscanf(inputf, "%s",str1); } // when … | |
![]() | Re: you can use contructors in structs but you have to define them |
![]() | Re: First of all, have you been taugth arrays? and have you asked if you can use them? If you definetily are not suppouse to use arrays, then technically you wont be able to sort them as they will not be in a place where you can access them sequencially. The … |
Re: You should look into how to get characters from strings, how to convert a group of characters into a string, how to convert a number to a string, and how to convert a string into a number. A simple goolge search should tell you how to do those things | |
Re: why not just use a map? so that way you do not have to worry about figuring out the logic for a hashing function that will not return the same key value for different values that you are inserting into the hash table Item itemA("itemA", "des", true); std::map <string, int> … | |
Re: the way i see it is just the ability of a pure abstract parent class to be able to execute different code sections, from their children classes, that are under the same function name. This is done by using pointers and virtual functions class A { public: virtual void foo() … | |
Re: I'm assuming you place the break point is right after you remove the item. You can add a flag or boolean that is set to true after the item is remove and have the loop exit condition to be when q == null or the flag set to true. I … | |
Re: You need to understand what you are doing http://denniskubes.com/2012/08/14/do-you-know-what-p-does-in-c/ | |
Re: On a first glance, i difz should be positive, so far - near, also do you have the fov in radians? Also, are data[_AP_MCC] and data[_AP_MDC] been multiplied by -1?. It could also be that the values inside the brakets do not correspond to the right matrix position, i doubt … | |
I'm getting a compiler error when trying to initialize a geometry shader using OpenGL. I'm using VS2013. Here is how I initialize it on OpenGL myCgContext = cgCreateContext(); cgGLSetDebugMode(CG_FALSE); cgSetParameterSettingMode(myCgContext, CG_DEFERRED_PARAMETER_SETTING); CGprofile gpProfile = cgGLGetLatestProfile(CG_GL_GEOMETRY); if (gpProfile == CG_PROFILE_UNKNOWN) { if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) gpProfile = CG_PROFILE_GLSLG; else { fprintf(stderr, "%s: geometry … | |
Re: as you are asking for guide, i would suggest to start by writing down how you expect the program to work and then break down the different system, classes and functions to implement | |
Re: if you can swipe two numbers than you can swipe as many as you want with a loop, you just need to figure out how many swipes you need to make and which values/variables will be swipe each time | |
Re: The problem you are having is that operator= is not the same as operator== They are two different operators and you should overload them on their own and not expect You are overloading = to return a boolean but in line 857 you are using it to asign a boolean … | |
Re: Hi, from your code I only see that you are inserting a new node at the end of the list On your remove node, you are not checking to see if the list is null, which Kristian_2 code shows how. Now if you have to any node your code is … | |
Re: Hi like vmanes said, your best option is to transverse the map (a sort of hash table) and output base on the lenght of words, and moving the map data into a vector is probably the easiest way of doing it. I would suggest that because a map cannot be … | |
Hi everyone and thanks in advance for the help. I have the following class that throws an error on compiling where i declase a vector of pointers I have an Engine class that I want to host multiple scenes objects stored in the vector sceneList and then pass which ever … | |
Re: you might want to check if the error is in pryDialog() because to me, your code should not give you an error | |
hi everyone, i just want to know if there is any way to create a windows xp cd from my computer with out the boot so i can run it in a computer with an old windows, thanks | |
Re: if you need to match each digit or read each digit the best way i think is to make the whole number a string an go char by char just use the acsii value to get the exact char | |
Re: you migh wanna do a binary search and keep some parameters until you find the closest ones house1: $10k house2: $25k house3: &50k and so on and then search through the array or binary tree depending which one you wanna use to storage your data until you get the closest … | |
Re: make sure u are using the scanner class right, remember it reads until the first space is u do scanner.next() and if you do scanner.nextInt() will scan the next set of number until it gets to a space, my advise is to make it simple to work create as many … | |
hi, i have to make a IM program with C and i was wondering if anyone knows a way to access dos commands with C, like net send i was thinking to use rpc (remote procedure call) for windows, so if anyone have any suggestion please let me know | |
hi, i just want to get some opinions on a queues homework project. i haven't written any code yet, but just want to know if it is possible to create an array[16] items and then that each item has an array[1][3], i have to work independently with each item of … | |
Re: if you are trying to exit the program if a condition is met if stop == false boolean stop = false; //controls if loop below executed while (!stop) have you try an if statement to check for that condition that will make the program abort while ( ...... ) { … | |
Re: just remember that when you call a method with in a class you need to give the same number of variables that you declare on the method's name { int y = distance(x1, x2, ...., x(n-1), xn); } public int distance(int x1, int x2, ...., int x(n-1), int xn) { … |
The End.