- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
- Interests
- Reading ,C++ loop patterns
Hi all, I have already used InitGraph and have given the path(C:\\TC\BGI) in Initgraph and checked the Graphics option in Linker Options. Still Iam getting this error. I want a solution. Can somebody pls help me. Its urgent. |
|
can anyone help me make a C program code that will open an image file? i'm using C language and GUI/glade3 alongside it. to help you visualize it, i want to type the image filename in a text view entry and when i click a button (Load for example) the … |
|
Hi all, I'm completely new to C but have dabbled with Bash scripting before. I've been trying to get my head around pointers etc. I have a small routine to check for the existence of a string in a file and print to screen, I claim no originality it's a … |
|
Hi. I'm new to daniweb and i am also a novice programmer. I have this assignment to get a shape, then a shape inside that one, and then another inside the second one, and then fill each shape in with different patterns. Here is an example. if the user enters … |
|
Please help... This is driving me nuts. I have been searching for an answer to this for a few days now. In c... How do you stop a line feed or new line after pressing enter for an input. I want the printed information to appear on the same line … |
|
This filters out the letters and numbers in the parameters you give it. |
|
Please help me find the sine series . My program is: [code] #include<stdio.h> #include<conio.h> #include<math.h> float facto(int a); int main() { int n,g,k,y; y=1; float s=0.0; float f=0.0; float l =0.0; float x; int t=0; printf(" limit is \n"); scanf("%d",&n); printf(" no. is \n"); scanf("%d",&x); x=3.14*(x/180.0); while(y<(n+1)) { g=y; if(g%2==0) … |
|
Hey guys, First time poster here.:) Just started my C++ career and am working with pointers/arrays at them moment. I was wondering why I cannot take a user input ('n') to create the size of the array "y". Can anyone show me why this syntax is wrong? Thanks for the … |
|
I have been trying to return a two dimensional array in a function but it is getting me no where, please tell me how to do it. the code is as follow : [CODE] int *population();[/CODE] [CODE]int *testCase::population() { for(int i=0;i<3;i++) { for(int j=0;j<2;j++){ matrix[i][j]=rand()%2; } } return matrix[0][0]; }[/CODE] … |
|
how to concat two values without concat function???????? is there anyonw who can tell me solution of above problemmmmmmmmmmmmmmmmm |
|
I tried searching the forums for this, but couldn't find anything. If I were to make a career out of computer programming, which would be better to learn, Java or C/C++? |
|
Hello once again . My teacher has given us the assignment to enter a string a [B]maximum of 7 charecters[/B] and permute it. Then print all of possible permutations . Like if the inputted word is JAY so Output would be JAY AJY AYJ JYA YAJ YJA I do not … |
|
Let's pretend that I'm interviewing you for a C++ job. I want to know how you[1] approach problems and the extent of your C++ prowess, so I'm going to ask you to solve short problems in C++[2]. These problems range from beginner to advanced, and may be more than they … |
|
I need a way to get a number from the user, break that number up (eg. 1128 into 1 1 2 and 8), and then manipulate each number. Here is what I tried to do, failed horribly: [code]#include <iostream> #include <string> #include <cmath> int main() { string str; int a … |
|
Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there … |
|
i want to clear a string after the prog. has done it`s work. i tried it by using a for loop and assigning a blank, but it didn`t work. the problem is that if i run the program again then the earlier value is displayed again . i`m using Turbo … |
|
Hi to all , I wished if any one of you could throw light on [B]mechanism of insertion sorting in C++[/B]. I know what is bubble sorting but I had confusion regarding what is insertion sorting? In school my professor had mentioned about it, but I do not have any … |
|
I made an identical thread for PHP/MySQL, so I figured I would do it again, not only because I need to know, but so it can be stickied and others can use it. Please recommend: Tutorials Schools Books Etc. By the way, I'm speaking of C++, not C or any … |
|
Actually I have been trying to change my member profile features for quite some time but did not succeed . Wish any one could help me. The member profile page has something called "[B]Member Certificate"[/B] but I do not what is it? |
|
Hi, everybody. The question is : if the user input a set of numbers, you don't know how long the set is, like 1, 2, 3, 4, 5, 5, 5, 6, 1, 3, -1, -12141, 123, -1...., you are asked to find the dumplicate numbers in this set. I mean … |
|
Hi guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast for safe downcasting on a polymorphic class? 2).Consider this snippet.. [code] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] A {};[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] B { public: B (A a) {} };[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]A a;[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]B b=a;[/COLOR] [/COLOR][/COLOR][/code] [COLOR=green]How … |
|
Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no … |
|
What i have to create is a program that establishes 2 structs with arrays of CD Albums and then search the arrays for album names and display the album name, Artist or group, songs and their track numbers. My question is; [COLOR="red"]have i missed something in the code?[/COLOR], because it … |
|
Basically I'm writing a function to change all the '|' characters in a string passed as a parameter to '\n' characters. Seems simple enough to do, but I get one of those "Application has encountered a problem and needs to close. We are sorry for the inconvenience." messages. [code=c] char … |
|
Could you please give some info regarding - What are basically linked lists . I know that they can be used as arrays and stacks and queues. But confused a bit about FIFO and LIFO CONCEPTS. I cant understand how do we always access the stack from top.It is just … |
|
I am a beginner that is learning C++. I would like to now how everyone else learnt C++. |
|
HELLO THIS IS MY FIRST POST. I WISHED IF ANY ONE COULD HELP IN EXTRACTING WORDS FROM A CHAR ARRAY -STRING LIKE IF THE SENTENCE INPUTTED BY USER - [B]JACK WENT UP [/B] THEN I NEED TO PRINT THESE WORDS SEPARATELY ON FRESH LINES OUTPUT- JACK WENT UP [B] I … |
|
please help me i really need this badly i'm trying to write all the possible code but the outcome i needed is not right i write a program that you input a string then the output will be the last letter of you input will come first then follows example: … |