std::string greetings[] = {"hey","hi","hello"};
Is this a vector?
Type: Posts; User: ScoutDavid
std::string greetings[] = {"hey","hi","hello"};
Is this a vector?
Is there a way to make a vector an array of strings?
Thanks
Thanks much, I have a few questions though.
This function works with two arguments, the original string and the final string (result). It seems to be like the out string is of type vector, but...
I have a string of type std::string, and I want to split it so that 210100 would become 21 01 00 in an array of strings of type:
std::string name[] = {"21","01","00"};
However, I have no...
This is what I like the most :D
I have another question, how to use more than one function? Ok, I'm not that dumb:
#include <iostream>
using namespace std;
I have a question, a newbie question, though:
I need to create an array of strings like this:
groupBits7 = ['10','11','12','13','14','15','16','17','18','19','1A','1B','1C','1D','1E','1F']
...
Hello everyone,
How to make a C program that reads a file when it is dragged over it? (.exe).
I'd also like to know more about writing files with C (links possibly ? ;D).
Thanks in advance,...
Hey everybody, I have a simple text Editor.NET in C#.
How can I make certain words be coloured, for an example text editors for programming a certain language will colour words such as "while"...
wooh that makes sense, thanks much!
Thanks much!
However, I still have a doubt:
while (!strcmp(answer,password))
{
printf("Wrong Password");
scanf("%s", answer);
So how do I make it work for like infinite characters, since I don't know what the user is gonna write, for example: user's name.
#include <stdio.h>
#include <string.h>
int main(void)
{
char answer[0];
printf("Welcome to Formulum!\n");
printf("\nWhich formula do you want to use?\n");
scanf("%s",...
#include <stdio.h>
int main(void)
{
char answer[0];
char formula1[1] = "a";
printf("\nWhich formula do you want to use?\n");
scanf("%s", answer);
Hey everybody, hadn't came here in a while, but i just got stuck:
#include <stdio.h>
int main(void)
{
char answer[0];
Thank you.
The getch() is for the application not to close that quick and the conio.h is there because I don't know which ones I need, so I just put all the ones I know in the include :D
#include <stdio.h>
#include <conio.h>
int main(void)
{
int age;
printf("Enter your age: ");
scanf("%f", &age);
"On my honor, I will do my best to do my duty, and always post my code with code tags around it."
I did it actually, not hightlight but code it
I'm in a Python Forum as well and am a long...
Thank you very much!
#include <stdio.h>
#include <conio.h>
int main(void)
{
float num1;
float num2;
float sum;
printf("Enter your first number: ");
I've gotten there:
"You need to use %f in scanf if you are trying to get a floating point number."
Thank you very much!
#include <stdio.h>
#include <conio.h>
int main(void)
{
float num1;
float num2;
float sum;
printf("Enter your first number: ");
Hey everybody, I started programming C today, and here I am posting my first doubt:
#include <stdio.h>
#include <conio.h>
int main(void)
{
int num1;
int num2;